CoChat

PentestAgent: Incorporating LLM Agents to Automated Penetration Testing

Shen, Xiangmin, Wang, Lingzhi, Li, Zhenyuan, Chen, Yan, Zhao, Wencheng, Sun, Dawei, Wang, Jiashui, Ruan, Wei · 2025 · Proceedings of the 20th ACM Asia Conference on Computer and Communications Security
Cited by 63

The DOI matches its Crossref record; 4 of the 4 references it cites were found in a registry or an index.

Abstract

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.

Overview

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.1145/3708821.3733882

Cites

4 of 4 references verified0 citation errors · 0 not checkable

Statistics

Verification

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Citations

Cites

Show all 4 references

Research works printed but not linked: 25

  1. Talor Abramovich Meet Udeshi Minghao Shao Kilian Lieret Haoran Xi Kimberly Milner Sofija Jancheska John Yang Carlos E Jimenez Farshad Khorrami et al. 2024. EnIGMA: Enhanced Interactive Generative Model Agent for CTF Challenges. arXiv preprint arXiv:https://arXiv.org/abs/2409.16165 (2024). · arXiv
  2. 10.1145/586110.586140 · DOI · Paper page
  3. Mark S Boddy, Johnathan Gohde, Thomas Haigh, and Steven A Harp. 2005. Course of Action Generation for Cyber Security Using Classical Planning.. In ICAPS. 12–21.
  4. Jinyin Chen Shulong Hu Haibin Zheng Changyou Xing and Guomin Zhang. 2023. GAIL-PT: An intelligent penetration testing framework with generative adversarial imitation learning. Computers & Security 126 (2023) 103055. · DOI · Paper page
  5. Rapid7 Global Consulting. 2020. Under the Hoodie: Lessons from a Season of Penetration Testing. https://www.rapid7.com/research/reports/under-the-hoodie-2020/ Accessed: 2024-06-27. · doi:10.1016/s1353-4858(20)30102-1
  6. Gelei Deng, Yi Liu, Víctor Mayoral-Vilches, Peng Liu, Yuekang Li, Yuan Xu, Tianwei Zhang, Yang Liu, Martin Pinzger, and Stefan Rass. 2024. PentestGPT: Evaluating and Harnessing Large Language Models for Automated Penetration Testing. In 33rd USENIX Security Symposium (USENIX Security 24). 847–864.
  7. 10.1145/3597503.3623343 · DOI · Paper page
  8. 10.1109/LISAT.2016.7494156 · doi:10.1109/lisat.2016.7494156
  9. Karel Durkota and Viliam Lisỳ. 2014. Computing Optimal Policies for Attack Graphs with Action Failures and Costs.. In STAIRS. 101–110.
  10. 10.1109/EuroSPW51379.2020.00010 · DOI
  11. 10.1007/978-3-642-37119-6_23 · doi:10.1007/978-3-642-37119-6_23
  12. Patrick Lewis Ethan Perez Aleksandra Piktus Fabio Petroni Vladimir Karpukhin Naman Goyal Heinrich Küttler Mike Lewis Wen-tau Yih Tim Rocktäschel et al. 2020. Retrieval-augmented generation for knowledge-intensive nlp tasks. Advances in Neural Information Processing Systems 33 (2020) 9459–9474.
  13. Haonan Li Yu Hao Yizhuo Zhai and Zhiyun Qian. 2023. The Hitchhiker’s Guide to Program Analysis: A Journey with Large Language Models. arXiv preprint arXiv:https://arXiv.org/abs/2308.00245 (2023). · arXiv
  14. 10.1145/3613905.3650756 · DOI · Paper page
  15. Puzhuo Liu Chengnian Sun Yaowen Zheng Xuan Feng Chuan Qin Yuncheng Wang Zhi Li and Limin Sun. 2023. Harnessing the power of llm to support binary taint analysis. arXiv preprint arXiv:https://arXiv.org/abs/2310.08275 (2023). · arXiv
  16. Jorge Lucangeli Obes Carlos Sarraute and Gerardo Richarte. 2013. Attack planning in the real world. arXiv preprint arXiv:https://arXiv.org/abs/1306.4044 (2013). · arXiv
  17. Mark Roberts, Adele Howe, Indrajit Ray, Malgorzata Urbanska, Zinta S Byrne, and Janet M Weidert. 2011. Personalized vulnerability analysis through automated planning. In Working Notes for the 2011 IJCAI Workshop on Intelligent Security (SecArt). 50.
  18. Carlos Sarraute, Olivier Buffet, and Jörg Hoffmann. 2012. POMDPs make better hackers: Accounting for uncertainty in penetration testing. In Proceedings of the AAAI Conference on Artificial Intelligence , Vol. 26. 1816–1824.
  19. Carlos Sarraute Olivier Buffet and Jörg Hoffmann. 2013. Penetration testing== POMDP solving? arXiv preprint arXiv:https://arXiv.org/abs/1306.4714 (2013). · arXiv
  20. 10.1145/2046684.2046695 · DOI
  21. Noah Shinn Federico Cassano Ashwin Gopinath Karthik Narasimhan and Shunyu Yao. 2024. Reflexion: Language agents with verbal reinforcement learning. Advances in Neural Information Processing Systems 36 (2024).
  22. 10.1109/TCSET.2016.7452095 · doi:10.1109/tcset.2016.7452095
  23. Jason Wei Xuezhi Wang Dale Schuurmans Maarten Bosma Fei Xia Ed Chi Quoc V Le Denny Zhou et al. 2022. Chain-of-thought prompting elicits reasoning in large language models. Advances in neural information processing systems 35 (2022) 24824–24837.
  24. Jiacen Xu Jack W Stokes Geoff McDonald Xuesong Bai David Marshall Siyue Wang Adith Swaminathan and Zhou Li. 2024. AutoAttacker: A Large Language Model Guided System to Implement Automatic Cyber-attacks. arXiv preprint arXiv:https://arXiv.org/abs/2403.01038 (2024). · arXiv
  25. Tian-yang Zhou Yi-chao Zang Jun-hu Zhu and Qing-xian Wang. 2019. NIG-AP: A new method for automated penetration testing. Frontiers of Information Technology & Electronic Engineering 20 9 (2019) 1277–1288. · DOI

Cited by

See all 63

Metadata

Authors
Shen, X., Wang, L., Li, Z., Chen, Y., Zhao, W., Sun, D., Wang, J., & Ruan, W.
Venue
Proceedings of the 20th ACM Asia Conference on Computer and Communications Security
Publisher
ACM
Published
2025-08-24
Pages
375-391
Cited by
63
References
4

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review

How to cite

Cite CoChat for the checks on this page, and the paper for its own findings.

This page
CoChat. (2026). Citation check: PentestAgent: Incorporating LLM Agents to Automated Penetration Testing. https://app.cochat.ai/papers/10.1145/3708821.3733882
The paper
Shen, X., Wang, L., Li, Z., Chen, Y., Zhao, W., Sun, D., Wang, J., & Ruan, W. (2025). PentestAgent: Incorporating LLM Agents to Automated Penetration Testing. Proceedings of the 20th ACM Asia Conference on Computer and Communications Security. https://doi.org/10.1145/3708821.3733882

Data sources

Bibliographic data: Semantic Scholar, OpenAlex, Crossref.

Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).

Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.