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.
The framework emphasizes two key innovations:
- 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.
- 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.
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