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.