HonestCyberEval: An AI Cyber Risk Benchmark for Automated Software Exploitation

Dan Ristea, Vasilios Mavroudis

TL;DR

HonestCyberEval is a new benchmark designed to measure the "dual-use" risk of LLMs by testing their ability to automatically exploit vulnerabilities in real-world software. Using a modified Nginx web server as a testbed, the researchers found that OpenAI’s o1-preview achieved a staggering 92.85% success rate, signaling a significant leap in AI-driven offensive cyber capabilities.

What Problem Does This Paper Address?

As Large Language Models (LLMs) become more adept at software engineering, they present a "double-edged sword." While they can help developers patch bugs, they can also be weaponized to automate software exploitation—a process that traditionally requires high-level human expertise and weeks of manual effort.

The authors identify a critical gap in how we evaluate this risk. Existing benchmarks often use synthetic or "stale" data that models might have already seen during training (data contamination). Furthermore, they often lack the complexity of real-world systems. HonestCyberEval addresses this by using the Nginx web server repository, specifically modified with recently released vulnerabilities from DARPA’s AI Cyber Challenge (AIxCC), ensuring a fair "zero-shot" test of the models' reasoning abilities.

Methods

The researchers evaluated eleven state-of-the-art models using a reflexion loop methodology. Instead of giving a model a single chance to succeed, the framework allows for iterative self-correction:

  1. Initial Attempt: The model is given the vulnerable code, the test harness, and the specific type of error to trigger (e.g., a heap-buffer overflow).
  2. Execution: The model generates an input, which is fed into the test harness.
  3. Feedback & Reflection: If the input fails to trigger the vulnerability, the model receives the error logs, reflects on its failure, and tries again.
  4. Structure: The process consists of 3 "epochs," with up to 5 retries per epoch, for a maximum of 15 attempts per vulnerability.
Figure 1: LLM reflexion loop

To ensure fair comparison, "reasoning" models like OpenAI’s o1 and o3-mini were set to high-effort modes, and temperature was held constant at 0.7 to balance diversity and determinism.

Datasets

The benchmark is built on the Nginx AIxCC challenge project. This is a fork of the widely-used Nginx web server where the git history was rewritten to prevent models from "cheating" by looking at old commit messages.

The dataset includes 14 Challenge Project Vulnerabilities (CPVs), ranging from "easy" to "hard." These cover critical real-world flaws such as:

  • Heap-buffer overflows
  • Use-after-free vulnerabilities
  • NULL pointer dereferences
  • Global-buffer overflows
Table 1: Details of the challenge project vulnerabilities present in the Nginx challenge

Key Insights and Ideas

  • Reasoning is the Game-Changer: The "o-series" models from OpenAI, which use internal chain-of-thought reasoning, significantly outperformed standard models. This suggests that the ability to "think" through complex logic is more important for exploitation than raw pattern matching.
  • The Cost-Performance Paradox: Newer or more expensive doesn't always mean better. GPT-4.5-preview was roughly 35 times more expensive than Claude 3.5 Sonnet while achieving a lower success rate (50% vs 71.43% for the latest Sonnet).
  • "Near Misses" are Still Dangerous: Even when models failed to fully exploit a bug, they often correctly identified the vulnerable code path. This "near-miss" capability could still be highly useful for human attackers or as a pre-processor for traditional fuzzing tools.
  • Safety Refusals are Brittle: Despite safety guardrails, models like o1-preview would sometimes refuse a task ("I can't assist with that") only to successfully solve it in a subsequent retry within the same loop.

Key Results

The quantitative results highlight a clear hierarchy in model capabilities:

  • Top Performer: o1-preview dominated the field, solving 13 out of 14 vulnerabilities (92.85%).
  • Efficiency Winners: o3-mini and Claude 3.7 Sonnet both achieved a 71.43% success rate. Notably, o3-mini solved 10 challenges for under $10, making it a highly cost-effective option for automated offense.
  • Speed vs. Depth: Standard models like GPT-4o generated inputs in ~18 seconds, while reasoning models took significantly longer (o3-mini averaged ~2.5 minutes), illustrating the trade-off between speed and successful exploitation.

Limitations and Future Work

The authors acknowledge several limitations:

  • Discovery vs. Exploitation: In this benchmark, the models are given the vulnerable file. In a real-world attack, the AI would first have to find the vulnerability among thousands of files (the "discovery" phase).

  • Dataset Size: While Nginx is a great real-world example, the benchmark currently only uses 14 vulnerabilities.

  • Moving Targets: As these challenge projects become public, they will eventually be included in future training sets, requiring the benchmark to constantly evolve with new, unseen codebases.

Future work aims to expand the benchmark to include Automated Program Repair (APR)—testing if the same models that can break the code are equally good at fixing it.

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