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
- Strongest model tested
-
Qwen3.7-Max #49 on the capability index
- Last in a launch post
- February 2026, dropped before it saturated
- Last model added
- June 2026
- Scores refreshed
- November 12th, 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 12th, 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.
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
-
Gemini 4 Carbon
- GPT-6 Astra
- Claude Opus 5.5
- 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.
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%
- CyberBench v1.1 (Vals) In use Agents work on OSS-Fuzz memory-safety bugs from ARVO images in two tracks. They write a proof-of-concept input that crashes the target, or patch the source so the crash stops and tests still pass.
Muse Wonder 80.4%
- SRE-Bench In use Software reverse engineering without source: 262 binary instances from 19 private programs, each with six graded objectives. GPT-6 Astra 56.9%
- CyScenarioBench In use Scenario-based long-horizon security challenges in sandboxes, organized in task, scenario and campaign tiers. Evaluation set kept private.
Gemini 4 Argon 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 Cyber 42%