arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.24949cs.CRcs.AI
收藏

APT-Agent:利用大语言模型的自动化渗透测试

APT-Agent: Automated Penetration Testing using Large Language Models

University of Queensland(昆士兰大学)

William Guanting Li, Alsharif Abuadbba, Kristen Moore, Dan Dongseong Kim

AI总结:

提出APT-Agent框架,通过混合修正模块和命令特定记忆架构解决大语言模型在渗透测试中的幻觉和长期记忆问题,在Metasploitable 2上实现84.29%的端到端利用成功率。

摘要:

渗透测试对于保护现代网络基础设施至关重要,然而传统的手动方法难以跟上其规模和复杂性。大语言模型(LLMs)为自动化这些任务提供了新的机会,但现有方法面临两个持续挑战:技术实体的幻觉和长期上下文记忆不足。为了解决这些问题,我们提出了APT-Agent,一个完全自动化的LLM驱动的渗透测试框架,系统性地协调侦察、利用和数据窃取。APT-Agent引入了一个混合修正模块来恢复幻觉命令,以及一个命令特定的记忆架构来跨多步攻击序列保留操作上下文。我们在Metasploitable 2上针对涵盖Web、数据库和网络协议的七个脆弱服务评估了我们的APT-Agent。APT-Agent实现了84.29%的端到端利用成功率,而在匹配条件下,Script Kiddie和PentestGPT分别为48.57%和18.57%。通过减少认知负担和最小化对人类干预的依赖,APT-Agent代表了向可扩展、可靠且认知高效的渗透测试自动化迈出的一步。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑