Papers › PentestGPT: An LLM-empowered Automatic Penetration Testing Tool

PentestGPT: An LLM-empowered Automatic Penetration Testing Tool

13 Aug 2023arXiv:2308.06782links table onlyarchive 2025-07-28

Gelei Deng, Yi Liu, Víctor Mayoral-Vilches, Peng Liu, Yuekang Li, Yuan Xu, Tianwei Zhang, Yang Liu, Martin Pinzger, Stefan Rass

The archive published only this paper's code-link row. Authors, date and abstract are from arXiv's metadata (CC0), read from the Kaggle arXiv metadata snapshot of 2026-09-12 where its title matched the archive's; the title is the archive's.

Penetration testing, a crucial industrial practice for ensuring system security, has traditionally resisted automation due to the extensive expertise required by human professionals. Large Language Models (LLMs) have shown significant advancements in various domains, and their emergent abilities suggest their potential to revolutionize industries. In this research, we evaluate the performance of LLMs on real-world penetration testing tasks using a robust benchmark created from test machines with platforms. Our findings reveal that while LLMs demonstrate proficiency in specific sub-tasks within the penetration testing process, such as using testing tools, interpreting outputs, and proposing subsequent actions, they also encounter difficulties maintaining an integrated understanding of the overall testing scenario. In response to these insights, we introduce PentestGPT, an LLM-empowered automatic penetration testing tool that leverages the abundant domain knowledge inherent in LLMs. PentestGPT is meticulously designed with three self-interacting modules, each addressing individual sub-tasks of penetration testing, to mitigate the challenges related to context loss. Our evaluation shows that PentestGPT not only outperforms LLMs with a task-completion increase of 228.6\% compared to the \gptthree model among the benchmark targets but also proves effective in tackling real-world penetration testing challenges. Having been open-sourced on GitHub, PentestGPT has garnered over 4,700 stars and fostered active community engagement, attesting to its value and impact in both the academic and industrial spheres.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2308.06782")

Code

Syntology Ran 0 of 11 code samples harvested from 2 repositories linked to this paper; 11 have no recorded run.

By repository: community (archive-listed): 11 samples from 2 repositories, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

greydgl/pentestgpt mentioned on GitHubMIT report
isamu-isozaki/PentestGPT mentioned on GitHubMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

11 samples harvested; 0 ran; 0 honoured the contract we drafted; 11 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

11unverified

Licence: 0 of the 11 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

audit_run greydgl/pentestgpt/pentestgpt_agent/src/pentestgpt_agent/audit.py community (archive-listed) unverified MIT (permissive) · 82ad16ad2ac6b67f · report
chatgpt_completion isamu-isozaki/PentestGPT/pentestgpt/utils/chatgpt.py community (archive-listed) unverified MIT (permissive) · 905b9e146ab4e637 · report
dynamic_import isamu-isozaki/PentestGPT/pentestgpt/utils/APIs/module_import.py community (archive-listed) unverified MIT (permissive) · 3511b0f6949c0c1d · report
failure_detail greydgl/pentestgpt/pentestgpt_agent/src/pentestgpt_agent/trace.py community (archive-listed) unverified MIT (permissive) · 95e0b9c8390b6cdb · report
has_action_receipts greydgl/pentestgpt/pentestgpt_agent/src/pentestgpt_agent/trace.py community (archive-listed) unverified MIT (permissive) · 5279e7a87c9fcb3d · report
is_grounding_receipt greydgl/pentestgpt/pentestgpt_agent/src/pentestgpt_agent/trace.py community (archive-listed) unverified MIT (permissive) · 4f6792f0f35266ea · report
load_config isamu-isozaki/PentestGPT/pentestgpt/utils/chroma_vector_db.py community (archive-listed) unverified MIT (permissive) · 7a1136c6fe8b4ff9 · report
main greydgl/pentestgpt/pentestgpt_agent/src/pentestgpt_agent/audit.py community (archive-listed) unverified MIT (permissive) · a2785444ccf4813e · report
normalize_text isamu-isozaki/PentestGPT/pentestgpt/utils/chroma_vector_db.py community (archive-listed) unverified MIT (permissive) · edf2156bd952c7ed · report
run_sync greydgl/pentestgpt/pentestgpt_legacy/llm/client.py community (archive-listed) unverified MIT (permissive) · 52b8d4b6b75b4447 · report
validate_opaque_id greydgl/pentestgpt/pentestgpt_agent/src/pentestgpt_agent/identifiers.py community (archive-listed) unverified MIT (permissive) · bd8a2eb7b24844a1 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections