mlsanityData to 7 Oct 2026

What Makes a Good LLM Agent for Real-world Penetration Testing?

arXiv 2602.17622 ↗First posted 19 Feb 2026cs.CR cs.SEcited by 8

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

  1. 2025xOffense: An Autonomous Multi-Agent Framework for Penetration Testing with Domain-Adapted Large Language Models16 Sep
  2. 2025Multi-Agent Penetration Testing AI for the Web28 Aug
  3. 2025Adaptive Attacks Break Defenses Against Indirect Prompt Injection Attacks on LLM Agents27 Feb
  4. 2025RapidPen: Fully Automated IP-to-Shell Penetration Testing with LLM-based Agents23 Feb
  5. 2025VulnBot: Autonomous Penetration Testing for A Multi-Agent Collaborative Framework23 Jan
  6. 2024HackSynth: LLM Agent and Evaluation Framework for Autonomous Penetration Testing2 Dec
  7. 2024PentestAgent: Incorporating LLM Agents to Automated Penetration Testing7 Nov
  8. 2024AutoPenBench: Benchmarking Generative Agents for Penetration Testing4 Oct

Other references · 8

  1. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  2. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
  3. 2023WebArena: A Realistic Web Environment for Building Autonomous Agentscited by 1,908
  4. 2025LLM Agents Making Agent Toolscited by 45
  5. 2024An Empirical Evaluation of LLMs for Solving Offensive Security Challengescited by 33
  6. 2025Can LLMs Hack Enterprise Networks? Autonomous Assumed Breach Penetration-Testing Active Directory Networkscited by 12
  7. 2024AutoPT: How Far Are We from the End2End Automated Web Penetration Testing?cited by 7
  8. 2025Shell or Nothing: Real-World Benchmarks and Memory-Activated Agents for Automated Penetration Testingcited by 7

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 8.

8 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025From Capabilities to Performance: Evaluating Key Functional Properties of LLM Architectures in Penetration Testing
  2. 2026Agentic Security: A Systematization of Tools, Failure Modes, and Design Laws for LLM-Driven Penetration Testing
  3. 2025Guided Reasoning in LLM-Driven Penetration Testing Using Structured Attack Trees
  4. 2025Automated Penetration Testing with LLM Agents and Classical Planning
  5. 2025AutoPentest: Enhancing Vulnerability Management With Autonomous LLM Agents
  6. 2026ZERO-APT: A Closed-Loop Adversarial Framework for LLM-Driven Automated Penetration Testing under Intelligent Defense ↗
  7. 2026When Agents Fail to Act: A Diagnostic Framework for Tool Invocation Reliability in Multi-Agent LLM Systems
  8. 2025More Vulnerable than You Think: On the Stability of Tool-Integrated LLM Agents