AI models sometimes repair more than they exploit, but often do the opposite
AI systems can generate exploits and repairs, with performance varying across environments
AI/ML arXiv 5 Oct 2026 Measurement Prototype evidence
Published as “Does AI Help Cyber Attackers or Defenders? Evidence from Nonpublic Vulnerabilities and Subsequent Attacks”
Why it matters
The results suggest that current LLM-based security agents are more likely to aid attackers than to provide durable defenses, cautioning against premature deployment of such systems for autonomous patching.
Summary
Repair scores lead in two of five nonpublic environments, but attacks dominate in the other three and win 115 of 117 adaptive rounds, indicating current AI systems more often help attackers than defenders. Adding source-location hints improves repairs in some cases, yet structured self-review shows no consistent gain. Subsequent tests reveal many residual vulnerabilities, with additional exploits succeeding in 92 of 524 test intervals. The evidence comes from a limited, expertise-selected set of 209 disclosed memory-safety bugs and 254 nonpublic tasks, so results may not generalize.
What they found 4
- Repair scores lead in ENV-A and ENV-B; attack scores lead in the other three environments, averaging a negative contrast
“Repair scores lead in ENV-A and ENV-B; attack scores lead in the other three environments (Table II), averaging D -A = -.164.”
- Source-location hints improve repair scores in three of five environments
“In the nonpublic tasks, adding source-location hints changes repair scores in three of five environments: +.111 in ENV-A and ENV-B, and +.188 in ENV-D1.”
- In adaptive rounds, attackers win the overwhelming majority
“Across 117 rounds in which the defender submitted sourcecode changes, the attacker won 115 and the defender won two (Table VII).”
- Additional exploits succeed after an initial exploit is stopped in many test intervals
“one other tested exploit succeeds in 92 of 524 defender test intervals.”
Caveats 7
- Attacks outperform repairs in three of five nonpublic environments (negative D-A contrast).
- In the sequential interaction experiment attackers win 115 out of 117 rounds, showing repairs rarely hold up.
- Residual vulnerabilities remain, with further exploits succeeding in 92 of 524 intervals.
- Binary success, partial-credit scores and round winners measure different outcomes. A task-score difference is not a scale-calibrated capability advantage.
- Our expertise-selected environments and two-repetition experiment support task-specific findings, not representative population estimates.
- Only five selected defender-first rounds have detailed patch-status reviews; without version-bound validation for every round, recorded winners cannot all be interpreted as patch bypasses.
- Absence of public flaw-specific solutions does not prove absence from training data; private code and logs are withheld, limiting independent re-execution.
What’s new here 3
- Evaluates attack and repair performance on nonpublic, undisclosed vulnerabilities rather than public benchmarks
- Measures the robustness of repairs by conducting adaptive attacker-defender interaction rounds
- Analyzes the effect of more informative instructions and structured self-review on repair outcomes