CyberGym: Evaluating AI Agents' Real-World Cybersecurity Capabilities at Scale

ZHUN WANG (UC Berkeley), Tianneng Shi (UC Berkeley), Jingxuan He (UC Berkeley), Matthew Cai (UC Berkeley), Jialin Zhang (UC Berkeley), Dawn Song (UC Berkeley)

International Conference on Learning Representations 2026 · Oral

Overview

The rapid evolution of AI agents, particularly in code generation and interaction with complex execution environments, presents a dual-edged sword: unprecedented productivity gains alongside significant, yet often unseen, security risks. This talk introduces CyberGym, a novel and large-scale benchmark designed to rigorously evaluate the real-world cybersecurity capabilities of these autonomous AI agents. Developed by a team from UC Berkeley, CyberGym addresses the critical question of how capable current AI agents are in identifying, understanding, and reproducing software vulnerabilities at scale.

Watch on SlidesLive

Visual summary for CyberGym: Evaluating AI Agents' Real-World Cybersecurity Capabilities at Scale by ZHUN WANG, Tianneng Shi, Jingxuan He, Matthew Cai, Jialin Zhang, Dawn Song
Visual summary for CyberGym: Evaluating AI Agents' Real-World Cybersecurity Capabilities at Scale by ZHUN WANG, Tianneng Shi, Jingxuan He, Matthew Cai, Jialin Zhang, Dawn Song

Key moments

  1. 0:00 Introducing CyberGym: evaluating AI agents' cybersecurity capabilities.
  2. 2:00 Challenges of AI generating PoCs for large codebases.
  3. 4:00 Rapid improvement of AI agents in cybersecurity tasks.
  4. 4:50 AI agents crashing patched versions, indicating new vulnerabilities.
  5. 6:00 Discovery of 25+ new, previously unknown vulnerabilities by agents.
  6. 8:00 Addressing data contamination concerns in the CyberGym benchmark.
  7. 9:00 Latest AI models achieve high success rates on benchmark.

CyberGym: Evaluating AI Agents' Real-World Cybersecurity Capabilities at Scale

Speakers: ZHUN WANG (UC Berkeley); Tianneng Shi (UC Berkeley); Jingxuan He (UC Berkeley); Matthew Cai (UC Berkeley); Jialin Zhang (UC Berkeley); Dawn Song (UC Berkeley)

Conference: ICLR 2026

YouTube: https://slideslive.com/39062038

Overview

The rapid evolution of AI agents, particularly in code generation and interaction with complex execution environments, presents a dual-edged sword: unprecedented productivity gains alongside significant, yet often unseen, security risks. This talk introduces CyberGym, a novel and large-scale benchmark designed to rigorously evaluate the real-world cybersecurity capabilities of these autonomous AI agents. Developed by a team from UC Berkeley, CyberGym addresses the critical question of how capable current AI agents are in identifying, understanding, and reproducing software vulnerabilities at scale.

Zhun Wang, presenting on behalf of the UC Berkeley team, highlighted the shift from basic code completion tools to sophisticated chat-based assistants and now to autonomous agents that can interact with entire codebases and execution environments. While these agents democratize programming and enhance efficiency—software engineering being the most frequent use case for models like Anthropic's Claude—their widespread adoption simultaneously lowers the barrier for malicious actors. Consequently, cybersecurity has emerged as a paramount risk area for AI, necessitating robust evaluation methodologies like CyberGym.

CyberGym’s innovative approach involves deriving each benchmark instance from a real-world, previously discovered and patched vulnerability. Agents are tasked with generating a Proof of Concept (PoC)—a test input designed to reproduce the vulnerability as described. The benchmark's findings reveal a concerning, yet fascinating, trend: AI agents' cybersecurity capabilities are improving at an astonishing rate, demonstrating not only proficiency in reproducing known vulnerabilities but also a surprising capacity to discover entirely new ones that even advanced traditional fuzzing techniques have missed.

Background

▶ Watch: Introducing CyberGym: evaluating AI agents' cybersecurity capabilities. (0:00)

The landscape of AI-powered coding tools has undergone a dramatic transformation in recent years. Initially, simple code completion models offered incremental productivity boosts. This evolved into more sophisticated chat-based assistants capable of answering natural language queries and assisting with complex coding tasks. Today, the frontier is defined by autonomous agents that can interact with entire codebases and execution environments with minimal human intervention. These agents are not merely suggesting code snippets; they are capable of understanding context, navigating complex project structures, and even executing code to verify their outputs. This paradigm shift makes programming more accessible to a broader population, evident in studies like Anthropic’s, which identify software engineering as the most frequent application of their Claude models.

However, this technological advancement is accompanied by a less visible, yet profound, challenge: security risks. While AI can empower benign users to write code more efficiently, it concurrently lowers the barrier for potential attackers. The ability of an AI agent to quickly comprehend code, identify patterns, and generate functional exploits could be leveraged for malicious purposes, escalating the threat landscape. Recognizing this, the cybersecurity implications of AI have been identified as a core risk area for the technology itself.

The central problem CyberGym seeks to address is quantifying the capabilities of these AI agents in real-world cybersecurity tasks. The researchers specifically focused on memory safety issues, a class of vulnerabilities that has been extensively studied for decades within the security domain. These issues, such as buffer overflows, use-after-free errors, and integer overflows, are notoriously difficult to prevent and exploit, yet their prevalence makes them an ideal target for evaluating AI agent performance. The task for an agent within CyberGym is to take a vulnerable codebase along with a natural language description of a known vulnerability and generate a Proof of Concept (PoC). A PoC, in this context, is a precisely crafted input that, when fed to the program, reliably reproduces the described vulnerability. This reproduction is crucial not only for validating the reachability of the bug but also for accurately estimating its severity.

Key Findings

▶ Watch: Rapid improvement of AI agents in cybersecurity tasks. (4:00)

The evaluation conducted using CyberGym over a year revealed several pivotal findings that underscore the rapidly advancing capabilities of AI agents in cybersecurity and their potential to redefine vulnerability discovery.

Firstly, a striking trend emerged regarding the performance of leading AI models. Over a 12-month period, the success rates of models from Anthropic and OpenAI in generating PoCs for known vulnerabilities surged dramatically. These models saw their success rates jump from approximately 10% to more than 80%, indicating a profound improvement in their ability to understand, localize, and exploit real-world memory safety issues. Anthropic's latest model achieved an impressive 83% success rate on the benchmark, with OpenAI's latest model close behind at around 80%. This rapid progression highlights the accelerating pace of AI development in complex reasoning and interaction tasks.

Beyond merely reproducing known vulnerabilities, a more significant discovery was the agents' unexpected capacity to identify previously unknown vulnerabilities. The researchers initially observed over 700 crashes on patched versions of programs when agents attempted to generate PoCs. While technically these PoCs failed the reproduction task (as they shouldn't crash the patched version), these crashes signaled potentially more serious underlying issues. Through a meticulous process of comparing crash reports with target vulnerabilities and manual inspection, 18 cases were identified as potentially stemming from incomplete patches. Further re-running these PoCs on the latest versions of the corresponding projects still resulted in 35 persistent crashes. After careful manual inspection and deduplication, this led to the confirmation of nine previously unknown vulnerabilities, seven of which were subsequently fixed by developers after being reported by the research team. Crucially, these vulnerabilities had been missed by OSS-Fuzz, Google's continuous fuzzing platform, which had been continuously testing these projects, underscoring the AI agents' ability to complement or even surpass traditional automated vulnerability discovery techniques.

To further assess this capability, the team conducted a targeted experiment where agents were provided only with the latest codebase (i.e., the patched version) and tasked with generating inputs that would trigger crashes. This setup directly aimed at discovering new vulnerabilities. Running this experiment across more than 400 open-source projects, agents generated 72 crashes. Following rigorous manual validation, these led to the discovery of an additional 25 new vulnerabilities. The impact of these findings was further amplified when Anthropic extended the research using their extensive compute resources and latest models, demonstrating that the methods revealed by CyberGym could identify thousands of high-severity vulnerabilities in critical software projects like OpenBSD and Firefox.

In conclusion, CyberGym not only serves as a robust, large-scale, and realistic benchmark for measuring the rapid evolution of agentic AI cyber capabilities but also proves to be a strong proxy for assessing agents' intrinsic capability to discover novel vulnerabilities. This establishes AI agents as a powerful new frontier in cybersecurity research and practice.

Technical Deep Dive

▶ Watch: AI agents crashing patched versions, indicating new vulnerabilities. (4:50)

CyberGym's design is rooted in a pragmatic approach to evaluating AI agents against real-world cybersecurity challenges. Each instance within the benchmark is meticulously derived from a real-world vulnerability that has been publicly disclosed and subsequently patched. This ensures that the agents are tested against known, verified security flaws, providing a concrete ground truth for evaluation.

The core task assigned to an AI agent in CyberGym is to generate a Proof of Concept (PoC). This PoC is not merely a theoretical description but a concrete test input designed to actively reproduce the vulnerability. The process for an agent to successfully generate such a PoC is multifaceted and presents significant technical hurdles:

  1. Understanding Large Codebases: Vulnerabilities often reside within expansive and complex software projects. For instance, the OpenSC project, cited as an example, comprises nearly 200,000 lines of code. Given only a high-level natural language description of a vulnerability, the agent must first perform localization. This involves identifying the relevant module, then pinpointing the specific functions or even lines of code that contain the bug. This requires sophisticated semantic understanding and code navigation capabilities, going beyond simple keyword searches.
  1. Constructing the PoC: Localization is only the first step. The agent must then construct a concrete input that triggers the vulnerable execution path at runtime. This demands a deep understanding of data flow through the program, how variables are manipulated, and how specific conditions must be met to activate the bug. This activation often occurs under strict constraints, requiring precise manipulation of input values and program states.
  1. Handling Complex PoC Formats: Real-world PoCs are rarely simple text files. They can be highly structured, requiring the agent to generate data in specific formats. The example provided involved a PoC that emulated a smart card performing cryptographic operations, necessitating the generation of structured data akin to what might be found on a credit card. This complexity tests the agent's ability to adhere to intricate data schemas and protocol specifications.

The validation process for a generated PoC is equally rigorous. When an agent claims to have generated a successful PoC, it is dynamically run against the target program. For memory safety vulnerabilities, a program crash is the standard signal of successful exploitation. A PoC is deemed truly successful if and only if it crashes the vulnerable version of the program but not the corresponding patched version. This critical distinction ensures that the PoC specifically reproduces the vulnerability addressed by the patch, ruling out generic crashes or issues unrelated to the targeted flaw.

To ensure the benchmark's scale and relevance over time, the dataset for CyberGym was curated from OSS-Fuzz. This platform, maintained by Google, continuously fuzzes open-source software programs to discover new bugs. Leveraging OSS-Fuzz provided a rich source of real-world, diverse vulnerabilities. The projects included in CyberGym cover a wide array of input formats and their codebases range significantly in size, from tens of thousands to even millions of lines of code, providing a comprehensive and challenging testbed for AI agents. This technical foundation ensures that CyberGym is not just a theoretical exercise but a practical measure of AI agents' capabilities against the complexities of real-world software security.

Experimental Setup & Results

▶ Watch: Addressing data contamination concerns in the CyberGym benchmark. (8:00)

The experimental evaluation conducted using CyberGym was designed to assess the evolving capabilities of AI agents over time and their potential for novel vulnerability discovery.

Dataset: The core of the experimental setup was a large dataset of real-world vulnerabilities. This dataset was carefully curated from OSS-Fuzz, Google's continuous fuzzing platform, which systematically tests open-source software for bugs. This ensured that the vulnerabilities were genuine, previously discovered, and patched, providing a robust and realistic testing ground. The projects encompassed by CyberGym featured diverse input formats and codebases ranging from tens of thousands to millions of lines of code, reflecting the complexity and variety of real-world software.

Evaluation Period: The primary evaluation spanned a one-year period, allowing the researchers to track the progression of AI models' capabilities over time. This longitudinal study was crucial for observing trends in performance.

Models Evaluated: The experiments primarily focused on leading AI models from Anthropic and OpenAI. While specific model versions were not explicitly named in the talk, the "latest model" from each provider was referenced, indicating the use of state-of-the-art agents available during the evaluation period.

Metrics: The primary metric for evaluating PoC generation was the success rate, defined by a PoC's ability to crash the vulnerable version of a program but not its patched counterpart. For novel vulnerability discovery, the metrics included the number of crashes observed on patched/latest versions, and crucially, the number of confirmed, previously unknown vulnerabilities identified after manual validation.

Headline Numbers & Key Results:

  1. Rapid Improvement in PoC Generation: The most striking result was the rapid acceleration in AI agents' ability to generate functional PoCs. Over the one-year evaluation period, the success rates of Anthropic's and OpenAI's models in reproducing known vulnerabilities jumped dramatically from approximately 10% to over 80%. Specifically, Anthropic's latest model achieved an 83% success rate on the benchmark, with OpenAI's latest model demonstrating a comparable performance at around 80%. This indicates a significant leap in AI's understanding and exploitation capabilities.
  1. Discovery of Previously Unknown Vulnerabilities (Initial Phase): During the PoC generation phase, agents generated over 700 crashes on patched versions of programs. While these were initially considered "failed" PoCs for the reproduction task, they were meticulously investigated. This investigation identified 18 cases suggesting potentially incomplete patches. After re-running these specific PoCs on the latest versions of the projects, 35 crashes persisted. Manual inspection and deduplication ultimately led to the identification of nine previously unknown vulnerabilities. Critically, seven of these nine vulnerabilities were subsequently fixed by developers after being reported by the research team, validating their practical significance. It was also noted that these specific vulnerabilities had been continuously missed by OSS-Fuzz, highlighting the agents' unique discovery capabilities.
  1. Targeted Discovery of New Vulnerabilities: To further ascertain the agents' capacity for novel bug finding, a dedicated experiment was conducted. Agents were provided with only the latest codebase (i.e., the fully patched version) and tasked with generating inputs that would trigger crashes. This experiment was run on over 400 open-source projects, resulting in 72 crashes. Following a thorough manual validation process, these crashes led to the discovery of 25 additional new vulnerabilities.
  1. Scalability of Discovery: The potential of these methods was further demonstrated by Anthropic, who, leveraging their "extensive compute" resources and latest models, extended the findings to identify thousands of high-severity vulnerabilities in prominent open-source projects such as OpenBSD and Firefox. This large-scale validation underscores the practical impact and scalability of AI-driven vulnerability discovery.

Hardware: While specific hardware configurations were not detailed, the mention of "extensive compute" by Anthropic for their extended findings implies that significant computational resources, likely involving high-performance GPUs or TPUs, were utilized for large-scale vulnerability discovery.

The experimental results unequivocally demonstrate that AI agents are not only rapidly improving their ability to understand and exploit known software vulnerabilities but also possess a powerful, complementary capability for discovering entirely new, critical bugs that elude traditional, widely adopted security testing methodologies.

Practical Implications

▶ Watch: Latest AI models achieve high success rates on benchmark. (9:00)

The findings from CyberGym carry profound practical implications for a wide spectrum of stakeholders in the software development and cybersecurity ecosystem, including practitioners, infrastructure teams, model builders, and deployers.

For practitioners and infrastructure teams, the rapid advancements in AI agents' cybersecurity capabilities signal a paradigm shift in vulnerability analysis. AI agents are no longer just theoretical tools; they are becoming powerful, practical instruments for security analysis. Their ability to understand complex codebases, localize vulnerabilities, and construct precise PoCs means they can effectively complement, and in some cases even surpass, traditional vulnerability discovery methods like fuzzing. The fact that AI agents found vulnerabilities missed by OSS-Fuzz—a sophisticated, continuously running fuzzing platform—is a stark indicator that these agents can uncover specific types of bugs or bugs in contexts where traditional techniques struggle. This suggests that infra teams should begin exploring the integration of AI agents into their security pipelines for automated vulnerability assessment and penetration testing, potentially shifting resources from purely fuzzer-based approaches to a hybrid model.

For model builders and deployers of AI agents, the dual-use nature of this technology is a critical consideration. While AI agents can significantly boost developer productivity and aid in defensive security by finding bugs, they simultaneously lower the barrier for attackers. An agent capable of quickly identifying and exploiting vulnerabilities can be equally leveraged for malicious purposes. This necessitates a strong ethical framework and robust security-focused development practices for AI agents themselves. Model builders must prioritize the security and responsible deployment of these powerful tools, potentially incorporating safeguards or limitations to prevent misuse. The implications extend to the need for developing new, AI-powered defensive tools that can counter the threats posed by AI-enabled attackers, creating an escalating AI security arms race.

Tradeoffs and Limitations: While promising, the adoption of AI agents for cybersecurity is not without tradeoffs. The "extensive compute" mentioned for large-scale vulnerability discovery by Anthropic implies that significant computational resources are required, which could be a barrier for smaller organizations. Furthermore, the current focus on memory safety issues, while important, represents a specific class of vulnerabilities. Expanding AI agent capabilities to other vulnerability types (e.g., logic flaws, authentication bypasses, web application vulnerabilities) will be the next frontier. The issue of data contamination—where models might have inadvertently seen information about the vulnerabilities during training—is also a recognized concern. While the CyberGym team performed analysis and found no strong evidence of contamination for their dataset (with approximately one-third of vulnerabilities being post-knowledge cutoff), it remains a perpetual challenge in evaluating AI models against existing datasets.

In summary, the rise of AI agents in cybersecurity demands a proactive and strategic response. Practitioners and infra teams can leverage these tools to enhance their defensive posture, while model builders must prioritize responsible AI development to mitigate potential risks. The landscape of software security is poised for significant transformation driven by these rapidly advancing AI capabilities.

Key Takeaways

  • Rapid Advancement in AI Cybersecurity Capabilities: AI agents, particularly those from Anthropic and OpenAI, have shown an astonishing improvement in cybersecurity tasks, with success rates in generating Proofs of Concept (PoCs) for real-world vulnerabilities surging from ~10% to over 80% within a year.
  • CyberGym as a Robust Benchmark: CyberGym provides a large-scale, realistic benchmark derived from real-world, patched vulnerabilities, effectively measuring AI agents' ability to understand complex codebases, localize bugs, and construct precise, complex PoCs.
  • AI Agents Discover New Vulnerabilities: Beyond reproducing known bugs, AI agents demonstrated a significant capacity to discover previously unknown vulnerabilities, including 9 confirmed bugs missed by OSS-Fuzz and an additional 25 in a targeted new bug discovery experiment. These findings highlight their ability to complement and sometimes surpass traditional security testing methods.
  • Proxy for Novel Bug Discovery: The ability of AI agents to effectively generate PoCs for known vulnerabilities serves as a strong proxy for their capability to uncover entirely new, critical vulnerabilities in complex software.
  • Dual-Use Nature and Security Implications: The power of AI agents in cybersecurity presents a dual-use challenge. While beneficial for defensive security, their ability to lower the barrier to programming and vulnerability exploitation also raises significant concerns about their potential misuse by malicious actors.
  • Future Directions: The rapid evolution of AI agents necessitates continuous research into more challenging tasks and vulnerability types to keep pace with their advancing capabilities and ensure robust security practices.

About the Speaker(s)

The primary presenter for the CyberGym work was Zhun Wang from UC Berkeley. He was joined by a collaborative team also from UC Berkeley, including Tianneng Shi, Jingxuan He, Matthew Cai, Jialin Zhang, and Dawn Song. The team members are researchers at UC Berkeley, contributing to the cutting-edge work on AI agents and their applications in the critical domain of cybersecurity.

Reviews

  • Chen Zhao (Applied ML Researcher & Empiricist) — MUST SEE ★★★★★

→ Top-rated talks at International Conference on Learning Representations 2026

All talks from International Conference on Learning Representations 2026