Penetration testing is essential to securing modern web infrastructures, yet traditional manual methods struggle to keep pace with their scale and complexity. Large Language Models (LLMs) offer new opportunities for automating these tasks, but existing approaches face two persistent challenges: hallucination of technical entities and insufficient long-term contextual memory. To address these issues, we present APT-Agent, a fully automated LLM-driven penetration testing framework that systematically orchestrates reconnaissance, exploitation, and exfiltration. APT-Agent introduces a hybrid rectification module to recover hallucinated commands and a command-specific memory architecture to preserve operational context across multi-step attack sequences. We evaluate our APT-Agent on Metasploitable 2 against seven vulnerable services spanning web, database, and network protocols. APT-Agent achieves an 84.29% end-to-end exploitation success rate, compared to 48.57% (Script Kiddie) and 18.57% (PentestGPT) under matched conditions. By reducing cognitive burden and minimizing reliance on human intervention, APT-Agent represents a step toward scalable, reliable, and cognitively efficient automation for penetration testing.
AutoPT: How Far Are We from the End2End Automated Web Penetration Testing?
University of Science and Technology of China(中国科学技术大学);QI-ANXIN Technology Research Institute(奇安信技术研究院);Chaitin Future Technology Co., Ltd(观想未来科技有限公司)
Staying on the Attack Path: Structured State for Long-Horizon Automated Penetration Testing
Tianjin University(天津大学);Changchun University of Science and Technology(长春理工大学);Jilin Province Key Laboratory of Network and Information Security(吉林省网络与信息安全重点实验室);Shihezi University(石河子大学)
Decoupling Reconnaissance and Exploitation: Measuring the Capability Boundaries of LLM-Based Web Penetration Testing
University of Science and Technology of China(中国科学技术大学);Suzhou Institute for Advanced Research, University of Science and Technology of China(中国科学技术大学苏州先进研究院);Nanjing University of Science and Technology(南京理工大学);Research Institute, Runjian Co., Ltd(润杰有限公司研究院)
Hackers or Hallucinators? A Comprehensive Analysis of LLM-Based Automated Penetration Testing
School of Cyber Science and Engineering, Sichuan University(四川大学网络空间安全学院);Institute for Network Sciences and Cyberspace, Tsinghua University(清华大学网络科学与网络空间研究院);College of Computing and Data Science, Nanyang Technological University(南洋理工大学计算与数据科学学院);National University of Singapore(新加坡国立大学);College of Electronic Engineering, National University of Defense Technology(国防科技大学电子工程学院);Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学高瓴人工智能学院);School of Artificial Intelligence, Wuhan University(武汉大学人工智能学院)
PentestEval: Benchmarking LLM-based Penetration Testing with Modular and Stage-Level Design
School of Computing and Information Systems, Singapore Management University(计算与信息系统学院,新加坡国立管理大学);School of Computer Science and Engineering, Nanyang Technological University(计算机科学与工程学院,南洋理工大学);School of Cyber Security, Tianjin University(网络安全学院,天津大学)
Evaluation of Reinforcement Learning for Autonomous Penetration Testing using A3C, Q-learning and DQN
German Research Center for Artificial Intelligence (DFKI)(德国人工智能研究中心);OPS-GDA, ESA-ESOC(欧洲空间操作中心(ESA-ESOC)OPS-GDA部门);Technische Universität Kaiserslautern(凯泽斯劳滕工业大学)
Guided Reasoning in LLM-Driven Penetration Testing Using Structured Attack Trees
Department of Electrical and Computer Engineering, Rochester Institute of Technology(罗切斯特理工学院电子与计算机工程系);Institute for Informatics and Applied Technology, Gonzaga University(贡萨加大学信息学与应用技术研究所)
随着网络攻击事件的不断增长,重要的是要开发创新和有效的技术来评估和防御网络系统免受网络攻击。其中一个众所周知的技术是执行渗透测试,由一组安全专业人员(即红队)进行。众所周知,渗透测试可以有效地发现现有和新的漏洞,但是,安全评估的质量取决于红队成员的质量以及他们对渗透测试的时间和投入。在本文中,我们提出了一种新的自动化框架,名为“HARMer”的网络攻击生成,以解决与手动攻击执行的红队的挑战。我们提出的新框架,设计和实现是基于一个可扩展的图形安全模型,称为分层攻击表示模型(HARM)。(1)我们提出了自动化框架的要求和关键阶段。(2)我们提出了基于安全度量的攻击规划策略及其算法。(3)我们在一个真实的企业网和Amazon Web Services中进行实验。结果显示了框架的不同阶段如何相互作用,以模拟攻击者的操作。该框架将允许安全管理员以自动化的方式自动评估各种威胁和攻击的影响。