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

AutoPT:我们距离端到端自动化Web渗透测试还有多远?

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(观想未来科技有限公司)

Benlong Wu, Guoqiang Chen, Kejiang Chen, Xiuwei Shang, Jiapeng Han, Yanru He, Weiming Zhang, Nenghai Yu

AI总结:

本研究构建Web渗透测试基准探究LLM智能体能力局限,提出基于有限状态机的PSM机制并开发AutoPT智能体,显著提升任务完成率,降低成本,推动自动化渗透测试发展。

摘要:

渗透测试是保障Web安全的关键手段,可提前发现并修复漏洞,防范数据泄露及严重后果。大语言模型(LLM)强大的推理能力已在诸多领域取得显著进展,基于LLM的智能体的发展潜力有望革新网络安全渗透测试行业。本研究利用真实渗透测试环境构建了一套全面的端到端渗透测试基准,以探究基于LLM的智能体在该领域的能力。研究结果显示,这类智能体熟悉渗透测试任务的框架,但在生成准确指令、执行完整流程方面仍存在局限。据此,我们总结了当前面临的挑战,包括难以维护完整的消息历史、智能体易陷入停滞的问题。\n基于上述发现,我们提出了渗透测试状态机(Penetration testing State Machine,PSM),该机制采用有限状态机(Finite State Machine,FSM)方法来解决上述局限。随后,我们推出了AutoPT——一种由LLM驱动、基于PSM原理的自动化渗透测试智能体,它结合了LLM的固有推理能力与状态机的约束框架。我们的评估结果表明,在GPT-4o mini模型上,AutoPT的表现优于基准框架ReAct,在基准测试目标上将任务完成率从22%提升至41%。与基准框架及人工操作相比,AutoPT还进一步降低了时间与经济成本。因此,我们的AutoPT推动了自动化渗透测试的发展,对学术界和产业界均具有重要影响。

英文摘要:

Penetration testing is essential to ensure Web security, which can detect and fix vulnerabilities in advance, and prevent data leakage and serious consequences. The powerful inference capabilities of large language models (LLMs) have made significant progress in various fields, and the development potential of LLM-based agents can revolutionize the cybersecurity penetration testing industry. 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 with the framework 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 baseline framework ReAct on the GPT-4o mini model and improves the task completion rate from 22% to 41% on the benchmark target. Compared with the baseline framework and manual work, AutoPT also reduces time and economic costs further. Hence, our AutoPT has facilitated the development of automated penetration testing and significantly impacted both academia and industry.

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

↑