Towards Automated Penetration Testing: Introducing LLM Benchmark, Analysis, and Improvements
Not on the map. Why?
Abstract (arXiv)
Hacking poses a significant threat to cybersecurity, inflicting billions of dollars in damages annually. To mitigate these risks, ethical hacking, or penetration testing, is employed to identify vulnerabilities in systems and networks. Recent advancements in large language models (LLMs) have shown potential across various domains, including cybersecurity. However, there is currently no comprehensive, open, automated, end-to-end penetration testing benchmark to drive progress and evaluate the capabilities of these models in security contexts. This paper introduces a novel open benchmark for LLM-based automated penetration testing, addressing this critical gap. We first evaluate the performance of LLMs, including GPT-4o and LLama 3.1-405B, using the state-of-the-art PentestGPT tool. Our findings reveal that while LLama 3.1 demonstrates an edge over GPT-4o, both models currently fall short of performing end-to-end penetration testing even with some minimal human assistance. Next, we advance the state-of-the-art and present ablation studies that provide insights into improving the PentestGPT tool. Our research illuminates the challenges LLMs face in each aspect of Pentesting, e.g. enumeration, exploitation, and privilege escalation. This work contributes to the growing body of knowledge on AI-assisted cybersecurity and lays the foundation for future research in automated penetration testing using large language models.
Key facts. Cited by 11 papers in the map (data through 14 Oct 2026). Builds on 11 of its 40 references that are in the map. First posted on arXiv 22 Oct 2024.
Builds on
11 of 40 references.
References · 11
- 2017Attention Is All You Needcited by 60,361
- 2023GPT-4 Technical Reportcited by 18,396
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2024LLM Agents can Autonomously Exploit One-day Vulnerabilitiescited by 128
- 2024LLM Agents can Autonomously Hack Websitescited by 109
- 2024Teams of LLM Agents can Exploit Zero-Day Vulnerabilitiescited by 95
- 2023Plan, Eliminate, and Track -- Language Models are Good Teachers for Embodied Agentscited by 32
- 2023LLMs as Hackers: Autonomous Linux Privilege Escalation Attackscited by 27
- 2023Understanding Hackers' Work: An Empirical Study of Offensive Security Practitionerscited by 8
Built on by
Citing papers per year: 2025: 8; 2026: 3.
11 papers.
- 2025VulnBot: Autonomous Penetration Testing for A Multi-Agent Collaborative Frameworkcited by 31
- 2025Frontier AI's Impact on the Cybersecurity Landscapecited by 21
- 2025A Survey on Agentic Security: Applications, Threats and Defensescited by 20
- 2025Benchmarking Practices in LLM-driven Offensive Security: Testbeds, Metrics, and Experiment Designcited by 14
- 2025RedTeamLLM: an Agentic AI framework for offensive securitycited by 7
- 2025PentestEval: Benchmarking LLM-based Penetration Testing with Modular and Stage-Level Designcited by 7
- 2025xOffense: An Autonomous Multi-Agent Framework for Penetration Testing with Domain-Adapted Large Language Modelscited by 3
- 2025Cybersecurity AI: Evaluating Agentic Cybersecurity in Attack/Defense CTFscited by 1
- 2026How Reliable Are AI Attackers Against a Fixed Vulnerable Target? A 400-Run Empirical Study of LLM Penetration Testing Consistencycited by 1
- 2026Environment-Grounded Multi-Agent Workflow for Autonomous Penetration Testingcited by 0
- 2026Determinants and Limits of LLM Security-Tool Orchestration: A Study with HexStrike-AIcited by 0
- 2026Determinants and Limits of LLM Security-Tool Orchestration: A Study with HexStrike-AI3 Jul 2026
- 2026How Reliable Are AI Attackers Against a Fixed Vulnerable Target? A 400-Run Empirical Study of LLM Penetration Testing Consistency28 May 2026
- 2026Environment-Grounded Multi-Agent Workflow for Autonomous Penetration Testing25 Mar 2026
- 2025PentestEval: Benchmarking LLM-based Penetration Testing with Modular and Stage-Level Design16 Dec 2025
- 2025Cybersecurity AI: Evaluating Agentic Cybersecurity in Attack/Defense CTFs20 Oct 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
- 2025RedTeamLLM: an Agentic AI framework for offensive security11 May 2025
- 2025Benchmarking Practices in LLM-driven Offensive Security: Testbeds, Metrics, and Experiment Design14 Apr 2025
- 2025Frontier AI's Impact on the Cybersecurity Landscape7 Apr 2025
- 2025VulnBot: Autonomous Penetration Testing for A Multi-Agent Collaborative Framework23 Jan 2025