While AI coding agents and 'vibe coding' workflows synthesize an unprecedented volume of production software, code security remains highly fragile. Researchers from NUS and Monash University introduced the Last Secure Code Benchmark, evaluating 450 tasks derived from 150 real CVE vulnerabilities across 7 languages (Java, C, C++, JS, Python, PHP, Go) and 24 CWE categories (including 21 of the 2025 CWE Top 25 and 8 of the Top 10 KEVs). While frontier agents achieve 73.6% to 91.3% functional completion rates, even the strongest model (Claude Fable 5) produces code that is both functional and secure on only 25.1% of tasks, exposing acute supply-chain risks in autonomous vibe coding.
Key Takeaways
- ✓First comprehensive vibe-coding security benchmark: 450 tasks based on 150 CVEs spanning 7 languages, covering 21 of the 2025 CWE Top 25 and 8 Top 10 KEVs
- ✓The functionality illusion: while agents pass functional specs at 73.6%–91.3%, dual functional-and-secure pass rates collapse to 16.4%–25.1%
- ✓Vulnerability defense crisis: across full-repository and file generation scenarios, top models resolve only 12% of vulnerability environments securely

Key Decision Metrics at a Glance
Turn your technical choice into a development budget
Compare 40 dev plans & simulate token costs vs $20/mo subscriptions
Project Links & Resources
Direct AccessIn-Depth Technical Analysis
Background and the Problem
With 'vibe coding' rapidly transforming software production, developers increasingly delegate entire production workflows to autonomous AI coding agents from natural-language instructions. However, standard coding benchmarks evaluate code purely on whether functional unit tests pass. In reality, a function that satisfies all user-facing assertions may harbor catastrophic memory vulnerabilities, SQL injection pathways, or insecure deserialization logic. Whether autonomous coding agents systematically inject high-risk CVE vulnerabilities into production codebases while striving for functional green builds has remained a dangerous blind spot.
Architecture and How It Works
To expose and quantify this structural vulnerability in autonomous software engineering, researchers from NUS and Monash University introduced the Last Secure Code Benchmark:
- Real-World CVE Foundations Across Seven Languages: Formulated from 150 real CVE vulnerabilities, establishing 450 rigorous software engineering tasks spanning Java, C, C++, JavaScript, Python, PHP, and Go;
- Direct Alignment with CWE Top 25 & KEV: Encompasses 24 common weakness enumerations, including 21 of the 2025 CWE Top 25 list and 8 of the Top 10 Known Exploited Vulnerabilities (KEVs) cataloged by CISA;
- Three Realistic Vibe Coding Workflows: Tests agents across three distinct development modalities: in-filling a function, synthesizing a standalone module file, and architecting an entire repository source tree from scratch;
- Dual-Gate Blind Security Testing: Prompts specify only business functionality without providing hints about security. Submissions are judged against hidden dual-gate pipelines evaluating functional regression and dynamic exploit resistance.
Benchmarks and Measured Results
Empirical evaluations across six frontier coding agents establish alarming security gaps:
- The Deceptive Functionality Illusion: Leading models achieve high functional success rates between 73.6% and 91.3%, easily deceiving engineers into premature code approval;
- Dual-Gate Pass Rate Collapse: When evaluated for both functional correctness and zero-vulnerability security, the strongest agent (Claude Fable 5) succeeded on only 25.1% of tasks, while competitor baselines slumped to between 16.4% and 24.7%;
- Near-Total Failure in Full-Repository Scenarios: In repository-from-scratch vibe coding setups, top models produced secure implementations in only 12% of vulnerability scenarios, systematically defaulting to unsafe string interpolation, unescaped queries, and disabled SSL checks.
Getting Started for Developers
The Last Secure Code Benchmark sounds an urgent wake-up call for teams deploying autonomous AI developers:
- Paper Study: Review arXiv:2610.14766 for the complete vulnerability breakdown and test harness architecture;
- Enforce Mandatory SAST/DAST Gateways: Never permit direct merging of agent-generated pull requests without mandatory integration of automated static analysis tools (e.g., CodeQL, Semgrep) in CI/CD pipelines;
- Contextual Security Rules Injection: Embed explicit security guidelines in local agent configuration files (e.g., .cursorrules, Cline system rules), strictly barring raw query interpolation, unsafe pointer arithmetic, and unverified deserialization calls.
Benchmark side-by-side against alternatives, or calculate monthly token cost vs subscription break-even.
Discussion & Comments
0Sign in to join the discussion
Connect with AI developers to exchange benchmark insights.