AutoPT: How Far Are We From the Fully Automated Web Penetration Testing?
The DOI matches its Crossref record; 10 of the 10 references it cites were found in a registry or an index.
Abstract
Penetration testing is essential for ensuring Web security by identifying and mitigating vulnerabilities in advance, and the rapid progress of large language models (LLMs) shows great potential to revolutionize this process through intelligent, automated agents. In this work, we establish a comprehensive end-to-end penetration testing benchmark using a real-world penetration testing environment to explore the capabilities of LLM-based agents in this domain. Our results reveal that the agents are familiar to procedures of penetration testing tasks, but they still face limitations in generating accurate commands and executing complete processes. Accordingly, we summarize the current challenges, including the difficulty of maintaining the entire message history and the tendency for the agent to become stuck. Based on the above insights, we propose a Penetration testing State Machine (PSM) that utilizes the Finite State Machine (FSM) methodology to address these limitations. Then, we introduce AutoPT, an automated penetration testing agent based on the principle of PSM driven by LLMs, which utilizes the inherent inference ability of LLM and the constraint framework of state machines. Our evaluation results show that AutoPT outperforms the the ReAct-based baseline and improves the task completion rate from 22% to 41% on the benchmark target. Compared with the baseline and manual work, AutoPT also reduces time and economic costs further. In general, our AutoPT has facilitated the development of automated penetration testing and bring new findings and insights for both academia and industry.
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.
Integrity signals
Registry
Cites
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.
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
Huang, L., Yu, W., Ma, W., Zhong, W., Feng, Z., Wang, H., Chen, Q., Peng, W., Feng, X., Qin, B., et al. (2025) · ACM Transactions on Information Systems · doi:10.1145/3703155 · Cited by 4,688 · cited 1×
“Third, consistent with previous work [28], LLM has problems with inaccurate result generation and hallucinations in reasoning, which is more severe for agents.”
The Rise and Potential of Large Language Model Based Agents: A Survey
Xi, Z., Chen, W., Guo, X., He, W., Ding, Y., Hong, B., Zhang, M., Wang, J., Jin, S., Zhou, E., et al. (2023) · arXiv · doi:10.48550/arxiv.2309.07864 · Cited by 972 · cited 1×
“Despite the significant e ff orts of tens of thousands of penetration testing researchers worldwide, fully automated penetration testing has remained challenging for an extended period [9].”
The rise and potential of large language model based agents: a survey
Xi, Z., Chen, W., Guo, X., He, W., Ding, Y., Hong, B., Zhang, M., Wang, J., Jin, S., Zhou, E., et al. (2025) · Science China Information Sciences · doi:10.1007/s11432-024-4222-0 · Cited by 970
Large Language Models: A Survey
Minaee, S., Mikolov, T., Nikzad, N., Chenaghlu, M., Socher, R., Amatriain, X., & Gao, J. (2024) · arXiv · doi:10.48550/arxiv.2402.06196 · Cited by 325
Yang, L., Chen, H., Li, Z., Ding, X., & Wu, X. (2023) · arXiv · doi:10.48550/arxiv.2306.11489 · Cited by 239
Yang, L., Chen, H., Li, Z., Ding, X., & Wu, X. (2024) · IEEE Transactions on Knowledge and Data Engineering · doi:10.1109/tkde.2024.3360454 · Cited by 238 · cited 1×
“This behavior is consistent with previous studies [27] in which the LLM reasoning process focused mainly on the beginning and end of the prompt and tended to follow the depth-first search method to complete the task.”
Getting pwn’d by AI: Penetration Testing with Large Language Models
Happe, A., & Cito, J. (2023) · Proceedings of the 31st ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering · doi:10.1145/3611643.3613083 · Cited by 144 · cited 1×
“Happe and Cito [21] established a command-response loop between LLM and a vulnerable virtual machine, testing privilege escalation only on Linux.”
PentestGPT: An LLM-empowered Automatic Penetration Testing Tool
Deng, G., Liu, Y., Mayoral-Vilches, V., Liu, P., Li, Y., Xu, Y., Zhang, T., Liu, Y., Pinzger, M., & Rass, S. (2023) · arXiv · doi:10.48550/arxiv.2308.06782 · Cited by 37
PenHeal: A Two-Stage LLM Framework for Automated Pentesting and Optimal Remediation
Huang, J., & Zhu, Q. (2023) · Proceedings of the Workshop on Autonomous Cybersecurity · doi:10.1145/3689933.3690831 · Cited by 25
NYU CTF Bench: A Scalable Open-Source Benchmark Dataset for Evaluating LLMs in Offensive Security
Shao, M., Jancheska, S., Udeshi, M., Dolan-Gavitt, B., Xi, H., Milner, K., Chen, B., Yin, M., Garg, S., Krishnamurthy, P., et al. (2024) · arXiv · doi:10.48550/arxiv.2406.05590 · Cited by 18
Research works printed but not linked: 27
- Stock, How the web tangled itself: Uncovering the history of client-side web (in) security, 971
- 10.1109/TIFS.2024.3461950 · DOI
- 2017, Information Supplement: Penetration Testing Guidance
- 10.1109/MSP.2005.23 · DOI · Paper page
- Deng, NAUTILUS: Automated RESTful API vulnerability detection, 5593
- 10.1109/CYBER.2015.7288225 · doi:10.1109/cyber.2015.7288225
- 10.1109/TIFS.2024.3372809 · DOI · Paper page
- 10.1109/TIFS.2024.3374558 · DOI · Paper page
- Deng, PentestGPT: Evaluating and harnessing large language models for automated penetration testing, 847
- Yao, 2022, ReAct: Synergizing reasoning and acting in language models, arXiv:2210.03629 · arXiv
- 10.1109/5.533956 · DOI · Paper page
- 10.1007/978-3-642-40597-6_20 · DOI
- 10.1109/TLA.2015.7069095 · doi:10.1109/tla.2015.7069095
- 10.1145/2610384.2610403 · DOI
- 10.1109/TIFS.2023.3322319 · doi:10.1109/tifs.2023.3322319
- 10.1109/EuroSPW51379.2020.00010 · DOI
- Yuan, 2024, LLM inference unveiled: Survey and roofline model insights, arXiv:2402.16363 · arXiv
- Li, 2024, Personal LLM agents: Insights and survey about the capability, efficiency and security, arXiv:2401.05459 · arXiv
- Happe, 2023, LLMs as hackers: Autonomous Linux privilege escalation attacks, arXiv:2310.11409 · arXiv
- 10.1109/CSR61664.2024.10679480 · DOI
- Muzsai, 2024, HackSynth: LLM agent and evaluation framework for autonomous penetration testing, arXiv:2412.01778 · arXiv
- Goyal, 2024, Hacking, the lazy way: LLM augmented pentesting, arXiv:2409.09493 · arXiv
- 10.1145/103418.103468 · doi:10.1145/103418.103468
- Rich, 2008, Automata, Computability and Complexity: Theory and Applications
- 10.1007/978-3-642-05089-3_14 · doi:10.1007/978-3-642-05089-3_14
- 10.1007/s10009-019-00544-0 · DOI
- Jin, 2024, GUARD: Role-playing to generate natural-language jailbreakings to test guideline adherence of large language models, arXiv:2402.03299 · arXiv
Metadata
- Authors
- Wu, B., Chen, G., Chen, K., Shang, X., Han, J., He, Y., Zhang, W., & Yu, N.
- Venue
- IEEE Transactions on Information Forensics and Security
- Published
- 2025
- Volume
- 20
- Pages
- 9657-9672
- ISSN
- 1556-6013
- 1556-6021
- Cited by
- 11
- References
- 10
- Licence
- Funders
- National Natural Science Foundation of China (U2336206, 62472398, U2436601, 62402469)
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: AutoPT: How Far Are We From the Fully Automated Web Penetration Testing? https://app.cochat.ai/papers/10.1109/tifs.2025.3601343
- The paper
- Wu, B., Chen, G., Chen, K., Shang, X., Han, J., He, Y., Zhang, W., & Yu, N. (2025). AutoPT: How Far Are We From the Fully Automated Web Penetration Testing? IEEE Transactions on Information Forensics and Security. https://doi.org/10.1109/tifs.2025.3601343
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.