BountyBench: Dollar Impact of AI Agent Attackers and Defenders on Real-World Cybersecurity Systems

Andy K. Zhang, Joey Ji, Celeste Menders, Riya Dulepet, Thomas Qin, Ron Y. Wang, Junrong Wu, Kyleen Liao, Jiliang Li, Jinghan Hu, Sara Hong, Nardos Demilew, Shivatmica Murgai, Jason Tran, Nishka Kacheria, Ethan Ho, Denis Liu, Lauren McLane, Olivia Bruvik, Dai-Rong Han, Seungwoo Kim, Akhil Vyas, Cuiyuanxiu Chen, Ryan Li, Weiran Xu, Jonathan Z. Ye, Prerit Choudhary, Siddharth M. Bhatia, Vikram Sivashankar, Yuxuan Bao, Dawn Song, Dan Boneh, Daniel E. Ho, Percy Liang

TL;DR

This paper introduces BountyBench, a novel framework and benchmark for evaluating AI agents' cybersecurity capabilities in real-world systems. It quantifies the dollar impact of AI agents in detecting, exploiting, and patching vulnerabilities, revealing significant differences in agent performance and highlighting the economic potential of AI in cybersecurity.

What Problem Does This Paper Address?

The rapid advancement of AI agents presents both opportunities and challenges for cybersecurity. While AI can potentially automate threat detection and defense, accurately measuring their capabilities and understanding their economic impact has been difficult. Existing benchmarks often lack real-world complexity, system evolution, and a clear economic dimension. This paper addresses this gap by creating a comprehensive framework and benchmark that captures the full vulnerability lifecycle and quantifies the monetary value of AI agent performance in cybersecurity tasks.

Methods

The authors developed a framework to assess offensive and defensive AI capabilities in evolving real-world systems. This framework is instantiated as BountyBench, a benchmark comprising 25 complex, real-world codebases with 40 actual bug bounties. BountyBench defines three core tasks:

  • Detect: Identifying a new vulnerability without prior information (akin to zero-day detection).
  • Exploit: Creating an exploit for a known vulnerability.
  • Patch: Developing a fix for a known vulnerability.

To evaluate the Detect task, a novel "Detect Indicator" was introduced for more localized and comprehensive evaluation. Task difficulty is modulated by providing varying levels of information, from zero-day scenarios to full bug bounty reports. The entire process is automated, with agents operating within a Kali Linux container and interacting with the system via network commands.

Datasets

The benchmark, BountyBench, is a newly introduced dataset. It consists of:

  • 25 diverse systems: These are complex, real-world codebases, often open-source repositories.
  • 40 bug bounties: These represent actual vulnerabilities with associated monetary awards ranging from $10 to $30,485, covering 9 of the OWASP Top 10 Risks.

BountyBench differs from existing benchmarks by incorporating real-world system evolution, a full vulnerability lifecycle (detect, exploit, patch), and direct economic impact quantification through bug bounty values.

Key Insights and Ideas

  • AI agents can have a significant dollar impact in cybersecurity: The monetary value of successful bug bounty completions by AI agents demonstrates their potential to contribute economically to cybersecurity efforts.
  • Defense (patching) is currently a stronger suit for many AI agents than offense (exploitation): Several leading AI models show much higher success rates in patching vulnerabilities compared to exploiting them.
  • Information is a powerful modulator of AI agent performance: Providing more context, such as Common Weakness Enumerations (CWEs) or full bug bounty reports, significantly improves AI agents' ability to detect vulnerabilities.
  • Structured coding tools benefit defense: AI agents with specialized tools for code manipulation (like OpenAI Codex CLI and Claude Code) excel at patching, likely due to their ability to precisely modify code.
  • Real-world complexity matters: The benchmark's design, incorporating complex systems and the full vulnerability lifecycle, is crucial for accurately assessing AI capabilities beyond simplified environments.

Key Results

The study evaluated 10 AI agents across BountyBench's tasks. Key findings include:

  • Top Performers:
    • Detect: OpenAI Codex CLI: 03-high achieved a 12.5% success rate, translating to approximately $3,720 in bounty value.
  • Exploit: Custom Agent with Claude 3.7 Sonnet Thinking led with a 67.5% success rate.
  • Patch: OpenAI Codex CLI: 04-mini and 03-high both achieved a 90% success rate, with bounty values of approximately $14,422 and $14,152, respectively.
  • Offense-Defense Imbalance: Models like OpenAI Codex CLI (03-high, 04-mini) and Claude Code showed high defense (Patch) scores (90%, 90%, 87.5%) but lower offense (Exploit) scores (47.5%, 32.5%, 57.5%). Custom agents were more balanced.
  • Economic Impact: Agents collectively earned significant amounts, with Patch tasks yielding $81,067 and Detect tasks $9,700.
  • Information's Role: Success rates in the Detect task increased substantially with more information provided (from "No Info" to "CWE + Title").

Limitations and Future Work

The authors acknowledge several limitations and suggest future directions:

  • Manual Effort: Creating and populating BountyBench is highly labor-intensive, requiring significant manual effort for system setup, exploit/patch creation, and invariant definition.
  • Automating Benchmark Creation: Future work aims to automate the creation of systems and tasks to scale BountyBench and increase evaluation confidence.
  • Expanding Agent Scaffolds: The current evaluation lacks coverage of agents that utilize browser use or other custom tools.
  • Future Work: The authors plan to continue updating BountyBench with new systems, agents, and tasks. They also intend to explore how browser use and other custom tools affect agent performance. Additionally, they aim to investigate the impact of AI agents on system evolution and the potential for AI to assist in both offensive and defensive cybersecurity research.

Summary updated

BibTeX
@inproceedings{zhang2025bountybench,
  author = {Andy K. Zhang and Joey Ji and Celeste Menders and Riya Dulepet and Thomas Qin and Ron Y. Wang and Junrong Wu and Kyleen Liao and Jiliang Li and Jinghan Hu and Sara Hong and Nardos Demilew and Shivatmica Murgai and Jason Tran and Nishka Kacheria and Ethan Ho and Denis Liu and Lauren McLane and Olivia Bruvik and Dai-Rong Han and Seungwoo Kim and Akhil Vyas and Cuiyuanxiu Chen and Ryan Li and Weiran Xu and Jonathan Z. Ye and Prerit Choudhary and Siddharth M. Bhatia and Vikram Sivashankar and Yuxuan Bao and Dawn Song and Dan Boneh and Daniel E. Ho and Percy Liang},
  title = {{BountyBench: Dollar Impact of AI Agent Attackers and Defenders on Real-World Cybersecurity Systems}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=JNPoPyHTHg},
}
Figure