RefPentester:一种基于大型语言模型的知识驱动自反思渗透测试框架
RefPentester: A Knowledge-Informed Self-Reflective Penetration Testing Framework Based on Large Language Models
AI总结:
本文提出基于LLM的知识驱动自反思渗透测试框架RefPentester,通过七状态阶段机建模PT过程,解决知识不平衡、规划短视和幻觉问题,支持阶段识别、操作选择与失败反思,在Hack The Box上比GPT-4o高16.7%。
摘要:
由大型语言模型(LLM)驱动的自动化渗透测试(AutoPT)因其能够利用LLM的固有知识自动化道德黑客流程并识别目标系统中的漏洞而备受关注。然而,现有的基于LLM的AutoPT框架在具有挑战性的任务中往往不如人类专家,原因有几个:LLM训练中使用的知识不平衡、规划过程中的短视,以及命令生成过程中的幻觉。此外,PT过程的试错性质受到现有框架缺乏从先前失败中学习机制的限制,限制了PT策略的自适应改进。为了解决这些局限性,我们提出了一种由LLM驱动的知识驱动自反思PT框架,称为RefPentester。该AutoPT框架旨在协助人类操作员识别PT过程的当前阶段,为每个阶段选择适当的战术和技术,选择建议的操作,提供逐步的操作指导,并反思和学习先前的失败操作。我们还将PT过程建模为七状态阶段机,以有效集成所提出的框架。评估显示,RefPentester能够在Hack The Box的Sau机器上成功揭示凭据,比基线GPT-4o模型高出16.7%。在PT各阶段中,RefPentester在PT阶段转换上也表现出更高的成功率。
英文摘要:
Automated penetration testing (AutoPT) powered by large language models (LLMs) has gained attention for its ability to automate ethical hacking processes and identify vulnerabilities in target systems by leveraging the inherent knowledge of LLMs. However, existing LLM-based AutoPT frameworks often underperform compared to human experts in challenging tasks for several reasons: the imbalanced knowledge used in LLM training, short-sightedness in the planning process, and hallucinations during command generation. Moreover, the trial-and-error nature of the PT process is constrained by existing frameworks lacking mechanisms to learn from previous failures, restricting adaptive improvement of PT strategies. To address these limitations, we propose a knowledge-informed, self-reflective PT framework powered by LLMs, called RefPentester. This AutoPT framework is designed to assist human operators in identifying the current stage of the PT process, selecting appropriate tactics and techniques for each stage, choosing suggested actions, providing step-by-step operational guidance, and reflecting on and learning from previous failed operations. We also modeled the PT process as a seven-state Stage Machine to integrate the proposed framework effectively. The evaluation shows that RefPentester can successfully reveal credentials on Hack The Box's Sau machine, outperforming the baseline GPT-4o model by 16.7%. Across PT stages, RefPentester also demonstrates superior success rates on PT stage transitions.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。