HonestCyberEval: An AI Cyber Risk Benchmark for Automated Software Exploitation

Dan Ristea, Vasilios Mavroudis · DOI

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.

  1. 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).
  2. Feedback: If the generated input fails, the error output is fed back to the model.
  3. 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).
The HonestCyberEval reflexion loop for automated exploitation.

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.

Summary of the 14 vulnerabilities (CPVs) included in the HonestCyberEval benchmark.

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-preview led the field, solving 13 out of 14 (92.85%) vulnerabilities.
  • Cost-Efficiency: o3-mini and Claude-3.7-sonnet-20250219 achieved a 71.43% success rate. Notably, o3-mini solved 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-4o respond quickly (~18 seconds), the more successful reasoning models like o3-mini took 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

BibTeX
@misc{ristea2024honestcybereval,
  author = {Dan Ristea and Vasilios Mavroudis},
  title = {{HonestCyberEval: An AI Cyber Risk Benchmark for Automated Software Exploitation}},
  year = {2024},
  eprint = {2410.21939},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.21939},
}
Figure