TL;DR
This paper introduces a realistic, strictly black-box evaluation framework to test whether modern Large Language Models (LLMs) can autonomously hack into servers without human intervention. Evaluating 19 state-of-the-art LLMs, the authors found that top-tier models can achieve up to a ~70% success rate in gaining remote code execution, revealing a alarming correlation between an LLM's general reasoning capabilities and its offensive cyberattack potential.
What Problem Does This Paper Address?
Assessing whether frontier AI systems can autonomously execute cyberattacks is a critical safety priority. However, existing benchmarks suffer from major flaws: they are either proprietary and opaque (such as evaluations in corporate system cards), rely on unrealistic "Capture the Flag" (CTF) styles that don't mimic real-world objectives, or provide the AI with excessive hints and prior knowledge.
Furthermore, real-world servers don't just host a single vulnerable application; they run multiple secure background services (like SSH, databases, or web servers) that create operational "noise." This paper addresses these gaps by creating a rigorous, transparent, and realistic black-box testing environment where an AI agent is given nothing but a target IP address and must independently probe, identify, and exploit vulnerabilities.
Methods
The authors developed an autonomous penetration testing framework consisting of two core parts:
- Agent Scaffolding: A lightweight, general-purpose agent architecture that avoids task-specific optimizations. It features a Thinking module (for planning), a Memory module (using a sliding window and recursive summarization to track history), and a Tools module. The agent interacts with standard cybersecurity tools (Nmap, WhatWeb, Metasploit) via the Model Context Protocol (MCP).
- Target Environments: Isolated Docker containers running on a host machine to ensure safety and reproducibility.
The experimental setup separates the LLM from the execution environment, routing commands via HTTP to the agent container, which then attacks the target container.
Datasets
The authors curated a benchmark consisting of 300 unique target servers based on:
- 30 Real-World CVEs: Vulnerabilities spanning 2015 to 2025 that affect free and open-source software, all resulting in Remote Code Execution (RCE).
- 14 Secure Background Services: Common applications (e.g.,
nginx,sshd,mysql) used to introduce realistic background noise.
The targets are split into two difficulty tiers: Tier 1 (1 vulnerable service + 1 secure service) and Tier 2 (1 vulnerable service + 3 secure services).
Key Insights and Ideas
- Hacking Emerges from General Capability: There is a powerful positive correlation (Pearson $r = 0.83$ to $0.88$) between an LLM's performance on general benchmarks (like LiveBench) and its hacking success rate. As models get smarter at logic and planning, their cyberattack capabilities scale naturally.
- Environmental Noise is a Minor Hurdle: Moving from Tier 1 to Tier 2 only caused an average drop of 7.3% in success rates. Frontier models are remarkably adept at filtering out benign background services to locate the true attack surface.
- Bridging the Knowledge Cutoff with Tools: Strikingly, models successfully exploited vulnerabilities disclosed after their training knowledge cutoff date. For instance, Gemini 3 Pro Preview (cutoff January 2025) successfully exploited CVE-2025-3248 (disclosed April 2025). It didn't need prior knowledge of the bug; it simply used Nmap to fingerprint the service and intelligently commanded Metasploit to find and execute the relevant exploit module.
- Flaws are Tool-Centric, Not Reasoning-Centric: For frontier models, failures were rarely due to poor logic. Instead, they failed because of improper tool usage (e.g., forgetting the
-p-flag in Nmap to scan all ports, or using overly specific search keywords in Metasploit) or because Metasploit lacked a module for that specific CVE.
Key Results
Across the 19 evaluated models, penetration success rates ranged from 10.7% to 69.3%.
- Frontier Models: AI systems powered by Gemini 3 Pro Preview and Claude Opus 4.5 Reasoning led the pack, achieving success rates close to 70% on both Tier 1 and Tier 2 targets.
- Older/Smaller Models: Even models released in late 2024 consistently achieved success rates above 10%, showing that basic autonomous exploitation capabilities are already widespread.
Limitations and Future Work
The scope of this evaluation was strictly limited to initial access—gaining a single reverse shell on a target host. In the real world, a high-impact cyberattack requires post-exploitation maneuvers, such as privilege escalation and lateral movement across a network, which this framework does not yet test. Additionally, the target environments lacked active defensive measures like honeypots or intrusion detection systems.
Because agent scaffolding is inherently dual-use (beneficial for automated defense/patching but dangerous if misused), the authors emphasize that simply filtering training data is insufficient. Future work must focus on behavioral alignment and strict deployment guardrails to prevent models from executing unauthorized exploitation workflows.
Summary updated