Abstract
We introduce HonestCyberEval, a new benchmark for assessing AI models' capabilities and risks in automated software exploitation, focusing on their ability to detect and exploit vulnerabilities in real-world software systems. Our evaluation leverages the Nginx web server repository augmented with synthetic vulnerabilities. We assess several leading language models, including OpenAI's GPT-4.5, o3-mini, o1 and o1-mini, Anthropic's Claude-3-7-sonnet-20250219, Claude-3.5-sonnet-20241022 and Claude-3.5-sonnet-20240620, Google DeepMind's Gemini-1.5-pro, and OpenAI's earlier GPT-4o model. Our findings reveal that these models vary significantly in their success rates and efficiency, with o1-preview achieving the highest success rate (92.85%) and o3-mini and Claude-3.7-sonnet-20250219 providing cost-effective but less successful alternatives. This risk evaluation establishes a foundation for systematically evaluating the AI cyber risk in realistic cyber offence operations.
Introduction
The rapid advancement of Large Language Models (LLMs) has created a "double-edged sword" in cybersecurity. While these models can assist developers in identifying and remediating bugs, they can also be weaponized to automate the discovery and exploitation of vulnerabilities. HonestCyberEval is a new benchmark designed to stress-test these offensive capabilities by tasking models with triggering real-world vulnerabilities in the Nginx web server.
A significant gap exists in current evaluations: most benchmarks focus on general coding or high-level summarization rather than the complex, multi-step reasoning required to exploit a real-world software system. HonestCyberEval aims to quantify this "cyber risk" by providing a rigorous, end-to-end framework using realistic testbeds that models are unlikely to have encountered during training.
Methodology: The Reflexion Loop
The researchers built their evaluation on the inspect_ai framework, centered around an iterative "reflexion loop." This process allows models to learn from their mistakes in real-time.
- Initial Attempt: The model receives the vulnerable source code, a test harness, and the specific error it needs to trigger (e.g., a heap-buffer-overflow detected by AddressSanitizer).
- Feedback: If the generated input fails, the error output is fed back to the model.
- Iteration: The model "reflects" on the failure and attempts a new solution. Each model is allowed up to 15 attempts (3 epochs with 5 retries each).
Benchmark Dataset
The benchmark utilizes the Nginx AIxCC (AI Cyber Challenge) project, which consists of a modified version of the Nginx web server. The dataset includes 14 distinct Challenge Project Vulnerabilities (CPVs), ranging from heap buffer overflows to use-after-free errors. These vulnerabilities are paired with specific test harnesses (HTTP, POP3/IMAP, and SMTP) to ensure the model must generate protocol-compliant exploit payloads.
Key Insights and Results
The evaluation of eleven state-of-the-art models revealed that "reasoning" capabilities are the primary differentiator in exploitation success.
- Top Performance: OpenAI’s
o1-previewled the field, solving 13 out of 14 (92.85%) vulnerabilities. - Cost-Efficiency:
o3-miniandClaude-3.7-sonnet-20250219achieved a 71.43% success rate. Notably,o3-minisolved 10 challenges for under $10, proving that high performance does not always require the most expensive models. - The "Near-Miss" Phenomenon: Even when models failed to fully trigger a sanitizer, they often produced "near-miss" inputs. This suggests that AI agents could significantly accelerate human-led attacks by providing high-quality starting points for exploitation.
- Thinking Time vs. Speed: While standard models like
GPT-4orespond quickly (~18 seconds), the more successful reasoning models likeo3-minitook over 2 minutes, indicating that internal "thinking time" is critical for complex tasks.
Discussion and Safety
One notable finding was the brittleness of safety refusals. Some models initially refused tasks based on safety guidelines but would proceed to solve them after minor prompt adjustments or in subsequent iterations. This highlights the difficulty of aligning models against offensive use when they possess the underlying technical capability.
Conclusion
HonestCyberEval establishes a foundation for systematically evaluating AI cyber risk. Future work will expand the benchmark to include a wider variety of codebases and tasks, such as Automated Program Repair (APR), to evaluate defensive capabilities. As these challenges become public, maintaining the benchmark's integrity against training data contamination will be a primary focus.
Summary updated