AutoPentest: Enhancing Vulnerability Management With Autonomous LLM Agents
On the map: LLM agents and tool use → Agent threats, guardrails and governance
Abstract (arXiv)
A recent area of increasing research is the use of Large Language Models (LLMs) in penetration testing, which promises to reduce costs and thus allow for higher frequency. We conduct a review of related work, identifying best practices and common evaluation issues. We then present AutoPentest, an application for performing black-box penetration tests with a high degree of autonomy. AutoPentest is based on the LLM GPT-4o from OpenAI and the LLM agent framework LangChain. It can perform complex multi-step tasks, augmented by external tools and knowledge bases. We conduct a study on three capture-the-flag style Hack The Box (HTB) machines, comparing our implementation AutoPentest with the baseline approach of manually using the ChatGPT-4o user interface. Both approaches are able to complete 15-25 % of the subtasks on the HTB machines, with AutoPentest slightly outperforming ChatGPT. We measure a total cost of 96.20 US when using AutoPentest across all experiments, while a one-month subscription to ChatGPT Plus costs 20. The results show that further implementation efforts and the use of more powerful LLMs released in the future are likely to make this a viable part of vulnerability management.
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 19 of its 67 references that are in the map. First posted on arXiv 15 May 2025.
Builds on
19 of 67 references.
Closest ancestors · 6
Same direction, newest first
- 2024HackSynth: LLM Agent and Evaluation Framework for Autonomous Penetration Testing2 Dec
- 2024PentestAgent: Incorporating LLM Agents to Automated Penetration Testing7 Nov
- 2024EnIGMA: Interactive Tools Substantially Assist LM Agents in Finding Security Vulnerabilities24 Sep
- 2024BreachSeek: A Multi-Agent Automated Penetration Tester31 Aug
- 2024Teams of LLM Agents can Exploit Zero-Day Vulnerabilities2 Jun
- 2023LLMs Killed the Script Kiddie: How Agents Supported by Large Language Models Change the Landscape of Network Threat Testing10 Oct
Other references · 13
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2023AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversationcited by 1,906
- 2023Plan-and-Solve Prompting: Improving Zero-Shot Chain-of-Thought Reasoning by Large Language Modelscited by 550
- 2024Large Language Models: A Surveycited by 506
- 2023PentestGPT: An LLM-empowered Automatic Penetration Testing Toolcited by 94
- 2024AutoAttacker: A Large Language Model Guided System to Implement Automatic Cyber-attackscited by 94
- 2024An Empirical Evaluation of LLMs for Solving Offensive Security Challengescited by 33
- 2023LLMs as Hackers: Autonomous Linux Privilege Escalation Attackscited by 25
- 2025CAI: An Open, Bug Bounty-Ready Cybersecurity AIcited by 13
- 2025Can LLMs Hack Enterprise Networks? Autonomous Assumed Breach Penetration-Testing Active Directory Networkscited by 12
- 2023Understanding Hackers' Work: An Empirical Study of Offensive Security Practitionerscited by 8
- 2024CIPHER: Cybersecurity Intelligent Penetration-testing Helper for Ethical Researchercited by 6
1 more
Built on by
Citing papers per year: 2025: 3; 2026: 5.
8 papers.
- 2025A Survey on Agentic Security: Applications, Threats and Defensescited by 17
- 2025TrafficSimAgent: A Hierarchical Agent Framework for Autonomous Traffic Simulation with MCP Controlcited by 3
- 2025xOffense: An Autonomous Multi-Agent Framework for Penetration Testing with Domain-Adapted Large Language Modelscited by 2
- 2026RvB: Automating AI System Hardening via Iterative Red-Blue Gamescited by 2
- 2026A Dual-Loop Agent Framework for Automated Vulnerability Reproductioncited by 1
- 2026Automation-Exploit: A Multi-Agent LLM Framework for Adaptive Offensive Security with Digital Twin-Based Risk-Mitigated Exploitationcited by 1
- 2026Decoupling Reconnaissance and Exploitation: Measuring the Capability Boundaries of LLM-Based Web Penetration Testingcited by 1
- 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
- 2026Decoupling Reconnaissance and Exploitation: Measuring the Capability Boundaries of LLM-Based Web Penetration Testing24 Jun 2026
- 2026Automation-Exploit: A Multi-Agent LLM Framework for Adaptive Offensive Security with Digital Twin-Based Risk-Mitigated Exploitation24 Apr 2026
- 2026A Dual-Loop Agent Framework for Automated Vulnerability Reproduction5 Feb 2026
- 2026RvB: Automating AI System Hardening via Iterative Red-Blue Games27 Jan 2026
- 2025TrafficSimAgent: A Hierarchical Agent Framework for Autonomous Traffic Simulation with MCP Control24 Dec 2025
- 2025A Survey on Agentic Security: Applications, Threats and Defenses7 Oct 2025
- 2025xOffense: An Autonomous Multi-Agent Framework for Penetration Testing with Domain-Adapted Large Language Models16 Sep 2025
Similar, not cited
Close in wording, no citation either way
- 2025AutoPentester: An LLM Agent-based Framework for Automated Pentesting
- 2026Hackers or Hallucinators? A Comprehensive Analysis of LLM-Based Automated Penetration Testing
- 2026Big Enough to Break Out: Tracking the Rising Capability of LLM Penetration-Testing Agents
- 2024AutoPenBench: Benchmarking Generative Agents for Penetration Testing
- 2025From Capabilities to Performance: Evaluating Key Functional Properties of LLM Architectures in Penetration Testing
- 2026What Makes a Good LLM Agent for Real-world Penetration Testing?
- 2025RapidPen: Fully Automated IP-to-Shell Penetration Testing with LLM-based Agents
- 2025Guided Reasoning in LLM-Driven Penetration Testing Using Structured Attack Trees