SecCodeBench
Models write or patch functions in project scaffolds drawn from real Alibaba vulnerabilities. Code must pass functional tests, then proof-of-concept security tests.
98 test cases over 22 CWE types in five languages: Java 53, C and C++ 15, Python 13, Go 13 and Node.js 4. Each case runs in four modes, code generation and code fix, each native and security aware. Apache 2.0. The repo states it is no longer actively maintained and development continues as the Last Secure Code Benchmark.
- Released
- July 2025
- Kind
- Secure code and review
- Level
- University
- Scored
- Checked automatically
- Answers
- Code
- Tasks
- All public
- Measures
- Capability
- Language
- English
- Interaction
- Single turn
- Items from
- Real work and use
- Refresh
- New versions replace it
- Run by
- Anyone
- Strongest model tested
-
Qwen3.7-Max #51 on the capability index
- Last in a launch post
- February 2026, dropped before it saturated
- Last model added
- June 2026
- Updated automatically
- Yes, daily
- Scores refreshed
- November 24th, 2026
In the authors’ words
We introduce SecCodeBench-V2, a publicly released benchmark for evaluating Large Language Model (LLM) copilots' capabilities of generating secure code. SecCodeBench-V2 comprises 98 generation and fix scenarios derived from Alibaba Group's industrial productions, where the underlying security issues span 22 common CWE (Common Weakness Enumeration) categories across five programming languages: Java, C, Python, Go, and JavaScript. SecCodeBench-V2 adopts a function-level task formulation: each scenario provides a complete project scaffold and requires the model to implement or patch a designated target function under fixed interfaces and dependencies. For each scenario, SecCodeBench-V2 provides executable proof-of-concept (PoC) test cases for both functional validation and security verification. All test cases are authored and double-reviewed by security experts, ensuring high fidelity, broad coverage, and reliable ground truth. Beyond the benchmark itself, we build a unified evaluation pipeline that assesses models primarily via dynamic execution. For most scenarios, we compile and run model-generated artifacts in isolated environments and execute PoC test cases to validate both functional correctness and security properties. For scenarios where security issues cannot be adjudicated with deterministic test cases, we additionally employ an LLM-as-a-judge oracle. To summarize performance across heterogeneous scenarios and difficulty levels, we design a Pass@K-based scoring protocol with principled aggregation over scenarios and severity, enabling holistic and comparable evaluation across models. Overall, SecCodeBench-V2 provides a rigorous and reproducible foundation for assessing the security posture of AI coding assistants, with results and artifacts released at https://alibaba.github.io/sec-code-bench. The benchmark is publicly available at https://github.com/alibaba/sec-code-bench.
Qwen3.7-Max leads with 71.1% among models released by June 2026
Best score per model from the benchmark's own leaderboard, read on November 24th, 2026. Where a model ran with several settings or harnesses, we keep its best.
Qwen3.7-Max leads with 71.1%, claims included
Best score per model from every source, including labs’ own numbers and claims Epoch AI collected from reports and papers. Labs pick their own settings, so a claim can beat an independent run of the same model. Striped bars are claims, and dotted bars are reruns by Epoch AI or another board.
The newest model with a score here came out in June 2026, and nobody has tested a newer one. Among the 20 highest-ranked models on the capability index, these have no score yet:
- Claude Fable 5.2
- GPT-6.2 Astra
-
Gemini 4 Carbon
- GPT-6 Astra
- and 16 more
- 1
Qwen3.7-Max 71.1%
- 2
Qwen3.7-Plus 70.1%
- 3 Kimi K2.6 61.1%
- 4
DeepSeek-V4-Pro 58.3%
- 5
DeepSeek-V4-Flash 54.7%
- 6 GLM-5.1 49%
Source: Official SecCodeBench leaderboard
- 1
Qwen3.7-Max 71.1%
- 2
Qwen3.7-Plus 70.1%
- 3
Qwen3.5 397B-A17B 68.3%
- 4 Kimi K2.6 61.1%
- 5
DeepSeek-V4-Pro 58.3%
- 6
DeepSeek-V4-Flash 54.7%
- 7 GLM-5.1 49%
Sources: Official SecCodeBench leaderboard and labs’ model cards
| # | Model | Score | Setting | Date | Source |
|---|---|---|---|---|---|
| 1 | | 71.1% | Claude Code | May 2026 | Official leaderboard |
| 2 | | 70.1% | Claude Code | Jun 2026 | Official leaderboard |
| 3 | Kimi K2.6 | 61.1% | Claude Code | Apr 2026 | Official leaderboard |
| 4 | | 58.3% | Claude Code | Apr 2026 | Official leaderboard |
| 5 | | 54.7% | Claude Code | Apr 2026 | Official leaderboard |
| 6 | GLM-5.1 | 49% | Claude Code | Apr 2026 | Official leaderboard |
| # | Model | Score | Setting | Date | Source |
|---|---|---|---|---|---|
| 1 | 71.1% | Claude Code | May 2026 | Official leaderboard | |
| 2 | 70.1% | Claude Code | Jun 2026 | Official leaderboard | |
| 3 | 68.3% | Feb 2026 | Lab model card | ||
| 4 | Kimi K2.6 | 61.1% | Claude Code | Apr 2026 | Official leaderboard |
| 5 | 58.3% | Claude Code | Apr 2026 | Official leaderboard | |
| 6 | 54.7% | Claude Code | Apr 2026 | Official leaderboard | |
| 7 | GLM-5.1 | 49% | Claude Code | Apr 2026 | Official leaderboard |
Labs report scores for 1 model in their cards. Switch the scores above to rank them together.
Everything the board measures
The benchmark’s own leaderboard publishes 3 numbers for each entry: the headline score and 2 other measures. Rank entries by any one, compare them all in the table, or plot any two. Each row is the entry’s best run on the headline score.
- Headline
- Headline score
- Other measures
- Pass rate
- Test cases
- Headline
- Headline score
- Other measures
- Pass rate
- Test cases
- Headline
- Headline score
- Other measures
- Pass rate
- Test cases
- Z.ai
- Moonshot AI
- DeepSeek
- Qwen
- not in our model list
3 models have held number one on the official leaderboard since its release in July 2025 2 models have held number one with claims included since its release in July 2025
Lab claims count from the day the card came out, independent runs from the model’s release.
Source: Official SecCodeBench leaderboard
Scores over time
All the scores we have, one dot each, so a model tested at several settings appears more than once.
Sources: Official SecCodeBench leaderboard and labs’ model cards
Labs headline it less often now, last in February 2026
Launch posts from every lab that has listed it, one tick per post. Tall colored ticks include it, and short gray ones leave it out.
| Date | Launch post | Score | As the post writes it |
|---|---|---|---|
| Feb 16, 2026 | 68.3 | SecCodeBench |
One system card reports it
Besides launch posts, we read the system cards, model cards and technical reports labs publish with a release. They report far more, including safety and frontier-risk tests.
| Date | Document | Score | As the document writes it | Section |
|---|---|---|---|---|
| Feb 28, 2026 | | SecCodeBench, four settings with no overall: Gen w/o Hint 61.2, Gen w/ Hint 69.5, Fix w/o Hint 76.4, Fix w/ Hint 83.7 (Table 16) | Cyber risk |
Versions
More in Cybersecurity
- ExploitGym In use 869 real-vulnerability exploit-development tasks (userspace, V8, Linux kernel). Success means capturing a flag through the intended vulnerability. GPT-6 Astra 42.4%
- ExploitBench In use 41 recent V8 JavaScript-engine N-day vulnerabilities. Progress measured by 16 grader-verified capability flags across five tiers. GPT-6 Astra 100%
- ExploitBench - Internal Port In use Agents develop working exploits for recently disclosed vulnerabilities to limit contamination. Scored as arbitrary code execution success rate. GPT-6.2 Astra 53.5%
- Atomic Challenges In use Agents solve 22 skill-level offensive security challenges in vulnerability research, network attack simulation and evasion. Scored as challenges solved. GPT-6 Astra 90.9%
- MiMo Cyber Bench In use Agents do in-house cybersecurity tasks that add to public vulnerability reproduction and exploitation benchmarks. The report gives no task count or grading details. MiMo-V2.6 Pro 81.7%
- PatchBench (OpenAI) In use Models patch security flaws. Automated tests and model-based review check that each patch fixes the flaw, keeps the intended behavior and is ready to merge. GPT-6.2 Astra 79.7%
Data audit
All 10 checks pass. Every benchmark
Catalog record 2 pass
- Pass Task access All tasks are public.
- Pass Confidence Checked against a primary source.
Scores 4 pass 1 note
- Pass Independent runs Scores from the official leaderboard (6 entries) and launch posts (1 score).
- Pass Models scored 7 models we track.
- Pass Newest score The newest is from June 2026, for Qwen3.7-Plus.
- Note Frontier models None of the top 10 has a score, which is fine for a retired test. The strongest tested is Qwen3.7-Max (#51).
- Pass Headroom The best is 71.1%, under 85%, so it still separates models.
Leaderboard import 3 pass
- Pass Importer We read the board on alibaba.github.io: 6 rows for models we track at the last read.
- Pass Last read November 24th, 2026.
- Pass Read worked The last read worked.
Consistency 1 pass 2 notes
- Note Lab claims No model has both a lab number and an independent run.
- Pass Known issues No published audit found problems.
- Note Epoch AI review Epoch AI hasn’t reviewed it.