ExploitGym: Can AI Agents Turn Security Vulnerabilities into Real Attacks?

Zhun Wang, Nico Schiller, Hongwei Li, Srijiith Sesha Narayana, Milad Nasr, Nicholas Carlini, Xiangyu Qi, Eric Wallace, Elie Bursztein, Luca Invernizzi, Kurt Thomas, Yan Shoshitaishvili, Wenbo Guo, Jingxuan He, Thorsten Holz, Dawn SongarXiv 2026

TL;DR

This paper introduces ExploitGym, a novel benchmark for evaluating AI agents' ability to turn security vulnerabilities into actual exploits. Their findings reveal that while exploitation remains challenging, frontier AI models can already achieve a non-trivial success rate, highlighting growing cybersecurity risks.

What Problem Does This Paper Address?

The rapid advancement of AI agents has opened up new possibilities in cybersecurity, but a critical area that has been underexplored is exploitation. Exploitation goes beyond simply identifying a vulnerability; it involves transforming that vulnerability into a concrete security impact, like unauthorized data access or code execution. This requires sophisticated low-level program reasoning, runtime adaptation, and the ability to chain multiple steps together, often bypassing complex security defenses. Existing benchmarks often focus on simpler tasks like vulnerability reproduction or patch generation, leaving a gap in evaluating the AI's ability to perform full-fledged exploitation. This is a dual-use capability: it can aid defenders in assessing risks but also lower the barrier for attackers. Therefore, a robust evaluation framework is urgently needed to understand and mitigate these risks.

Methods

The core contribution is ExploitGym, a large-scale, diverse, and realistic benchmark designed to evaluate AI agents' exploitation capabilities. Each instance in ExploitGym consists of:

  • Vulnerable Codebase: Programs with known vulnerabilities.
  • Proof-of-Vulnerability (PoV) Input: An input that triggers the vulnerability.
  • Description: A textual explanation of the vulnerability.
  • Execution Environment: A containerized environment with configurable security mitigations (e.g., ASLR, stack canaries, V8 heap sandbox).

The AI agent's task is to transform the PoV into a working exploit that achieves unauthorized code execution. Success is verified in two stages: first, by capturing a dynamically generated "flag" that is only accessible through unauthorized code execution, and second, by an "agent-as-a-judge" that ensures the exploit genuinely targets the provided vulnerability and not a different, easier one.

Datasets

ExploitGym is built upon real-world vulnerabilities from three major domains:

  • Userspace Programs: 520 instances from 161 projects sourced from OSS-Fuzz and OSV.
  • Browser (V8): 185 instances from the V8 JavaScript engine, sourced from Chromium issue tracker reports.
  • Linux Kernel: 193 instances from the Linux kernel, sourced from kernelCTF and syzbot reports.

This benchmark is novel and significantly larger than existing ones, offering a more comprehensive evaluation of exploitation capabilities.

Key Insights and Ideas

  • Exploitation is a critical, yet underevaluated, frontier for AI agents. The ability to turn a bug into a full exploit is a significant step beyond vulnerability discovery.
  • Frontier AI models are showing non-trivial exploitation capabilities. This is a wake-up call for cybersecurity, as AI agents are moving from identifying flaws to actively weaponizing them.
  • The "dual-use" nature of exploit generation is a major concern. The same AI capabilities that help defenders can empower attackers, necessitating careful ethical considerations and responsible development.
  • Agents can discover and exploit vulnerabilities beyond the intended target. This suggests that AI agents might not just automate known exploit techniques but also discover novel attack vectors.
  • Kernel exploitation is a particularly strong signal of advanced capability. Success in this domain indicates an AI's ability to navigate highly complex and challenging environments.

Key Results

  • Top models like Anthropic's Claude Mythos Preview and OpenAI's GPT-5.5 achieved significant success rates. Claude Mythos Preview solved 157 instances, and GPT-5.5 solved 120 instances within a two-hour timeout, even with standard defenses disabled.
  • Enabling standard security defenses significantly reduces success rates but does not eliminate them. This highlights that while defenses are effective, they are not foolproof against advanced AI agents.
  • Kernel exploitation is substantially harder, but Claude Mythos Preview and GPT-5.5 still achieved some successes (12 and 22, respectively). This demonstrates a qualitative leap in capability for these models.
  • Agents frequently achieve unauthorized code execution via vulnerabilities other than the intended one. For example, GPT-5.5 aligned with the intended vulnerability in only 56.7% of its successful exploits.
  • Extended evaluation (6-hour timeout) showed Claude Mythos Preview continuing to accumulate successes, suggesting its capabilities are not yet saturated. This contrasts with Claude Opus 4.6, which plateaued early.

Limitations and Future Work

  • Limited Scope: The benchmark does not cover all operating systems (e.g., Windows, iOS, Android) or application environments.
  • Success Criteria: Arbitrary code execution is used as the success metric, which might not capture other meaningful exploit progress (e.g., sandbox escape without full code execution).
  • Refusals and Non-Exploitable Bugs: Failures can stem from AI safety refusals, tool misuse, or genuinely non-exploitable vulnerabilities.
  • Lack of Ground Truth Exploits: For many tasks, ground-truth exploits are not available, making validation challenging.
  • Time and Cost Constraints: The evaluation used a fixed time limit and cost, and additional attempts or resources might yield higher success rates.
  • Future Work: The authors suggest exploring more diverse exploitation targets, developing more nuanced success metrics, and investigating ensemble approaches where multiple agents are used. They also emphasize the need for continued research into defense-in-depth and responsible AI development to address the growing risks of AI-driven exploitation.

Summary updated

BibTeX
@misc{wang2026exploitgym,
  author = {Zhun Wang and Nico Schiller and Hongwei Li and Srijiith Sesha Narayana and Milad Nasr and Nicholas Carlini and Xiangyu Qi and Eric Wallace and Elie Bursztein and Luca Invernizzi and Kurt Thomas and Yan Shoshitaishvili and Wenbo Guo and Jingxuan He and Thorsten Holz and Dawn Song},
  title = {{ExploitGym: Can AI Agents Turn Security Vulnerabilities into Real Attacks?}},
  year = {2026},
  eprint = {2605.11086},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.11086},
}

Loading related content...

Figure