跳到正文
arXiv cs.AI· Tianyi Wu, Chao Ge, Peng Chen, Fengji Zhang, Yongxing Wu, Yuchong Xie, Jian Li, Chaoyuan Peng, Kaikai Zhang, Dong Huang, Mingzhe Du, Yukai Huang, Jiaheng Zhang, Terry Yue Zhuo, See-Kiong Ng·· 3 天前AI 评分60

Last Secure Code Benchmark:vibe coding 生成的代码安全吗

Last Secure Code Benchmark: Is the Code You Vibe Secure?

AI 导读

研究者提出 Last Secure Code Benchmark,用 150 个真实漏洞构建 450 个任务,覆盖 Java、C、C++、JavaScript。

正文 · 原文

Authors:Tianyi Wu, Chao Ge, Peng Chen, Fengji Zhang, Yongxing Wu, Yuchong Xie, Jian Li, Chaoyuan Peng, Kaikai Zhang, Dong Huang, Mingzhe Du, Yukai Huang, Jiaheng Zhang, Terry Yue Zhuo, See-Kiong Ng

View PDF HTML (experimental)

Abstract:AI coding agents now write much of the code that ships, yet whether that code is secure remains unclear. We introduce the Last Secure Code Benchmark, a comprehensive evaluation of secure code generation by coding agents. Built from 150 real vulnerabilities, its 450 tasks span seven widely used languages (Java, C, C++, JavaScript, Python, PHP, and Go), 24 CWEs including 21 of the 2025 CWE Top 25 and 8 of the Top 10 KEV weaknesses, more than any benchmark we compare with, and three vibe-coding scenarios: filling in a function, writing a file, and building a repository's source tree from scratch. Every task asks only for functionality, through a specification that never mentions security, and hidden functional and security tests grade the result. Across six frontier agents, 73.6% to 91.3% of tasks pass functionally, yet even the strongest, Claude Fable 5, produces code that is both functional and secure for only 25.1% of tasks, and the others for 16.4% to 24.7%. The best model only passes 12% of the vulnerability scenarios across all vibe coding setting, posing strong concern on the security of the code written by vibe coding.
Comments: 10 pages
Subjects: Cryptography and Security (cs.CR); Artificial Intelligence (cs.AI)
Cite as: arXiv:2610.14766 [cs.CR]
  (or arXiv:2610.14766v1 [cs.CR] for this version)
  https://doi.org/10.48550/arXiv.2610.14766

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Tianyi Wu [view email]
[v1] Sat, 10 Oct 2026 09:42:56 UTC (2,287 KB)

来源:arXiv cs.AI · arxiv.org