arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.27127cs.CR
收藏

Red-MIRROR:基于大语言模型的自主渗透测试系统,结合反射验证与知识增强交互

Red-MIRROR: Agentic LLM-based Autonomous Penetration Testing with Reflective Verification and Knowledge-augmented Interaction

University of Information Technology(信息技术大学);Vietnam National University, Ho Chi Minh City(越南国立大学胡志明市分校)

Tran Vy Khang, Nguyen Dang Nguyen Khang, Nghi Hoang Khoa, Do Thi Thu Hien, Van-Hau Pham, Phan The Duy

AI总结:

Red-MIRROR通过引入紧密耦合的记忆-反射架构,解决传统渗透测试中依赖参数知识、记忆碎片化和验证不足的问题,实现复杂Web漏洞的高效检测与验证,其在XBOW基准测试中成功率达到86%。

摘要:

Web应用仍是网络安全的主要攻击面,其中SQL注入、XSS和业务逻辑漏洞持续导致重大数据泄露。尽管渗透测试能有效识别这些弱点,但传统手动方法耗时且依赖稀缺专家知识。近期基于大语言模型(LLM)的多智能体系统在自动化渗透测试中表现出潜力,但仍存在关键局限:过度依赖参数知识、会话记忆碎片化以及攻击载荷和响应验证不足。本文提出Red-MIRROR,一种新型多智能体自动化渗透测试系统,引入紧密耦合的记忆-反射核心架构,明确指导智能体间推理。通过整合检索增强生成(RAG)进行外部知识增强、共享递归记忆机制(SRMM)进行持久状态管理,以及双阶段反射机制进行自适应验证,Red-MIRROR为复杂Web漏洞提供稳健解决方案。在XBOW基准和Vulhub CVEs上的实证评估显示,Red-MIRROR在Vulhub场景中性能与最先进智能体相当,而在XBOW基准中表现更优。在XBOW基准中,Red-MIRROR整体成功率为86.0%,优于PentestAgent(50.0%)、AutoPT(46.0%)和VulnBot基线(6.0%)。此外,系统达到93.99%的子任务完成率,表明强大的长时域推理和载荷细化能力。最后,讨论了伦理影响并提出措施以减轻误用风险。

英文摘要:

Web applications remain the dominant attack surface in cybersecurity, where vulnerabilities such as SQL injection, XSS, and business logic flaws continue to cause significant data breaches. While penetration testing is effective for identifying these weaknesses, traditional manual approaches are time-consuming and heavily dependent on scarce expert knowledge. Recent Large Language Models (LLM)-based multi-agent systems have shown promise in automating penetration testing, yet they still suffer from critical limitations: over-reliance on parametric knowledge, fragmented session memory, and insufficient validation of attack payloads and responses. This paper proposes Red-MIRROR, a novel multi-agent automated penetration testing system that introduces a tightly coupled memory-reflection backbone to explicitly govern inter-agent reasoning. By synthesizing Retrieval-Augmented Generation (RAG) for external knowledge augmentation, a Shared Recurrent Memory Mechanism (SRMM) for persistent state management, and a Dual-Phase Reflection mechanism for adaptive validation, Red-MIRROR provides a robust solution for complex web exploitation. Empirical evaluation on the XBOW benchmark and Vulhub CVEs shows that Red-MIRROR achieves performance comparable to state-of-the-art agents on Vulhub scenarios, while demonstrating a clear advantage on the XBOW benchmark. On the XBOW benchmark, Red-MIRROR attains an overall success rate of 86.0 percent, outperforming PentestAgent (50.0 percent), AutoPT (46.0 percent), and the VulnBot baseline (6.0 percent). Furthermore, the system achieves a 93.99 percent subtask completion rate, indicating strong long-horizon reasoning and payload refinement capability. Finally, we discuss ethical implications and propose safeguards to mitigate misuse risks.

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

↑