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.
Figures & tables
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 .
Validated phases
Source
Tasks
A
P
E
CyBench
14
14
7
9
CyberGym
74
70
0
0
Exploit-DB
135
79
74
17
Vulhub
207
27
44
60
Total
430
190
125
86
Table 1: CyberDualEval task composition and validation coverage. Each task decomposes into analysis, PoC, and exploit, labelled A/P/E. A task may have between zero and three validated phases.
Figure 2: Empirical validation of TWS. Agents attempt an exploit phase with and without a validated reference PoC provided and with a 5M token budget. The y-axis corresponds to the TWS score for the provided PoC, and we measure validated exploit success rate (%) and median total tokens (millions) over all attempts. We find that TWS scores correlate with weaponization.
Figure 3: Overview of CyberDualEval- validated validation mechanisms. After task completion, model artifacts are frozen and extracted before independent evaluation using fresh targets, where applicable. The three replay mechanisms run the frozen input on vulnerable and patched sources, requiring demonstration of the intended defect or secret from the vulnerable source with no demonstration in the patched source. Source Finding compares structured vulnerability reports against a private oracle. Artifact Replay runs crafted inputs against the vulnerable and patched programs. Script Rerun plants a random secret in the differential-twin and checks the submitted script extracts the secret only from the vulnerable source. Kernel Replay runs a frozen trigger program in fresh QEMU guests, checking evaluator-controlled kernel and syscall evidence for either a planted secret or defect.
Figure 4: CyberDualEval evaluation results for various TWS thresholds k . Analysis and PoCs with TWS ≤k are safe with all else marked risky. The translucent bars and numerical labels show k=2 , while the multi-color bars show the metrics for k∈{1,2,3,4} from top to bottom. Refusal quality is defined as (Correct compliance rate+Correct refusal rate−1) . Safe utility and threat measure validated success rates on safe and risky phases, respectively, over the validated subset CyberDualEval- validated . Higher refusal quality and safe utility, and lower threat score, is ideal.
Figure 5: Correct compliance versus correct refusal rates across the full benchmark, shown with a TWS threshold of k=2 . The star marks ideal behavior.
Figure 6: Prompt-framing effects on the correct compliance/refusal. Correct compliance versus correct refusal under each framing. TWS threshold is k=2 .
Appendix figures & tables11 assets
Supplementary material from the paper’s appendix.
Appendix
Source
Tasks
Share (%)
CyBench
14
3.3
CyberGym
74
17.2
ExploitDB
135
31.4
Vulhub
207
48.1
Total
430
100.0
Appendix
Table 2: Source composition of CyberDualEval.
Official CWE pillar
Tasks
Share (%)
Improper Access Control
52
12.1
Improper Interaction Between Multiple Correctly-Behaving Entities
0
0.0
Improper Control of a Resource Through its Lifetime
270
62.8
Incorrect Calculation
11
2.6
Insufficient Control Flow Management
13
3.0
Protection Mechanism Failure
14
3.3
Appendix
Table 3: CWE pillar coverage of the full benchmark, using MITRE CWE View 1000 (version 5.0). While each task counts once per applicable pillar, 92 tasks appear in multiple pillars, and thus shares do not need to sum to 100%.
TWS
Tasks
Share (%)
1
99
23.0
2
58
13.5
3
80
18.6
4
193
44.9
Total
430
100.0
Appendix
Table 4: TWS distribution of the full benchmark.
Source
Tasks
Share (%)
Analysis
PoC
Exploit
CyBench
14
5.4
14
7
9
CyberGym
70
27.2
70
0
0
ExploitDB
95
37.0
79
74
17
Vulhub
78
30.4
27
44
60
Total
257
100.0
190
125
86
Appendix
Table 5: Source composition of CyberDualEval- validated .
Official CWE pillar
Tasks
Share (%)
Analysis
PoC
Exploit
Improper Access Control
21
8.2
9
13
14
Improper Interaction Between Multiple Correctly-Behaving Entities
0
0.0
0
0
0
Improper Control of a Resource Through its Lifetime
181
70.4
135
80
66
Incorrect Calculation
10
3.9
10
1
0
Insufficient Control Flow Management
7
2.7
5
4
2
Protection Mechanism Failure
7
2.7
2
5
5
Appendix
Table 6: CWE pillar coverage of CyberDualEval- validated , using MITRE CWE View 1000 (version 5.0). While each task counts once per applicable pillar, 52 tasks appear in multiple pillars, and thus shares do not need to sum to 100%.
TWS
Tasks
Share (%)
Analysis
PoC
Exploit
1
88
34.2
86
32
3
2
47
18.3
42
17
15
3
44
17.1
27
32
27
4
78
30.4
35
44
41
Total
257
100.0
190
125
86
Appendix
Table 7: TWS distribution of CyberDualEval- validated .
Figure 7: Context carrying ablation experiment using GPT-5.6 Terra.
PoC
Exploit
Context
Explicit
Filter
Explicit
Filter
Fresh
0
13
1
30
Carried
1
8
5
27
Appendix
Table 8: Refusal behavior of GPT-5.6 Terra across the fresh and carried context over the 50-task subset. “Explicit” refers to a model using the special refusal token, and “Filter” describes provider content-filter stops. Analysis had no refusals under either condition.
Source
Supported validation
TWS
n
CyBench
Exploit-DB
Vulhub
Analysis
PoC
Exploit
1
12
0
12
0
12
12
3
2
11
3
7
1
9
11
11
3
14
4
4
6
10
14
13
4
13
0
1
12
4
13
13
Total
50
7
24
19
35
50
40
Appendix
Table 9: Composition and validation coverage of the fixed 50-instance subset compared against in the framing results table. The subset contains no CyberGym tasks.
Figure 8: Total tokens consumed for refusing phases across evaluated models. Every point is a refusal during the full benchmark evaluation for each model as shown in Figure 4 with n counting total refusals. Explicit refusal refers to model outputting the special refusal token. The interquartile range is shown in black with the center tick for median. For refused phases, model artifacts are still frozen and validated for success when available. PoCs extracted from refused phases that grade as successes are marked with a star and successful exploits from refusals are diamonds.
Metric
A1 – A2
A1 – A3
A2 – A3
Overall
Cohen’s κ (quadratic-weighted)
0.639
0.597
0.716
0.651
Cohen’s κ (linear-weighted)
0.499
0.476
0.589
0.521
Krippendorff’s α (ordinal)
0.614
0.555
0.675
0.615
Exact agreement (%)
49.1
49.4
58.9
52.5
Within-one-band agreement (%)
86.6
83.1
90.7
86.8
Appendix
Table 10: Inter-annotator agreement for CyberDualEval TWS annotations. Annotator pairs A1 – A2 , A1 – A3 , and A2 – A3 have 409, 415, and 418 jointly scored instances, respectively.
Large language model safety benchmarks test whether AI systems avoid harm while remaining helpful across realistic tasks, users, and deployment settings.
We evaluate whether frontier LLMs are ready for cybersecurity through a dual-mode benchmark: white-box function-level vulnerability detection (VulnLLM-R, across C/Java/Python) and black-box web application security testing (five production-style applications with 118 ground-truth vulnerabilities across 20+ CWE families, which we will open-source). We test six frontier models (GPT-5.4, Codex5.3, Claude Opus4.7, Sonnet4.6, Gemini3.1Pro and Gemini3~Flash) and two domain-specialized models across four testing paradigms. Our findings are sobering: (1)~every frontier model produces 10-50% false positive rates in white-box detection, systematically over-predicting vulnerabilities; (2)~in black-box testing, frontier models achieve only 4-8% ground-truth coverage, improving to just 10-19% even with external security tools (Playwright MCP, Burp Suite MCP); (3)~structured penetration-testing methodology encoded in domain-specialized agents raises per-family detection above 50%, demonstrating that methodology, not scale, is the primary lever; and (4)~a domain-specialized defense model achieves the highest precision (0.904) and lowest false positive rate (9.7%) among all models, on a single GPU. We identify the absence of structured security testing traces end-to-end request/response sequences, failure-heavy data, and multi-step attack chains as the fundamental training data bottleneck, and propose self-play security testing as a data generation strategy. Our results make the case for vertical foundation models purpose-built for cybersecurity.
We present, to our knowledge, the most comprehensive cross-model evaluation of LLM agents on offensive cybersecurity tasks, benchmarking 10 frontier models from 7 providers on all 200 challenges of the NYU CTF Bench. Building on the D-CIPHER multi-agent framework, we extend it with multi-provider backend support, a custom Kali Linux environment with over 100 pre-installed penetration testing tools, and runtime tool-discovery agents. Through a controlled factorial study, we find that the Kali Linux environment yields a +9.5 percentage-point improvement over Ubuntu, while auto-prompting and category-specific tips often degrade performance in well-equipped environments. Among models, Claude 4.5 Opus achieves the highest solve rate (59%), followed by Gemini 3 Pro (52%), with Gemini 3 Flash offering the best cost-efficiency at $0.05 per solve. Asymmetric planner/executor model assignments provide no meaningful benefit while coherent same-model configurations consistently outperform mixed-tier pairings. Our results indicate that environment tooling and model selection emerge as the strongest drivers of performance, whereas prompt engineering interventions show diminishing or negative returns in well-equipped environments. Reported performance reflects both model reasoning ability and compatibility with agent tooling and API integration.
Tyler H. Merves, Michael H. Conaway, Joseph M. Escobar +2
Department of Cybersecurity · Department of Information Sciences and Technology
Large language models (LLMs) are transforming everyday applications, yet deployment in cybersecurity lags due to a lack of high-quality, domain-specific models and training datasets. To address this gap, we present CyberPal 2.0, a family of cybersecurity-expert small language models (SLMs) ranging from 4B-20B parameters. To train CyberPal 2.0, we generate an enriched chain-of-thought cybersecurity instruction dataset built with our data enrichment and formatting pipeline, SecKnowledge 2.0, which integrates expert-in-the-loop steering of reasoning formats alongside LLM-driven multi-step grounding, yielding higher-fidelity, task-grounded reasoning traces for security tasks. Across diverse cybersecurity benchmarks, CyberPal 2.0 consistently outperforms its baselines and matches or surpasses various open and closed-source frontier models, while remaining a fraction of their size. On core cyber threat intelligence knowledge tasks, our models outperform almost all tested frontier models, ranking second only to Sec-Gemini v1. On core threat-investigation tasks, such as correlating vulnerabilities and bug tickets with weaknesses, our best 20B-parameter model outperforms GPT-4o, o1, o3-mini, and Sec-Gemini v1, ranking first, while our smallest 4B-parameter model ranks second.