PentestAgent: Incorporating LLM Agents to Automated Penetration Testing
On the map: LLM agents and tool use → Agent threats, guardrails and governance
Abstract (arXiv)
Penetration testing is a critical technique for identifying security vulnerabilities, traditionally performed manually by skilled security specialists. This complex process involves gathering information about the target system, identifying entry points, exploiting the system, and reporting findings. Despite its effectiveness, manual penetration testing is time-consuming and expensive, often requiring significant expertise and resources that many organizations cannot afford. While automated penetration testing methods have been proposed, they often fall short in real-world applications due to limitations in flexibility, adaptability, and implementation. Recent advancements in large language models (LLMs) offer new opportunities for enhancing penetration testing through increased intelligence and automation. However, current LLM-based approaches still face significant challenges, including limited penetration testing knowledge and a lack of comprehensive automation capabilities. To address these gaps, we propose PentestAgent, a novel LLM-based automated penetration testing framework that leverages the power of LLMs and various LLM-based techniques like Retrieval Augmented Generation (RAG) to enhance penetration testing knowledge and automate various tasks. Our framework leverages multi-agent collaboration to automate intelligence gathering, vulnerability analysis, and exploitation stages, reducing manual intervention. We evaluate PentestAgent using a comprehensive benchmark, demonstrating superior performance in task completion and overall efficiency. This work significantly advances the practical applicability of automated penetration testing systems.
Key facts. Cited by 47 papers in the map (data through 14 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 8 of its 42 references that are in the map. First posted on arXiv 7 Nov 2024.
Builds on
8 of 42 references.
References · 8
- 2023CAMEL: Communicative Agents for "Mind" Exploration of Large Language Model Societycited by 1,395
- 2024AutoAttacker: A Large Language Model Guided System to Implement Automatic Cyber-attackscited by 96
- 2023Getting pwn'd by AI: Penetration Testing with Large Language Modelscited by 83
- 2024"We Need Structured Output": Towards User-centered Constraints on Large Language Model Outputcited by 46
- 2013POMDPs Make Better Hackers: Accounting for Uncertainty in Penetration Testingcited by 14
- 2013Penetration Testing == POMDP Solving?cited by 9
- 2013Attack Planning in the Real Worldcited by 8
- 2013An Algorithm to Find Optimal Attack Paths in Nondeterministic Scenarioscited by 2
Built on by
Citing papers per year: 2025: 23; 2026: 24.
47 papers.
Sort:
By area:
- 2025D-CIPHER: Dynamic Collaborative Intelligent Multi-Agent System with Planner and Heterogeneous Executors for Offensive Securitycited by 20
- 2025A Survey on Agentic Security: Applications, Threats and Defensescited by 20
- 2025CompileAgent: Automated Real-World Repo-Level Compilation with Tool-Integrated LLM-based Agent Systemcited by 15
- 2025CRAKEN: Cybersecurity LLM Agent with Knowledge-Based Executioncited by 14
- 2025A Contemporary Survey of Large Language Model Assisted Program Analysiscited by 11
- 2026What Makes a Good LLM Agent for Real-world Penetration Testing?cited by 10
- 2025AutoPentest: Enhancing Vulnerability Management With Autonomous LLM Agentscited by 9
- 2025RedTeamLLM: an Agentic AI framework for offensive securitycited by 7
- 2025PACEbench: A Framework for Evaluating Practical AI Cyber-Exploitation Capabilitiescited by 7
- 2025PentestEval: Benchmarking LLM-based Penetration Testing with Modular and Stage-Level Designcited by 7
- 2025Benchmarking LLM-Assisted Blue Teaming via Standardized Threat Huntingcited by 6
- 2025AutoPentester: An LLM Agent-based Framework for Automated Pentestingcited by 6
35 more
- 2025Automated Penetration Testing with LLM Agents and Classical Planningcited by 5
- 2025Chimera: Harnessing Multi-Agent LLMs for Automatic Insider Threat Simulationcited by 4
- 2025From Trace to Line: LLM Agent for Real-World OSS Vulnerability Localizationcited by 4
- 2025LLM Agents for Automated Web Vulnerability Reproduction: Are We There Yet?cited by 4
- 2025Hiding in the AI Traffic: Abusing MCP for LLM-Powered Agentic Red Teamingcited by 4
- 2025CyberSleuth: Autonomous Blue-Team LLM Agent for Web Attack Forensicscited by 3
- 2025xOffense: An Autonomous Multi-Agent Framework for Penetration Testing with Domain-Adapted Large Language Modelscited by 3
- 2026RvB: Automating AI System Hardening via Iterative Red-Blue Gamescited by 3
- 2026CTFExplorer: Evaluating LLM Offensive Agents Through Multi-Target Web CTF Benchmarkingcited by 3
- 2025Neuro-Symbolic AI for Cybersecurity: State of the Art, Challenges, and Opportunitiescited by 2
- 2026APT-Agent: Automated Penetration Testing using Large Language Modelscited by 2
- 2025Cybersecurity AI: Evaluating Agentic Cybersecurity in Attack/Defense CTFscited by 1
- 2026PenForge: On-the-Fly Expert Agent Construction for Automated Penetration Testingcited by 1
- 2026Red-MIRROR: Agentic LLM-based Autonomous Penetration Testing with Reflective Verification and Knowledge-augmented Interactioncited by 1
- 2026Challenges and Future Directions in Agentic Reverse Engineering Systemscited by 1
- 2026Automation-Exploit: A Multi-Agent LLM Framework for Adaptive Offensive Security with Digital Twin-Based Risk-Mitigated Exploitationcited by 1
- 2026Honeyval: A Comprehensive Evaluation Framework for LLM-powered HTTP Honeypotscited by 1
- 2026How Reliable Are AI Attackers Against a Fixed Vulnerable Target? A 400-Run Empirical Study of LLM Penetration Testing Consistencycited by 1
- 2026Beyond End-to-End Success: Diagnosing Failures in Long-Horizon Security LLM Agentscited by 1
- 2025An Agentic Flow for Finite State Machine Extraction using Prompt Chainingcited by 0
- 2025MultiFuzz: A Dense Retrieval-based Multi-Agent System for Network Protocol Fuzzingcited by 0
- 2025SoK: Measuring What Matters for Closed-Loop Security Agentscited by 0
- 2026AutoEG: Exploiting Known Third-Party Vulnerabilities in Black-Box Web Applicationscited by 0
- 2026RAVEN: Retrieval-Augmented Vulnerability Exploration Network for Memory Corruption Analysis in User Code and Binary Programscited by 0
- 2026Self-Adaptive Multi-Agent LLM-Based Security Pattern Selection for IoT Systemscited by 0
- 2026From Controlled to the Wild: Evaluation of Pentesting Agents for the Real-Worldcited by 0
- 2026uGen: An Agentic Framework for Generating Microarchitectural Attack PoCscited by 0
- 2026Do LLMs Make Neural Distinguishers Wise?cited by 0
- 2026Mastermind: Strategy-grounded Learning for Repository-Scale Vulnerability Reproductioncited by 0
- 2026From Adoption to Deployment: A Qualitative Study on AI Integration in Software Development Practicecited by 0
- 2026SysEvolve: An AI-native, safe, autonomous adversarial attack-defense co-evolutionary systemcited by 0
- 2026Staying on the Attack Path: Structured State for Long-Horizon Automated Penetration Testingcited by 0
- 2026Toward Secure AI-Powered Penetration Testing Agents: Security Threats, Guardrails, and Architectural Perspectivescited by 0
- 2026PentestChain: A Cost-Aware, MCP-Orchestrated Framework for Automated Penetration Testing with Free-Tier LLMscited by 0
- 2026Natural Code Transformation Confuses Agents in Vulnerability Analysiscited by 0
- 2026Natural Code Transformation Confuses Agents in Vulnerability Analysis9 Oct 2026
- 2026PentestChain: A Cost-Aware, MCP-Orchestrated Framework for Automated Penetration Testing with Free-Tier LLMs16 Sep 2026
- 2026Toward Secure AI-Powered Penetration Testing Agents: Security Threats, Guardrails, and Architectural Perspectives15 Sep 2026
- 2026Staying on the Attack Path: Structured State for Long-Horizon Automated Penetration Testing7 Sep 2026
- 2026Beyond End-to-End Success: Diagnosing Failures in Long-Horizon Security LLM Agents20 Aug 2026
- 2026SysEvolve: An AI-native, safe, autonomous adversarial attack-defense co-evolutionary system15 Aug 2026
- 2026From Adoption to Deployment: A Qualitative Study on AI Integration in Software Development Practice18 Jul 2026
- 2026Mastermind: Strategy-grounded Learning for Repository-Scale Vulnerability Reproduction2 Jul 2026
- 2026Do LLMs Make Neural Distinguishers Wise?9 Jun 2026
- 2026How Reliable Are AI Attackers Against a Fixed Vulnerable Target? A 400-Run Empirical Study of LLM Penetration Testing Consistency28 May 2026
- 2026Honeyval: A Comprehensive Evaluation Framework for LLM-powered HTTP Honeypots28 May 2026
- 2026APT-Agent: Automated Penetration Testing using Large Language Models24 May 2026
35 more
- 2026uGen: An Agentic Framework for Generating Microarchitectural Attack PoCs15 May 2026
- 2026From Controlled to the Wild: Evaluation of Pentesting Agents for the Real-World11 May 2026
- 2026Self-Adaptive Multi-Agent LLM-Based Security Pattern Selection for IoT Systems1 May 2026
- 2026Automation-Exploit: A Multi-Agent LLM Framework for Adaptive Offensive Security with Digital Twin-Based Risk-Mitigated Exploitation24 Apr 2026
- 2026RAVEN: Retrieval-Augmented Vulnerability Exploration Network for Memory Corruption Analysis in User Code and Binary Programs20 Apr 2026
- 2026Challenges and Future Directions in Agentic Reverse Engineering Systems15 Apr 2026
- 2026AutoEG: Exploiting Known Third-Party Vulnerabilities in Black-Box Web Applications1 Apr 2026
- 2026Red-MIRROR: Agentic LLM-based Autonomous Penetration Testing with Reflective Verification and Knowledge-augmented Interaction28 Mar 2026
- 2026What Makes a Good LLM Agent for Real-world Penetration Testing?19 Feb 2026
- 2026CTFExplorer: Evaluating LLM Offensive Agents Through Multi-Target Web CTF Benchmarking8 Feb 2026
- 2026RvB: Automating AI System Hardening via Iterative Red-Blue Games27 Jan 2026
- 2026PenForge: On-the-Fly Expert Agent Construction for Automated Penetration Testing11 Jan 2026
- 2025PentestEval: Benchmarking LLM-based Penetration Testing with Modular and Stage-Level Design16 Dec 2025
- 2025Automated Penetration Testing with LLM Agents and Classical Planning11 Dec 2025
- 2025Hiding in the AI Traffic: Abusing MCP for LLM-Powered Agentic Red Teaming20 Nov 2025
- 2025Cybersecurity AI: Evaluating Agentic Cybersecurity in Attack/Defense CTFs20 Oct 2025
- 2025LLM Agents for Automated Web Vulnerability Reproduction: Are We There Yet?16 Oct 2025
- 2025PACEbench: A Framework for Evaluating Practical AI Cyber-Exploitation Capabilities13 Oct 2025
- 2025A Survey on Agentic Security: Applications, Threats and Defenses7 Oct 2025
- 2025AutoPentester: An LLM Agent-based Framework for Automated Pentesting7 Oct 2025
- 2025SoK: Measuring What Matters for Closed-Loop Security Agents2 Oct 2025
- 2025From Trace to Line: LLM Agent for Real-World OSS Vulnerability Localization30 Sep 2025
- 2025Benchmarking LLM-Assisted Blue Teaming via Standardized Threat Hunting28 Sep 2025
- 2025xOffense: An Autonomous Multi-Agent Framework for Penetration Testing with Domain-Adapted Large Language Models16 Sep 2025
- 2025Neuro-Symbolic AI for Cybersecurity: State of the Art, Challenges, and Opportunities8 Sep 2025
- 2025CyberSleuth: Autonomous Blue-Team LLM Agent for Web Attack Forensics28 Aug 2025
- 2025MultiFuzz: A Dense Retrieval-based Multi-Agent System for Network Protocol Fuzzing19 Aug 2025
- 2025Chimera: Harnessing Multi-Agent LLMs for Automatic Insider Threat Simulation11 Aug 2025
- 2025An Agentic Flow for Finite State Machine Extraction using Prompt Chaining15 Jul 2025
- 2025CRAKEN: Cybersecurity LLM Agent with Knowledge-Based Execution21 May 2025
- 2025AutoPentest: Enhancing Vulnerability Management With Autonomous LLM Agents15 May 2025
- 2025RedTeamLLM: an Agentic AI framework for offensive security11 May 2025
- 2025CompileAgent: Automated Real-World Repo-Level Compilation with Tool-Integrated LLM-based Agent System7 May 2025
- 2025D-CIPHER: Dynamic Collaborative Intelligent Multi-Agent System with Planner and Heterogeneous Executors for Offensive Security15 Feb 2025
- 2025A Contemporary Survey of Large Language Model Assisted Program Analysis5 Feb 2025
- 2025D-CIPHER: Dynamic Collaborative Intelligent Multi-Agent System with Planner and Heterogeneous Executors for Offensive Securitycited by 20
- 2025A Survey on Agentic Security: Applications, Threats and Defensescited by 20
- 2025CompileAgent: Automated Real-World Repo-Level Compilation with Tool-Integrated LLM-based Agent Systemcited by 15
- 2025CRAKEN: Cybersecurity LLM Agent with Knowledge-Based Executioncited by 14
- 2026What Makes a Good LLM Agent for Real-world Penetration Testing?cited by 10
- 2025AutoPentest: Enhancing Vulnerability Management With Autonomous LLM Agentscited by 9
- 2025RedTeamLLM: an Agentic AI framework for offensive securitycited by 7
- 2025AutoPentester: An LLM Agent-based Framework for Automated Pentestingcited by 6
- 2025Automated Penetration Testing with LLM Agents and Classical Planningcited by 5
- 2025Chimera: Harnessing Multi-Agent LLMs for Automatic Insider Threat Simulationcited by 4
- 2025From Trace to Line: LLM Agent for Real-World OSS Vulnerability Localizationcited by 4
- 2025LLM Agents for Automated Web Vulnerability Reproduction: Are We There Yet?cited by 4
12 most cited of 31 All 31 (JSON)
- 2026Natural Code Transformation Confuses Agents in Vulnerability Analysis9 Oct 2026
- 2026Toward Secure AI-Powered Penetration Testing Agents: Security Threats, Guardrails, and Architectural Perspectives15 Sep 2026
- 2026Beyond End-to-End Success: Diagnosing Failures in Long-Horizon Security LLM Agents20 Aug 2026
- 2026APT-Agent: Automated Penetration Testing using Large Language Models24 May 2026
- 2026uGen: An Agentic Framework for Generating Microarchitectural Attack PoCs15 May 2026
- 2026From Controlled to the Wild: Evaluation of Pentesting Agents for the Real-World11 May 2026
- 2026Self-Adaptive Multi-Agent LLM-Based Security Pattern Selection for IoT Systems1 May 2026
- 2026Automation-Exploit: A Multi-Agent LLM Framework for Adaptive Offensive Security with Digital Twin-Based Risk-Mitigated Exploitation24 Apr 2026
- 2026Challenges and Future Directions in Agentic Reverse Engineering Systems15 Apr 2026
- 2026Red-MIRROR: Agentic LLM-based Autonomous Penetration Testing with Reflective Verification and Knowledge-augmented Interaction28 Mar 2026
- 2026What Makes a Good LLM Agent for Real-world Penetration Testing?19 Feb 2026
- 2026CTFExplorer: Evaluating LLM Offensive Agents Through Multi-Target Web CTF Benchmarking8 Feb 2026
12 newest of 31 All 31 (JSON)
- 2025A Contemporary Survey of Large Language Model Assisted Program Analysiscited by 11
- 2025PACEbench: A Framework for Evaluating Practical AI Cyber-Exploitation Capabilitiescited by 7
- 2025PentestEval: Benchmarking LLM-based Penetration Testing with Modular and Stage-Level Designcited by 7
- 2025Benchmarking LLM-Assisted Blue Teaming via Standardized Threat Huntingcited by 6
- 2025Neuro-Symbolic AI for Cybersecurity: State of the Art, Challenges, and Opportunitiescited by 2
- 2026Honeyval: A Comprehensive Evaluation Framework for LLM-powered HTTP Honeypotscited by 1
- 2026How Reliable Are AI Attackers Against a Fixed Vulnerable Target? A 400-Run Empirical Study of LLM Penetration Testing Consistencycited by 1
- 2026AutoEG: Exploiting Known Third-Party Vulnerabilities in Black-Box Web Applicationscited by 0
- 2026Do LLMs Make Neural Distinguishers Wise?cited by 0
- 2026Mastermind: Strategy-grounded Learning for Repository-Scale Vulnerability Reproductioncited by 0
- 2026From Adoption to Deployment: A Qualitative Study on AI Integration in Software Development Practicecited by 0
- 2026SysEvolve: An AI-native, safe, autonomous adversarial attack-defense co-evolutionary systemcited by 0
12 most cited of 14 All 14 (JSON)
- 2026PentestChain: A Cost-Aware, MCP-Orchestrated Framework for Automated Penetration Testing with Free-Tier LLMs16 Sep 2026
- 2026Staying on the Attack Path: Structured State for Long-Horizon Automated Penetration Testing7 Sep 2026
- 2026SysEvolve: An AI-native, safe, autonomous adversarial attack-defense co-evolutionary system15 Aug 2026
- 2026From Adoption to Deployment: A Qualitative Study on AI Integration in Software Development Practice18 Jul 2026
- 2026Mastermind: Strategy-grounded Learning for Repository-Scale Vulnerability Reproduction2 Jul 2026
- 2026Do LLMs Make Neural Distinguishers Wise?9 Jun 2026
- 2026How Reliable Are AI Attackers Against a Fixed Vulnerable Target? A 400-Run Empirical Study of LLM Penetration Testing Consistency28 May 2026
- 2026Honeyval: A Comprehensive Evaluation Framework for LLM-powered HTTP Honeypots28 May 2026
- 2026AutoEG: Exploiting Known Third-Party Vulnerabilities in Black-Box Web Applications1 Apr 2026
- 2025PentestEval: Benchmarking LLM-based Penetration Testing with Modular and Stage-Level Design16 Dec 2025
- 2025PACEbench: A Framework for Evaluating Practical AI Cyber-Exploitation Capabilities13 Oct 2025
- 2025Benchmarking LLM-Assisted Blue Teaming via Standardized Threat Hunting28 Sep 2025
12 newest of 14 All 14 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2024HackSynth: LLM Agent and Evaluation Framework for Autonomous Penetration Testing
- 2026Hackers or Hallucinators? A Comprehensive Analysis of LLM-Based Automated Penetration Testing
- 2025VulnBot: Autonomous Penetration Testing for A Multi-Agent Collaborative Framework
- 2026Big Enough to Break Out: Tracking the Rising Capability of LLM Penetration-Testing Agents
- 2025From Capabilities to Performance: Evaluating Key Functional Properties of LLM Architectures in Penetration Testing
- 2025PentestJudge: Judging Agent Behavior Against Operational Requirements
- 2025Guided Reasoning in LLM-Driven Penetration Testing Using Structured Attack Trees
- 2024AutoPT: How Far Are We from the End2End Automated Web Penetration Testing?