Robot with camera eyes at an illuminated workbench in semi-darkness
Technical ArticlesT-506529 Nov 20266 min

ExploitGym: When AI agents turn vulnerabilities into attacks

In May 2026, a research team led by UC Berkeley used ExploitGym to measure, for the first time on a large scale, how well AI agents can build a real attack from a known vulnerability. The result is not the end of the world. Nor is it an all-clear. Anyone who plans patch cycles, or has to answer after an incident how quickly an attacker could have moved, needs to adjust their calculations.

What ExploitGym measures

ExploitGym comprises 898 instances based on real vulnerabilities. 520 come from userspace software such as FFmpeg or OpenSSL, 185 from V8, Chrome’s JavaScript engine, and 193 from the Linux kernel. In the kernel, the task requires full privilege escalation in a virtual machine.

The agent receives the vulnerable source code including build instructions, a proof-of-vulnerability input that triggers the bug, and a containerised runtime environment. From these, it has to build an exploit that reads a secret flag which cannot be reached through any legitimate interface. A second agent acts as judge and checks whether the exploit actually uses the specified vulnerability. ASLR, stack canaries, KASLR and the V8 heap sandbox can be switched on and off selectively.

The line-up is remarkable. Alongside Berkeley, the Max Planck Institute for Security and Privacy, UC Santa Barbara and Arizona State University, researchers from Anthropic, OpenAI and Google are among the authors. According to the paper, the design and methodology come from the academic authors; industry provided model access and feedback. ExploitGym builds on CyberGym, the same group’s predecessor, which only tested whether an agent could trigger a described bug.

What the results show

With two hours per task, Claude Mythos Preview built a working exploit via the specified vulnerability for 157 instances, GPT-5.5 for 120. Behind them, the field drops off steeply.

  • Claude Mythos Preview (Claude Code): 157 exploits – userspace 107, V8 38, kernel 12; with mitigations 45
  • GPT-5.5 (Codex CLI): 120 exploits – userspace 71, V8 27, kernel 22; with mitigations 21
  • GPT-5.4 (Codex CLI): 54 exploits – userspace 38, V8 15, kernel 1; with mitigations 3
  • Claude Opus 4.6 (Claude Code): 15 exploits – userspace 12, V8 2, kernel 1; with mitigations 0
  • Gemini 3.1 Pro (Gemini CLI): 12 exploits – userspace 10, V8 2, kernel 0; with mitigations 0
  • Claude Opus 4.7 (Claude Code): 7 exploits – userspace 4, V8 3, kernel 0; with mitigations 0
  • GLM-5.1 (Claude Code): 4 exploits – userspace 4, V8 0, kernel 0; with mitigations 0

Successes via the specified vulnerability, time budget two hours (Berkeley RDI, tables 1 and 2). The figure “with mitigations” is the sum of the three domains from table 2.

With protection mechanisms enabled, the numbers drop significantly, but not to zero. The agents bypassed ASLR and KASLR with partial pointer overwrites and side channels, the V8 heap sandbox with known sandbox escapes and, in the kernel, for example by overwriting modprobe_path.

I consider two findings more important than the ranking. The agents often used a completely different vulnerability from the one specified. Mythos captured the flag in 226 cases, 69 of them via an unintended bug. For GPT-5.5, it was 90 out of 210. In addition, performance grows with time. In a separate run, Mythos rose from 127 successes at two hours to 204 at six hours, with no discernible plateau. Claude Opus 4.6 stagnated at around 15 after just 30 minutes.

A case study shows the order of magnitude. From a five-line PoV, GPT-5.4 built a complete V8 exploit chain with 229 lines of code in 71 minutes. With ASLR and the heap sandbox enabled, the model failed on the same vulnerability.

Assessment from incident response and forensics

Many patch prioritisations tacitly rest on one assumption. Between a published crash input and a stable exploit lies work that only a few people master. ExploitGym shows that part of this work is now done by a machine in a matter of hours. Anyone who classifies a public PoV in an OSS-Fuzz ticket as a mere crash underestimates the risk.

For forensics, the finding on unintended vulnerabilities is delicate. If an agent recognises the specified bug as unusable and exploits a different one instead, the actual attack path need not match the vulnerability in the advisory. In my analyses, I therefore reconstruct the path from the artefacts rather than deriving it from the CVE.

The study’s limitations are part of the picture. All main experiments ran with safety filters disabled in trusted access programmes. With standard filters, GPT-5.5 refused in 88.2 per cent of cases before a single tool call was made, according to The Register. The tasks start with a working PoV, i.e. after the laborious step of finding it. And three of the companies involved sell precisely the models whose capabilities are being measured here. The Register explicitly points out this conflict of interest.

The figures should nevertheless be taken seriously. Methodology, code and results are openly documented, and the environments are available as reproducible containers. The two-hour budget tends to underestimate the strongest agents, as the six-hour run shows.

What CISOs and management should take from this

In prioritisation, a publicly available PoV belongs closer to an exploit than to a bug report. For memory corruption bugs, the time between the two is no longer a reliable buffer.

Mitigations work, but they do not replace a patch. The data shows both. ASLR, KASLR and sandboxing push the successes of the strongest agents down to a third or less, but a remainder persists. Anyone who has switched off hardening options for performance or compatibility reasons should reassess that decision now.

The threat model needs an AI agent as an attacker – the authors call for this too. In practice, this means shorter patch deadlines for exposed components with memory safety risk, i.e. browsers, media parsers, cryptographic libraries and the kernel.

The same capability can serve defence. The authors name severity triage, patch prioritisation and the validation of mitigations. Anyone who can check whether a bug is actually exploitable in their own configuration prioritises faster and with better justification.

Conclusion

The most revealing figure in ExploitGym is the jump from 127 to 204 exploits, simply because the agent was allowed to work four hours longer. Exploit development is becoming cheaper, and any patch strategy that relies on the scarcity of this craft needs to be recalculated.

Sources