mlsanityData to 14 Oct 2026

CWE-bench: Refocusing Agentic Security from Exploitation to Defense

arXiv 2610.17020 ↗First posted 12 Oct 2026cs.CR cs.AI cs.SEcited by 0

On the map: LLM agents and tool use → Agent threats, guardrails and governance

Abstract (arXiv)

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.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 19 of its 24 references that are in the map. First posted on arXiv 12 Oct 2026.

Builds on

19 of 24 references.

Closest ancestors · 8

Same direction, newest first

  1. 2026SecProbe: Adaptive Evaluation of Coding Agents on Cybersecurity Vulnerabilities27 Sep
  2. 2026ExploitBench: A Capability Ladder Benchmark for LLM Cybersecurity Agents13 May
  3. 2026ExploitGym: Can AI Agents Turn Security Vulnerabilities into Real Attacks?11 May
  4. 2026ZeroDayBench: Evaluating LLM Agents on Unseen Zero-Day Vulnerabilities for Cyberdefense2 Mar
  5. 2026What Makes a Good LLM Agent for Real-world Penetration Testing?19 Feb
  6. 2026CVE-Factory: Scaling Expert-Level Agentic Tasks for Code Security Vulnerability3 Feb
  7. 2025SEC-bench: Automated Benchmarking of LLM Agents on Real-World Software Security Tasks13 Jun
  8. 2025CVE-Bench: A Benchmark for AI Agents' Ability to Exploit Real-World Web Application Vulnerabilities21 Mar

Other references · 11

  1. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  2. 2024Cybench: A Framework for Evaluating Cybersecurity Capabilities and Risks of Language Modelscited by 164
  3. 2025CyberGym: Evaluating AI Agents' Real-World Cybersecurity Capabilities at Scalecited by 78
  4. 2025PATCHEVAL: A New Benchmark for Evaluating LLMs on Patching Real-World Vulnerabilitiescited by 21
  5. 2026Do Androids Dream of Breaking the Game? Systematically Auditing AI Agent Benchmarks with BenchJackcited by 14
  6. 2026SEC-bench Pro: Can Language Models Solve Long-Horizon Software Security Tasks?cited by 9
  7. 2026CyberGym-E2E: Scalable Real-World Benchmark for AI Agents' End-to-End Cybersecurity Capabilitiescited by 8
  8. 2026Every Model Cheats: Prompt-Level Mitigation of Cheating on Offensive Cyber Taskscited by 3
  9. 2026Vul4Py: Benchmarking Automated Vulnerability Repair in Python with Paired Exploit and Functional Oraclescited by 3
  10. 2026PatchBench: Evaluating AI Agents for Vulnerability Patchingcited by 2
  11. 2026BenchShield: Formal Model-Backed Instrumentation for Reward Integrity in LLM-Agent Evaluation Infrastructurecited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026The Next Challenge for Agentic Cybersecurity: A Realistic, Contamination-Free Reverse Engineering Benchmark
  2. 2026Vulnerability Localization Benchmark: Measuring Agentic Security Analysis at Repository Scale
  3. 2026SWE-Bench Pro Verified: A Reliable Benchmark for Software Engineering Agents
  4. 2025SoK: Measuring What Matters for Closed-Loop Security Agents
  5. 2026AgentXploit: Autonomous Repository-to-Runtime Red-Teaming for AI Agents
  6. 2026Cyber-Capable AI Agents: Vulnerabilities, Evaluation Containment, and Defensive Response
  7. 2025SecureVibeBench: Benchmarking Secure Vibe Coding of AI Agents via Reconstructing Vulnerability-Introducing Scenarios
  8. 2026To Defend Against Cyber Attacks, We Must Teach AI Agents to Hack