Reproduce “AutoPT: How Far Are We from the End2End Automated Web Penetration Testing?” on OpenResearch
Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Benlong Wu, Guoqiang Chen, Kejiang Chen, Xiuwei Shang, Jiapeng Han, Yanru He, Weiming Zhang, Nenghai Yu
AutoPT tests whether an LLM agent can complete penetration testing from scanning through exploitation. Its penetration-testing state machine stages scanning, reconnaissance, exploitation, selection, and rule-based success checks, passing outputs between stages. Averaged across GPT-4o and GPT-4o mini, completion is 41% versus ReAct’s 22% on simple tasks and 21% versus 2% on complex tasks, on known vulnerabilities in preconfigured Docker environments.
Key insights
- Formalizing the complex end-to-end penetration testing workflow into a Penetration Testing State Machine (PSM) significantly mitigates common LLM agent issues such as context overflow and getting stuck in loops.
- The strategic use of rule-based states for information selection and verification effectively assists LLM-driven agent states, enabling even smaller, more cost-effective LLMs to achieve higher success rates on complex tasks.
- Despite architectural improvements, LLM agents still face inherent limitations, including inaccurate command generation, hallucinations, and refusal to assist due to security policies, which necessitate robust mitigation strategies.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.