What Makes a Good LLM Agent for Real-world Penetration Testing?
On the map: LLM agents and tool use → Agent threats, guardrails and governance
Abstract (arXiv)
LLM-based agents show promise for automating penetration testing, yet reported performance varies widely across systems and benchmarks. We analyze 28 LLM-based penetration testing systems and evaluate five representative implementations across three benchmarks of increasing complexity. Our analysis reveals two distinct failure modes: Type A failures stem from capability gaps (missing tools, inadequate prompts) that engineering readily addresses, while Type B failures persist regardless of tooling due to planning and state management limitations. We show that Type B failures share a root cause that is largely invariant to the underlying LLM: agents lack real-time task difficulty estimation. As a result, agents misallocate effort, over-commit to low-value branches, and exhaust context before completing attack chains. Based on this insight, we present Excalibur, a penetration testing agent that couples strong tooling with difficulty-aware planning. A Tool and Skill Layer eliminates Type A failures through typed interfaces and retrieval-augmented knowledge. A Task Difficulty Assessment (TDA) mechanism addresses Type B failures by estimating tractability through four measurable dimensions (horizon estimation, evidence confidence, context load, and historical success) and uses these estimates to guide exploration-exploitation decisions within an Evidence-Guided Attack Tree Search (EGATS) framework. Excalibur achieves up to 91% task completion on CTF benchmarks with frontier models (39 to 49% relative improvement over baselines) and compromises 4 of 5 hosts on the GOAD Active Directory environment versus 2 by prior systems. These results show that difficulty-aware planning yields consistent end-to-end gains across models and addresses a limitation that model scaling alone does not eliminate.
Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 16 of its 31 references that are in the map. First posted on arXiv 19 Feb 2026.
Builds on
16 of 31 references.
Closest ancestors · 8
Same direction, newest first
- 2025xOffense: An Autonomous Multi-Agent Framework for Penetration Testing with Domain-Adapted Large Language Models16 Sep
- 2025Multi-Agent Penetration Testing AI for the Web28 Aug
- 2025Adaptive Attacks Break Defenses Against Indirect Prompt Injection Attacks on LLM Agents27 Feb
- 2025RapidPen: Fully Automated IP-to-Shell Penetration Testing with LLM-based Agents23 Feb
- 2025VulnBot: Autonomous Penetration Testing for A Multi-Agent Collaborative Framework23 Jan
- 2024HackSynth: LLM Agent and Evaluation Framework for Autonomous Penetration Testing2 Dec
- 2024PentestAgent: Incorporating LLM Agents to Automated Penetration Testing7 Nov
- 2024AutoPenBench: Benchmarking Generative Agents for Penetration Testing4 Oct
Other references · 8
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2023WebArena: A Realistic Web Environment for Building Autonomous Agentscited by 1,908
- 2025LLM Agents Making Agent Toolscited by 45
- 2024An Empirical Evaluation of LLMs for Solving Offensive Security Challengescited by 33
- 2025Can LLMs Hack Enterprise Networks? Autonomous Assumed Breach Penetration-Testing Active Directory Networkscited by 12
- 2024AutoPT: How Far Are We from the End2End Automated Web Penetration Testing?cited by 7
- 2025Shell or Nothing: Real-World Benchmarks and Memory-Activated Agents for Automated Penetration Testingcited by 7
Built on by
Citing papers per year: 2026: 8.
8 papers.
- 2026AgentCyberRange: Benchmarking Frontier AI Systems in Realistic Cyber Rangescited by 4
- 2026Cochise: A Reference Harness for Autonomous Penetration Testingcited by 3
- 2026Baselines Before Architecture: Evaluating Coding Agents for Autonomous Penetration Testingcited by 2
- 2026PoC-Adapt: Semantic-Aware Automated Vulnerability Reproduction with LLM Multi-Agents and Reinforcement Learning-Driven Adaptive Policycited by 1
- 2026Determinants and Limits of LLM Security-Tool Orchestration: A Study with HexStrike-AIcited by 0
- 2026Staying on the Attack Path: Structured State for Long-Horizon Automated Penetration Testingcited by 0
- 2026Big Enough to Break Out: Tracking the Rising Capability of LLM Penetration-Testing Agentscited by 0
- 2026Toward Secure AI-Powered Penetration Testing Agents: Security Threats, Guardrails, and Architectural Perspectivescited by 0
- 2026Toward Secure AI-Powered Penetration Testing Agents: Security Threats, Guardrails, and Architectural Perspectives15 Sep 2026
- 2026Big Enough to Break Out: Tracking the Rising Capability of LLM Penetration-Testing Agents9 Sep 2026
- 2026Staying on the Attack Path: Structured State for Long-Horizon Automated Penetration Testing7 Sep 2026
- 2026Baselines Before Architecture: Evaluating Coding Agents for Autonomous Penetration Testing13 Jul 2026
- 2026Determinants and Limits of LLM Security-Tool Orchestration: A Study with HexStrike-AI3 Jul 2026
- 2026AgentCyberRange: Benchmarking Frontier AI Systems in Realistic Cyber Ranges12 Jun 2026
- 2026Cochise: A Reference Harness for Autonomous Penetration Testing12 May 2026
- 2026PoC-Adapt: Semantic-Aware Automated Vulnerability Reproduction with LLM Multi-Agents and Reinforcement Learning-Driven Adaptive Policy8 Apr 2026
Similar, not cited
Close in wording, no citation either way
- 2025From Capabilities to Performance: Evaluating Key Functional Properties of LLM Architectures in Penetration Testing
- 2026Agentic Security: A Systematization of Tools, Failure Modes, and Design Laws for LLM-Driven Penetration Testing
- 2025Guided Reasoning in LLM-Driven Penetration Testing Using Structured Attack Trees
- 2025Automated Penetration Testing with LLM Agents and Classical Planning
- 2025AutoPentest: Enhancing Vulnerability Management With Autonomous LLM Agents
- 2026ZERO-APT: A Closed-Loop Adversarial Framework for LLM-Driven Automated Penetration Testing under Intelligent Defense ↗
- 2026When Agents Fail to Act: A Diagnostic Framework for Tool Invocation Reliability in Multi-Agent LLM Systems
- 2025More Vulnerable than You Think: On the Stability of Tool-Integrated LLM Agents