← Lab /Software

Difficulty-aware planning lets LLM agents complete 91% of penetration tasks

Excalibur achieves up to 91% task completion on CTF benchmarks and compromises 4 of 5 hosts in GOAD

Software arXiv 19 Feb 2026 Method Prototype evidence

Published as “What Makes a Good LLM Agent for Real-world Penetration Testing?”

Why it matters

Difficulty-aware planning makes automated penetration testing substantially more effective on typical enterprise targets, though human expertise is still needed for or highly complex exploits.

Summary

PENTESTGPT V2 reaches up to 91% task completion on CTF benchmarks and compromises 4 of 5 hosts in the GOAD Active Directory environment, a 49% relative gain over prior systems. The improvement holds across three frontier LLMs and three benchmarks, with ablation studies confirming that both the Tool and Skill Layer and the difficulty-aware EGATS planner contribute. However, the system still fails on exploits and on the hardest HTB machines, showing that creative reasoning remains a limitation.

What they found 3

  1. High overall success rates on benchmarks

    “PENTESTGPT V2 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.”

  2. Quantified improvement on XBOW with Opus 4.5 thinking mode

    “PENTESTGPT V2 achieves 91% task completion (best-of-3; μ=89%, σ=2.1%) with Opus 4.5 thinking mode, a 49% relative improvement over the best baseline (PentestAgent at 61%, μ=59%, σ=1.8%).”

  3. Better multi-host compromise in enterprise AD

    “PENTESTGPT V2 compromises 4 of 5 hosts with GPT-5.2 and Opus 4.5 thinking (4 hosts in all three trials; the same four hosts each time) versus at most 2 for baselines-doubling the compromise rate (80% vs. 40%).”

Caveats 4

  • Our evaluation shows that exploitation requiring creative reasoning, adversarial environments with deceptive defenses, and extended multi-week campaigns exceed current LLM capabilities.
  • This failure exposes a TDA limitation: it cannot distinguish “difficult but tractable” from “ requiring creative reasoning,” as both present as high TDI.
  • PENTESTGPT V2 with Opus 4.1 completed 10 of 13 machines (76.9%), achieving a global ranking in the top 100 out of 8,036 active participants, but failed on Hard and Insane machines, indicating boundaries where human expertise is still required.
  • These limitations suggest that fully autonomous penetration testing remains distant.

What’s new here 4

  • Introduces a real-time Task Difficulty Assessment (TDA) that quantifies horizon, evidence confidence, context load, and historical success.
  • Integrates TDA into an Evidence-Guided Attack Tree Search (EGATS) that prunes intractable branches and balances exploration-exploitation.
  • Provides a Tool and Skill Layer with typed interfaces for 38 security tools and retrieval-augmented knowledge.
  • Adds a Memory Subsystem that stores structured state outside the LLM context to prevent forgetting.