跳到正文
arXiv:cs.AI· Gonzalo Gonzalez-Pumariega, Ajay Jagannath, Adit Jain, Guram Gogia, Soumyadeep Bakshi, Nazneen Rajani·· 6 小时前

CWE-bench:将 AI 智能体安全评测从攻击转向防御

CWE-bench: Refocusing Agentic Security from Exploitation to Defense

AI 导读

研究者推出 CWE-bench,一个包含 120 个仓库审计与修复任务的私有基准,覆盖 73 种 CWE 类型、8 种编程语言和 OWASP Top 10 2025 全部类别。智能体仅获知仓库与威胁模型,需在修复漏洞的同时保持原有功能,由程序化验证器判定。最佳智能体达到 68% pass@1 和 81% pass@4,且没有单一智能体在所有语言或漏洞类别上最优。

正文

View PDF HTML (experimental)

Abstract:Cybersecurity evaluations of AI agents have focused largely on offense, yet a working exploit does not show that an agent can make software safe. An attacker needs to exploit only one vulnerability; a defender must find and fix all of them. We introduce CWE-bench, a private benchmark of 120 held-out repository audit-and-repair tasks spanning 73 CWE types, eight languages, and all OWASP Top 10 2025 categories. Agents are given a repository to audit and a description of its threat model, but are not told the weakness, where it occurs, or how many vulnerable sites there are. Each patch must block the exploit while preserving original functionality, as checked by a programmatic verifier. We validated the verifier against a panel of agentic judges, manually reviewing disagreements during development and refining the checks. The best agents reach 68% pass@1 and 81% pass@4. We further conduct analyses showing that (i) agents with the same pass@1 differ widely in retry gains and cost, and (ii) no single agent is best across languages or vulnerability categories, and difficulty varies far more by vulnerability category than by language. As the offensive capabilities of agents improve, CWE-bench provides a broad and rigorous measure of whether their defensive capabilities keep pace.
Comments: 12 pages, 6 figures, 5 tables
Subjects: Cryptography and Security (cs.CR); Artificial Intelligence (cs.AI); Software Engineering (cs.SE)
Cite as: arXiv:2610.17020 [cs.CR]
  (or arXiv:2610.17020v1 [cs.CR] for this version)
  https://doi.org/10.48550/arXiv.2610.17020

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Gonzalo Gonzalez-Pumariega [view email]
[v1] Mon, 12 Oct 2026 16:00:55 UTC (150 KB)

来源:arXiv:cs.AI · arxiv.org