Cybersecurity AI: Evaluating Agentic Cybersecurity in Attack/Defense CTFs
Francesco Balassone, Víctor Mayoral-Vilches, Stefan Rass, Martin Pinzger, Gaetano Perrone, Simon Pietro Romano, Peter Schartner
TL;DR
This paper empirically contrasts AI-driven offense and defense in Attack/Defense CTFs using CAI's parallel execution to run autonomous red and blue agents across 23 battlegrounds with 15-minute windows. Under unconstrained conditions, defensive patching significantly outperformed offensive initial access ($p=0.0193$), but when defense faced operational requirements like maintaining availability or preventing all intrusions, the advantage disappeared, indicating that defense effectiveness is highly sensitive to success criteria. The authors also provide taxonomy-based analyses linking outcomes to MITRE ATT&CK, CWE, and CAPEC categories, highlighting patterns in vulnerability types and attack vectors while noting small sample sizes limit broad generalizations. The work argues against a universal AI attacker advantage and underscores the need for constraint-aware testing and open, reusable Cybersecurity AI frameworks to sustain defense parity as offensive automation accelerates. Overall, the study establishes a rigorous framework for evaluating AI security capabilities and motivates practical deployment considerations for defender-led AI tooling.
Abstract
We empirically evaluate whether AI systems are more effective at attacking or defending in cybersecurity. Using CAI (Cybersecurity AI)'s parallel execution framework, we deployed autonomous agents in 23 Attack/Defense CTF battlegrounds. Statistical analysis reveals defensive agents achieve 54.3% unconstrained patching success versus 28.3% offensive initial access (p=0.0193), but this advantage disappears under operational constraints: when defense requires maintaining availability (23.9%) and preventing all intrusions (15.2%), no significant difference exists (p>0.05). Exploratory taxonomy analysis suggests potential patterns in vulnerability exploitation, though limited sample sizes preclude definitive conclusions. This study provides the first controlled empirical evidence challenging claims of AI attacker advantage, demonstrating that defensive effectiveness critically depends on success criteria, a nuance absent from conceptual analyses but essential for deployment. These findings underscore the urgency for defenders to adopt open-source Cybersecurity AI frameworks to maintain security equilibrium against accelerating offensive automation.
