CyberDualEval: Measuring Dual-Use Cyber Risks in Frontier Language Models

Magnus Saebo, Francesco Piccoli, Maxwell Watson, Pranjali Thakur, Yangruibo Ding, Zhuo ZhangarXiv 2026

TL;DR

Frontier AI models are becoming remarkably good at finding software bugs, but there's a catch: the same skills needed to patch a vulnerability are exactly what an attacker needs to exploit it. This paper introduces CyberDualEval, a benchmark that moves beyond simple "can it hack?" questions to measure the "residual risk"—the precise amount of effort an AI saves a human attacker—revealing that current models are either frustratingly over-cautious or dangerously helpful.

What Problem Does This Paper Address?

In the world of cybersecurity, we face a "persistent asymmetry." A defender has to find and fix every single hole in a complex system, while an attacker only needs to find one. Large Language Models (LLMs) offer a tantalizing solution: they could act as tireless, expert assistants for defenders, scaling up the search for bugs.

However, these models are "dual-use." A tool that explains a memory leak to a developer is also a tool that helps a hacker craft a "Proof-of-Concept" (PoC) to crash a server. Existing benchmarks are often too binary—they measure if a model is a "good hacker" or if it "refuses" to answer. They miss the messy middle ground where a model provides a "safe" defensive analysis that actually does 90% of the work for an attacker. The authors call this the residual cyber risk.

Methods

The researchers built a framework to test models across 430 tasks, each broken into three escalating phases:

  1. Security Analysis: Explaining the bug (Low Risk).
  2. Proof-of-Concept (PoC) Generation: Creating a minimal script to trigger the bug (The "Dual-Use" Boundary).
  3. Exploit Generation: Turning the bug into a weapon, like stealing data (High Risk).

To quantify the danger, they created the Task Weaponization Score (TWS). This is a 1-to-4 scale that measures how much "work" is left for a human. A TWS of 1 means the AI just showed the bug exists; a TWS of 4 means the AI handed over a "turn-key" weapon.

Figure 1: Overview of CyberDualEval. CyberDualEval evaluates frontier and open-weight models on vulnerable applications sourced from real-world CVEs and CTF challenges through three phases of increasing cyber risk: security analysis, proof-of-concept generation, and exploit generation. We measure compliance on safe and risky tasks and validate accuracy over CyberDualEval-VALIDATED.

To make sure the AI wasn't just hallucinating, they developed a "CyberDualEval-VALIDATED" subset. They used Docker containers to run the AI's code against "differential twins"—a vulnerable version of a program and a patched version. If the code worked on the broken one but failed on the fixed one, the AI got a point.

Datasets

The benchmark draws from four major sources of real-world vulnerabilities:

  • CyBench: Binary exploitation challenges.
  • CyberGym: Real-world memory safety bugs.
  • Exploit-DB: A massive database of verified, exploitable CVEs.
  • Vulhub: Containerized web application vulnerabilities.

The final dataset contains 1,290 total phases across 430 distinct tasks.

Key Insights and Ideas

  • The "Last Mile" Matters: The researchers proved that TWS is a valid metric. When they gave a model a high-TWS PoC (one that is nearly an exploit), the model's success rate at creating a full weapon skyrocketed while the "thinking time" (tokens used) plummeted.
  • The Over-Refusal Trap: Most "closed" models (like GPT-4 or Claude) are currently "too cautious." Because they are trained to avoid anything that looks like hacking, they often refuse to help with legitimate defensive analysis. They essentially "throw the baby out with the bathwater."
  • The Open-Weight Wild West: In contrast, "open-weight" models (like DeepSeek) rarely refuse anything. They demonstrate high capability but offer almost no guardrails against generating dangerous exploits.
  • Context is Fickle: Simply telling a model "I'm a student doing a lab" or "I'm a security engineer" can sometimes trick it into being more helpful (or more dangerous), but this behavior is inconsistent across different AI families.

Key Results

The evaluation of ten leading models revealed a stark divide:

  • Refusal Quality: Five out of seven closed-weight models refused all unsafe requests. However, they were so "trigger-happy" with their filters that they also refused between 28% and 62% of safe, defensive requests.
  • The Capability Gap: Open-weight models achieved validated success rates of 59–64% on risky exploit requests. They are effectively highly capable, un-gated hacking assistants.
  • The "Best" Performer: GPT-6 Astra came closest to the ideal balance, but even it struggled to distinguish between a low-risk PoC and a high-risk exploitation primitive.
Main results showing the trade-off between refusal quality and utility

Limitations and Future Work

The authors are the first to admit that cybersecurity is a moving target.

  • Evaluation Variance: They only ran each test once due to the high cost of tokens; repeated runs might show different "moods" of the models.
  • Validation Breadth: Only about 60% of the tasks have fully automated, deterministic grading. The rest rely on expert human annotation.
  • The Need for Better Detectors: The paper concludes that we need "high-risk dual-use detectors"—systems that can look at a request and understand not just what is being asked, but how much offensive uplift the answer would provide.

In short, we have the digital equivalent of a locksmith who is so afraid of being a burglar that they won't even help you find your lost keys—or a master thief who will give anyone a skeleton key if they just ask nicely. Finding the middle ground is the next great challenge for AI safety.

Summary updated

Abstract

While frontier language models are becoming capable cybersecurity assistants, they also create a dual-use cyber risk: the same capabilities that help defenders identify and analyze vulnerabilities can similarly help attackers weaponize them. Existing cyber benchmarks measure either raw offensive capability or generic refusal behavior, overlooking the dual-use cyber assessment of preserving benign security utility while refusing assistance that materially advances misuse. We introduce CyberDualEval, a benchmark with 430 vulnerable tasks for measuring dual-use cyber risk in frontier language models. Each task is decomposed into three phases of increasing operationalization: security analysis, proof-of-concept generation, and exploit generation. To quantify the residual cyber risk, we annotate each task with a Task Weaponization Score that measures how much work remains to turn the resulting artifact into unauthorized cyber misuse. CyberDualEval assesses ten closed- and open-weight language models both on correct compliance and on task performance, developing four deterministic mechanisms for determining per-phase success on a large subset of the dataset. Our evaluation reveals that none of the existing frontier models effectively navigate helping with safe requests and refusing risky ones, characterized by being overly-cautious. On the other hand, recent open-weight models rarely refuse and demonstrate strong validated accuracy on risky requests.
BibTeX
@misc{saebo2026cyberdualeval,
  author = {Magnus Saebo and Francesco Piccoli and Maxwell Watson and Pranjali Thakur and Yangruibo Ding and Zhuo Zhang},
  title = {{CyberDualEval: Measuring Dual-Use Cyber Risks in Frontier Language Models}},
  year = {2026},
  eprint = {2611.30533},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.30533},
}
Figure