🤖 AI Hot

ExploitGym: AI Agents Write Real Exploits from Bug Reports

A
Alex Chen

AI finding bugs in code is old news. What’s new: AI agents that take a bug report, reason about memory layouts, chain together attack primitives, and produce a fully working exploit. Without human intervention.

That’s the finding from ExploitGym, a new benchmark released by UC Berkeley’s RDI Center in collaboration with the Max Planck Institute, UC Santa Barbara, Arizona State University, Anthropic, OpenAI, and Google. Their benchmark of 898 real-world vulnerabilities shows frontier AI models can autonomously exploit software bugs at a scale that changes the threat calculus for defenders.

The headline: Anthropic’s Claude Mythos Preview successfully exploited 157 of 898 targets. OpenAI’s GPT-5.5 exploited 120. Even more alarming, when security mitigations like ASLR (Address Space Layout Randomization) and stack canaries were enabled, the models still found ways through. And sometimes they discovered and exploited entirely different vulnerabilities than the ones researchers pointed them at.

What ExploitGym actually tests

Most AI security benchmarks focus on finding bugs or solving capture-the-flag puzzles. ExploitGym goes further. Each of its 898 tasks hands an AI agent three things:

  1. The vulnerable source code with build instructions
  2. A proof-of-vulnerability (PoV) input that triggers the bug
  3. A containerized runtime environment where the agent can interact with the target

The agent’s job: transform that PoV into a working exploit that achieves unauthorized code execution. Concretely, it must read a secret flag that is inaccessible through any legitimate interface.

The 898 tasks span three domains. Userspace programs (520 instances) cover real C/C++ projects like FFmpeg and OpenSSL, sourced from Google’s OSS-Fuzz and OSV reports. V8 browser engine tasks (185 instances) target JavaScript engine bugs in Chromium. Linux kernel tasks (193 instances) require full privilege escalation inside a virtual machine.

Each domain has toggleable security mitigations. Researchers can measure exactly how much ASLR, stack canaries, KASLR, and the V8 heap sandbox slow down an AI attacker.

The numbers that matter

Seven model-agent combinations were tested, each given two hours per task with safety filters disabled under structured access programs for security research.

ModelAgentTotalUserspaceV8KernelCost/Success
Claude Mythos PreviewClaude Code1571073812$54.70
GPT-5.5Codex CLI120712722$22.99
GPT-5.4Codex CLI5438151$12.20
Claude Opus 4.6Claude Code151221$8.08
Gemini 3.1 ProGemini CLI121020$8.56
Claude Opus 4.7Claude Code7430$8.64
GLM-5.1Claude Code4400$3.75

The drop-off is brutal. The top two models captured 277 of the total successes. The next five combined for 92. Kernel exploitation is the sharpest dividing line: Mythos Preview got 12, GPT-5.5 got 22, and everything else managed zero or one.

What about cost? Claude Mythos Preview averaged $54.70 per successful exploit. GPT-5.5 came in at $22.99. For a human security researcher billing $200-500/hour and spending days on a single exploit, these numbers are transformative. A moderately funded attacker could generate hundreds of working exploits for the cost of one human researcher’s week.

Defenses help, but don’t stop the bleeding

When standard mitigations were turned on, success rates dropped hard. But they didn’t hit zero.

With ASLR, stack canaries, and the V8 heap sandbox active, Claude Mythos Preview still exploited 25 userspace, 17 V8, and 3 kernel targets. GPT-5.5 retained 10, 3, and 8 respectively.

How? The agents found known bypass techniques. Partial-pointer overwrites to defeat ASLR. Known sandbox-escape paths for V8. Kernel tricks like overwriting modprobe_path and using side-channels to bypass KASLR. These aren’t novel 0-day techniques — they’re documented attack patterns. But an AI agent autonomously selecting and chaining them is a different threat model than a human attacker doing the same.

GPT-5.5’s kernel performance with mitigations is worth noting: it retained 8 of its 22 kernel successes with KASLR and other defenses on. That’s 36% retention. GPT-5.4, by contrast, went from 1 kernel success to 1 kernel success — its only kernel win happened to work regardless of mitigations.

Agents find bugs you didn’t know about

The most striking finding isn’t in the success counts. It’s in the gap between “captured the flag” and “exploited the intended vulnerability.”

GPT-5.5 captured flags in 210 instances but only 120 used the bug researchers provided. Claude Mythos Preview captured 226 flags but only 157 targeted the intended vulnerability. That’s 90 and 69 unintended-path solves, respectively.

In some cases, agents pivoted to adjacent code paths with weaker validation. In others, they decided the given bug wasn’t exploitable and went hunting. They audited source code. They performed dynamic fuzzing. Then they found and exploited entirely different vulnerabilities.

This is autonomous security reasoning at a level that was science fiction two years ago. It also means the benchmark’s headline numbers undercount what these models can do. They’re not just exploit generators. They’re autonomous vulnerability researchers.

The two frontier models also diverge in which targets they crack. Only 91 instances were solved by both. Claude Mythos Preview exclusively solved 56 targets, GPT-5.5 exclusively solved 26. Different models rely on qualitatively different exploitation strategies. An ensemble approach would cover substantially more ground than either alone.

A real exploit chain, step by step

The paper includes a concrete example that makes the capability tangible. GPT-5.4 was given a five-line proof-of-vulnerability that triggered an assertion in Maglev, V8’s mid-tier JIT compiler. The bug was reported by Google’s ClusterFuzz in October 2025 — after GPT-5.4’s knowledge cutoff, so no memorization was possible.

On the release build, the PoV just throws a benign TypeError. No visible memory corruption. A human researcher would need to understand why the assertion fires and whether it’s exploitable. The agent did exactly that, autonomously:

  1. Identified the bug depends on receiver shape
  2. Crafted an object that tricks Maglev into an out-of-bounds heap read
  3. Groomed the heap to leak stable pointers
  4. Forged fake V8 string objects for arbitrary native memory reads
  5. Leaked libc addresses from the Global Offset Table
  6. Built a signal-return-oriented-programming chain redirecting execution to system("/challenge/catflag")

Total time: 71 minutes. Total code: 229 lines of exploit. All generated by the model without human guidance.

One caveat: ASLR and the V8 heap sandbox were disabled for this run. With those defenses on, GPT-5.4 couldn’t complete this specific chain. Modern mitigations remain meaningful. But an AI agent independently chaining six exploitation primitives on a complex real-world target is not something anyone should ignore.

Who should pay attention

Security teams at software companies. If your vulnerability disclosure process assumes a human attacker needs days or weeks to develop an exploit, update your threat model. An AI agent can now do it in under two hours for $23-55.

AI companies shipping coding agents. Claude Code and Codex CLI were the agent harnesses used in this study. The same infrastructure that helps developers write code can be repurposed to write exploits. Safety filtering on GPT-5.5 blocked all exploit attempts under default prompting — OpenAI explicitly notes this — but the models were tested with safety filters disabled under structured access. The capability exists even if the default product experience gates it.

Policymakers thinking about AI governance. ExploitGym is inherently dual-use research, and the authors are explicit about this. They argue the responsible path is measuring these capabilities rigorously and openly so defenders, developers, and policymakers can make informed decisions. I agree. But the window for proactive governance is narrow. When a $23 API call can produce a working kernel exploit, the asymmetry between offense and defense is stark.

Bug bounty programs and vulnerability researchers. These tools can accelerate severity triage. If an agent can automatically determine whether a crash is exploitable, that changes how teams prioritize patches. Defenders should be using these same capabilities.

Limitations and what the benchmark misses

The two-hour time budget undercounts frontier model capability. When researchers extended Mythos Preview’s budget to six hours, it climbed from 127 to 204 successful exploits with no plateau. Claude Opus 4.6 flatlined at 15 within 30 minutes. Stronger models benefit disproportionately from more time.

The benchmark uses containerized environments with known configurations. Real-world targets have diverse deployment environments, custom mitigations, and monitoring that would complicate exploitation.

Safety filters matter. GPT-5.5’s default filters blocked all exploit attempts. The capabilities demonstrated here required structured access programs that explicitly disabled those filters. The average user can’t point GPT-5.5 at a bug and get an exploit. But the fact that the capability exists inside the model is the point.

The paper doesn’t address whether these exploits would work against fully patched, modern production systems with all mitigations enabled and active monitoring. The mitigation-bypass results are the closest proxy, and they show significant degradation but not elimination of capability.

What happens next

The researchers plan to release ExploitGym as an ongoing benchmark. The code is on GitHub. The paper is on arXiv. This is the beginning of systematic measurement, not the end.

I expect three things in the next 12 months. First, model capabilities will improve. The jump from Claude Opus 4.7 (7 exploits) to Mythos Preview (157) happened in months, not years. Second, defenders will start using these same agent frameworks for automated exploitability assessment. Why guess whether a crash is exploitable when you can have an agent try? Third, we’ll see the first real-world incident attributed to AI-generated exploits. The economics are too compelling for attackers to ignore.

The security community has been debating “when will AI write real exploits?” That question now has a quantitative answer: it already does, at scale, for $23-55 per exploit. The only open question is how fast the capability spreads — and whether defenders adopt these same tools before attackers make them standard issue.


I test AI tools so you don’t have to. These findings come directly from the ExploitGym paper and blog post by UC Berkeley RDI and collaborators, published May 13, 2026.

Disclosure: CarCare Guide is reader-supported. When you buy through links on our site, we may earn an affiliate commission at no extra cost to you. Learn more.
A
Alex Chen