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:
- Security Analysis: Explaining the bug (Low Risk).
- Proof-of-Concept (PoC) Generation: Creating a minimal script to trigger the bug (The "Dual-Use" Boundary).
- 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.
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.
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