Cybench: A Framework for Evaluating Cybersecurity Capabilities and Risk of Language Models

Andy K. Zhang, Neil Perry, Riya Dulepet, Eliot Jones, Justin W. Lin, Joey Ji, Celeste Menders, Gashon Hussein, Samantha Liu, Donovan Jasper, Pura Peetathawatchai, Ari Glenn, Vikram Sivashankar, Daniel Zamoshchin, Leo Glikbarg, Derek Askaryar, Mike Yang, Teddy Zhang, Rishi Alluri, Nathan Tran, Rinnara Sangpisit, Polycarpos Yiorkadjis, Kenny Osele, Gautham Raghupathi, Dan Boneh, Daniel E. Ho, Percy Liang

Abstract

As Large Language Models (LLMs) transition into autonomous agents, their potential for dual-use in cybersecurity—both defensive and offensive—poses significant safety risks. We introduce Cybench, an open-source benchmark comprising 40 professional-level Capture the Flag (CTF) tasks. Cybench moves beyond binary pass/fail metrics by introducing intermediate subtasks to measure incremental progress. Our evaluation of eight state-of-the-art models reveals a distinct "capability cliff": while agents can solve tasks that human experts complete in under 11 minutes, they currently lack the deep reasoning required for more complex cryptographic and architectural challenges.

Introduction

The rapid advancement of LLMs has enabled them to perform complex, multi-step reasoning tasks in specialized domains. In cybersecurity, this capability is a double-edged sword. While these models can assist in identifying and patching vulnerabilities, they can also be weaponized to automate cyberattacks. Existing benchmarks for evaluating these risks often fall short; they are either too simplistic, lack transparency, or fail to provide a granular view of an agent's progress toward a solution.

To address these gaps, we present Cybench, a standardized framework designed to rigorously test the cybersecurity capabilities of LLM agents using real-world, professional-grade challenges.

The Cybench Framework

Cybench provides a realistic environment for agents to operate. Each task is hosted within a Kali Linux Docker container, allowing agents to execute bash commands, interact with network services, and analyze file systems.

Figure 1: The Cybench agent-environment interaction loop, showing the agent's memory, action-observation cycle, and the target environment.

The framework emphasizes two key innovations:

  1. Agent Scaffolding: To improve reasoning, agents utilize a "structured bash" scaffold. Before taking an action, the model must explicitly generate a Reflection on previous steps, a Plan for the current state, a Thought process for the next move, and a Log of its actions.
  2. Subtask Decomposition: Complex CTF tasks are broken down into 4–5 intermediate subtasks. This allows researchers to track "Subtask Performance," providing a more nuanced understanding of where models succeed and where they stall, even if they fail to capture the final flag.

Methodology and Datasets

The benchmark consists of 40 tasks curated from four prestigious CTF competitions held between 2022 and 2024: HackTheBox, SekaiCTF, GlacierCTF, and HKCert. These tasks cover a broad spectrum of cybersecurity disciplines, including Cryptography, Web Security, Reverse Engineering, Forensics, and Pwn (exploitation).

A critical metric used in Cybench is First Solve Time (FST)—the time it took the first human team to solve the challenge during the original competition. This provides an objective difficulty scale, ranging from a few minutes to over 24 hours.

Results: The 11-Minute Capability Cliff

Our evaluation of eight leading models, including GPT-4o and Claude 3.5 Sonnet, revealed a striking trend in model performance relative to task difficulty.

Figure 4: Performance comparison across models, highlighting the 11-minute cliff in unguided performance and o1-preview's lead in subtask completion.

Key Findings:

  • The 11-Minute Cliff: There is a sharp drop-off in performance based on human solve time. Unguided agents were successful in tasks with a human FST of up to 11 minutes. However, they failed every single task that required more than 11 minutes of human expertise.
  • Reasoning as the Bottleneck: Analysis shows that models rarely fail due to a lack of technical knowledge (e.g., not knowing a specific Linux command). Instead, they fail at the "reasoning" stage—unable to make the complex logical leaps or cryptographic insights necessary for harder tasks.
  • o1-preview's Subtask Proficiency: While its overall solve rate was comparable to other top models, OpenAI’s o1-preview demonstrated a superior ability to navigate intermediate steps, achieving a 46.8% Subtask Performance score.
  • Scaffolding Sensitivity: Performance is highly sensitive to the agent's scaffold. For instance, adding web search capabilities improved Claude 3.5 Sonnet's performance but hindered GPT-4o, suggesting that increased complexity in the action space can sometimes distract models from core reasoning.

Conclusion

Cybench highlights a significant gap between current AI capabilities and professional human expertise in cybersecurity. While LLMs are becoming proficient at "low-hanging fruit" tasks, the "11-minute cliff" suggests that autonomous agents are not yet capable of solving deep, complex security challenges. Future research should focus on integrating specialized security tools and extending the reasoning horizons of these agents to better understand and mitigate the risks of dual-use AI.

Summary updated

BibTeX
@inproceedings{zhang2025cybench,
  author = {Andy K. Zhang and Neil Perry and Riya Dulepet and Eliot Jones and Justin W. Lin and Joey Ji and Celeste Menders and Gashon Hussein and Samantha Liu and Donovan Jasper and Pura Peetathawatchai and Ari Glenn and Vikram Sivashankar and Daniel Zamoshchin and Leo Glikbarg and Derek Askaryar and Mike Yang and Teddy Zhang and Rishi Alluri and Nathan Tran and Rinnara Sangpisit and Polycarpos Yiorkadjis and Kenny Osele and Gautham Raghupathi and Dan Boneh and Daniel E. Ho and Percy Liang},
  title = {{Cybench: A Framework for Evaluating Cybersecurity Capabilities and Risk of Language Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=tc90LV0yRL},
}
Figure