CoChat

AutoPentester: An LLM Agent-based Framework for Automated Pentesting

Ginige, Yasod, Niroshan, Akila, Jain, Sajal, Seneviratne, Suranga · 2025 · 2025 IEEE 24th International Conference on Trust, Security and Privacy in Computing and Communications (TrustCom)
Cited by 16

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

Abstract

Penetration testing and vulnerability assessment are essential industry practices for safeguarding computer systems. As cyber threats grow in scale and complexity, the demand for pentesting has surged, surpassing the capacity of human professionals to meet it effectively. With advances in AI, particularly Large Language Models (LLMs), there have been attempts to automate the pentesting process. However, existing tools such as PentestGPT are still semi-manual, requiring significant professional human interaction to conduct pentests. To this end, we propose a novel LLM agent-based framework, AutoPentester, which automates the pentesting process. Given a target IP, AutoPentester automatically conducts pentesting steps using common security tools in an iterative process. It can dynamically generate attack strategies based on the tool outputs from the previous iteration, mimicking the human pentester approach. We evaluate AutoPentester using Hack The Box and custom-made VMs, comparing the results with the state-of-the-art PentestGPT. Results show that AutoPentester achieves a 27.0% better subtask completion rate and 39.5% more vulnerability coverage with fewer steps. Most importantly, it requires significantly fewer human interactions and interventions compared to PentestGPT. Furthermore, we recruit a group of security industry professional volunteers for a user survey and perform a qualitative analysis to evaluate AutoPentester against industry practices and compare it with PentestGPT. On average, AutoPentester received a score of 3.93 out of 5 based on user reviews, which was 19.8% higher than PentestGPT.

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.1109/trustcom66490.2025.00026

Cites

2 of 2 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

Research works printed but not linked: 37

  1. 10.1109/LISAT.2018.8378035 · doi:10.1109/lisat.2018.8378035
  2. Bai, 2022, Training a helpful and harmless assistant with reinforcement learning from human feedback, arXiv preprint arXiv:2204.05862 · arXiv
  3. Brown, 2020, Language models are few-shot learners, Advances in Neural Information Processing Systems, 33, 1877
  4. 10.1109/WETICE.2018.00012 · doi:10.1109/wetice.2018.00012
  5. 2024, The 18 CIS controls
  6. 2016, Cve-2018-20685
  7. Deng, 2023, PentestGPT on HTB Lame
  8. Deng, PentestGPT: Evaluating and harnessing large language models for automated penetration testing, USENIX Security 2024, 847
  9. Signals Directorate, 2023, Threat report 2022-2023
  10. 10.1016/c2010-0-68339-8 · doi:10.1016/c2010-0-68339-8
  11. 2024, Fedramp penetration test guidance
  12. Ginige, TrafficGPT: An LLM approach for open-set encrypted traffic classification
  13. Hat, 2011, Cve-2011-2523
  14. 2025, Cve-2017-7494
  15. 10.1016/j.cose.2024.103999 · DOI
  16. 10.1109/EuroSPW51379.2020.00010 · DOI
  17. 2024, Cost of a data breach
  18. 2025, Cve-2023-44416
  19. Kennedy, 2011, Metasploit: the penetration tester’s guide.
  20. Lewis, 2019, The cybersecurity workforce gap
  21. Mnih, 2013, Playing atari with deep reinforcement learning, preprint arXiv:1312.5602 · arXiv
  22. 2023, Oracle vm virtualbox
  23. 2025, Cve-2022-42699
  24. Ou, Mulval: A logic-based network security analyzer, 8, 113
  25. 2021, picoctf - picoctf 2021 mini-competition with redpwn
  26. Burp Suite Community Edition
  27. Subprocess — subprocess management — python 3.8.5 documentation
  28. Rafailov, 2023, Direct preference optimization: Your language model is secretly a reward model, Advances in Neural Information Processing Systems, 36, 53728
  29. 10.60087/jaigs.v6i1.268 · DOI
  30. Shen, 2024, PentestAgent: Incorporating LLM agents to automated penetration testing, arXiv preprint arXiv:2411.05185 · arXiv
  31. Team, 2023, Gemini: A family of highly capable multimodal models, arXiv preprint arXiv:2312.11805 · arXiv
  32. 2018, Textblob: Simplified text processing — textblob 0.15.2 documentation
  33. Touvron, 2023, LLaMA: Open and efficient foundation language models, arXiv preprint arXiv:2302.13971 · arXiv
  34. Tran, 2021, Deep hierarchical reinforcement agents for automated penetration testing, arXiv preprint arXiv:2109.06449 · arXiv
  35. Metasploitable: 2, 29
  36. Weidman, 2014, Penetration testing: a hands-on introduction to hacking.
  37. 10.1631/FITEE.1800532 · DOI

Metadata

Authors
Ginige, Y., Niroshan, A., Jain, S., & Seneviratne, S.
Venue
2025 IEEE 24th International Conference on Trust, Security and Privacy in Computing and Communications (TrustCom)
Publisher
IEEE
Published
2025-11-14
Pages
163-174
Cited by
16
References
2

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

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.