mlsanityData to 7 Oct 2026

APT-Agent: Automated Penetration Testing using Large Language Models

arXiv 2605.24949 ↗First posted 24 May 2026cs.CR cs.AIcited by 2

On the map: LLM agents and tool use → Agent threats, guardrails and governance

Abstract (arXiv)

Penetration testing is essential to securing modern web infrastructures, yet traditional manual methods struggle to keep pace with their scale and complexity. Large Language Models (LLMs) offer new opportunities for automating these tasks, but existing approaches face two persistent challenges: hallucination of technical entities and insufficient long-term contextual memory. To address these issues, we present APT-Agent, a fully automated LLM-driven penetration testing framework that systematically orchestrates reconnaissance, exploitation, and exfiltration. APT-Agent introduces a hybrid rectification module to recover hallucinated commands and a command-specific memory architecture to preserve operational context across multi-step attack sequences. We evaluate our APT-Agent on Metasploitable 2 against seven vulnerable services spanning web, database, and network protocols. APT-Agent achieves an 84.29% end-to-end exploitation success rate, compared to 48.57% (Script Kiddie) and 18.57% (PentestGPT) under matched conditions. By reducing cognitive burden and minimizing reliance on human intervention, APT-Agent represents a step toward scalable, reliable, and cognitively efficient automation for penetration testing.

Key facts. Cited by 2 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 20 of its 32 references that are in the map. First posted on arXiv 24 May 2026.

Builds on

20 of 32 references.

Closest ancestors · 4

Same direction, newest first

  1. 2024PentestAgent: Incorporating LLM Agents to Automated Penetration Testing7 Nov
  2. 2024LLM Agents can Autonomously Exploit One-day Vulnerabilities11 Apr
  3. 2024LLM Agents can Autonomously Hack Websites6 Feb
  4. 2023LLMs Killed the Script Kiddie: How Agents Supported by Large Language Models Change the Landscape of Network Threat Testing10 Oct

Other references · 16

  1. 2017Attention Is All You Needcited by 59,932
  2. 2023A Survey of Large Language Modelscited by 2,537
  3. 2023SelfCheckGPT: Zero-Resource Black-Box Hallucination Detection for Generative Large Language Modelscited by 787
  4. 2023How Language Model Hallucinations Can Snowballcited by 310
  5. 2023Summary of ChatGPT-Related Research and Perspective Towards the Future of Large Language Modelscited by 152
  6. 2023PentestGPT: An LLM-empowered Automatic Penetration Testing Toolcited by 94
  7. 2024AutoAttacker: A Large Language Model Guided System to Implement Automatic Cyber-attackscited by 94
  8. 2024PenHeal: A Two-Stage LLM Framework for Automated Pentesting and Optimal Remediationcited by 30
  9. 2024Large Language Models for Blockchain Security: A Systematic Literature Reviewcited by 12
  10. 2024Drowzee: Metamorphic Testing for Fact-Conflicting Hallucination Detection in Large Language Modelscited by 12
  11. 2024Automated Progressive Red Teamingcited by 12
  12. 2013Penetration Testing == POMDP Solving?cited by 9
4 more
  1. 2025From Promise to Peril: Rethinking Cybersecurity Red and Blue Teaming in the Age of LLMscited by 9
  2. 2025Penetration Testing for System Security: Methods and Practical Approachescited by 4
  3. 2024Evaluation of Reinforcement Learning for Autonomous Penetration Testing using A3C, Q-learning and DQNcited by 3
  4. 2023ExploitFlow, cyber security exploitation routes for Game Theory and AI research in roboticscited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 2.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026AWE: Adaptive Agents for Dynamic Web Penetration Testing
  2. 2024HackSynth: LLM Agent and Evaluation Framework for Autonomous Penetration Testing
  3. 2026PenForge: On-the-Fly Expert Agent Construction for Automated Penetration Testing
  4. 2025From Capabilities to Performance: Evaluating Key Functional Properties of LLM Architectures in Penetration Testing
  5. 2026Big Enough to Break Out: Tracking the Rising Capability of LLM Penetration-Testing Agents
  6. 2025AutoPentester: An LLM Agent-based Framework for Automated Pentesting
  7. 2025AutoPentest: Enhancing Vulnerability Management With Autonomous LLM Agents
  8. 2025xOffense: An Autonomous Multi-Agent Framework for Penetration Testing with Domain-Adapted Large Language Models