ExploitGym: Can AI Agents Turn Security Vulnerabilities into Real Attacks?
AI agents are rapidly gaining capabilities that could significantly reshape cybersecurity, making rigorous evaluation urgent. A critical capability is exploitation: turning a vulnerability, which is not yet an attack, into a concrete security impact, such as unauthorized file access or code execution. Exploitation is a particularly challenging task because it requires low-level program reasoning (e.g., about memory layout), runtime adaptation, and sustained progress over long horizons. Meanwhile, it is inherently dual-use, supporting defensive workflows while lowering the barrier for offense. Despite its importance and diagnostic value, exploitation remains under-evaluated. To address this gap, we introduce ExploitGym, a large-scale, diverse, realistic benchmark on the exploitation capabilities of AI agents. Given a program input that triggers a vulnerability, ExploitGym tasks agents with progressively extending it into a working exploit. The benchmark comprises 898 instances sourced from real-world vulnerabilities across three domains, including userspace programs, Google’s V8 JavaScript engine, and the Linux kernel. We vary the security protections applied to each instance, isolating their impact on agent performance.
Introduction. Recent progress in large language models (LLMs) and AI agents has led to rapid improvements in cybersecurity capabilities, making rigorous evaluation increasingly urgent. Prior work has introduced benchmarks for a range of cybersecurity-related tasks, such as vulnerability reproduction [62], patch generation [63], and Capture-the-Flag problem solving [49, 65]. Frontier models now achieve strong performance on many of these benchmarks [2, 38], highlighting the need to better understand and evaluate the boundaries of their cybersecurity capabilities. Exploitation: A Critical Missing Piece in Cybersecurity Evaluation. A crucial yet underexplored capability is vulnerability exploitation. Exploitation is a challenging task that starts from an initial vulnerability (e.g., a few-byte buffer overflow), progressively obtains stronger primitives and privileges (e.g., arbitrary memory reads/writes), and ultimately causes a concrete security impact (e.g., unauthorized file access or code execution).
Discussion / Conclusion. Limitations. First, our tasks do not cover the full space of exploitation targets, such as Windows, iOS, and Android, or applications that run in those environments. Second, we use arbitrary code execution as the success criteria. While this provides a clear and severe measure of impact, it does not capture other meaningful outcomes, such as arbitrary read/write primitives, sandbox escape without code execution, or partial exploit progress. Third, failures may result from refusal due to safety alignment, tool misuse, or other underlying causes unrelated to the complexity of crafting exploit payloads. Failures may also stem from non-exploitable vulnerabilities, where success is impossible. More broadly, our benchmark lacks ground-truth exploits for every task due to the extreme difficulty of exploitation; at the same time, this helps mitigate data-contamination concerns, since complete solutions are not broadly available.
Lines of inquiry this paper opens 24
Research framings built by reading the notes related to this paper — the questions it feeds into.
How do capability benchmark scores systematically misrepresent true model abilities?- Can a low exploitation benchmark score indicate refusal rather than inability?
- How do benchmark scores differ from deployment safety requirements?
- Why does benchmark saturation give a false sense of capability coverage?
- How do non-exploitable vulnerabilities affect benchmark validity?
- Can expert-frontier exams discriminate frontier capability better than saturated benchmarks?
- How do single-axis safety benchmarks misrepresent deployment readiness?
- What other gaps exist between measured and actual cybersecurity agent capability?
- How do benchmark environments misrepresent deployment readiness?
- Which separable capability axes reveal when single benchmarks misrepresent deployment readiness?
- Can intermediate primitives be scored separately in exploitation benchmarks?
- What makes exploitation a missing piece in cybersecurity benchmarks?
- What framework measures marginal offense risk against existing attack technology?
- How can security metrics distinguish attack failure from task failure?
- What makes a security metric diagnostic rather than outcome-only?
- Why do attack success rates alone fail to diagnose system failures?
- Can marginal-risk frameworks measure what defensive artifact releases add beyond existing threats?