面向自动漏洞生成的多智能体框架:基于约束引导的推理与反思
A Multi-Agent Framework for Automated Exploit Generation with Constraint-Guided Comprehension and Reflection
AI总结:
本文提出Vulnsage多智能体框架,通过分解复杂漏洞生成过程为多个专业化子智能体,结合LLM生成候选漏洞利用代码,并通过反馈驱动的自完善循环提升漏洞生成效率与准确性,实验证明其在生成漏洞利用代码和发现零日漏洞方面优于现有工具。
摘要:
开源库在现代软件开发中被广泛使用,引入了显著的安全漏洞。虽然静态分析工具可以大规模识别潜在漏洞,但往往会产生大量报告并具有高误报率。自动漏洞生成(AEG)作为一种确认漏洞真实性的解决方案,通过生成漏洞利用代码来验证漏洞。然而,基于模糊测试或符号执行的传统AEG方法面临路径覆盖和约束求解问题。尽管LLM在AEG中显示出巨大潜力,但如何有效利用它们来理解和生成相应的漏洞利用代码仍然是一个开放问题。为此,我们提出了Vulnsage,一个面向AEG的多智能体框架。Vulnsage通过将复杂的AEG过程分解为多个专业化子智能体:代码分析代理、代码生成代理、验证代理以及一组反思代理,由中央监督器通过迭代循环协调。给定目标程序,代码分析代理执行静态分析以识别潜在漏洞并收集相关信息。代码生成代理利用LLM生成候选漏洞利用代码。验证代理和反思代理形成反馈驱动的自完善循环,利用执行跟踪和运行时错误分析来改进漏洞利用代码或分析误报警报。实验评估表明,Vulnsage在生成漏洞利用代码方面比现有工具如explodejs多出34.64%,并且在现实场景中成功发现了并验证了146个零日漏洞,证明了其在协助软件供应链安全评估方面的实用性。
英文摘要:
Open-source libraries are widely used in modern software development, introducing significant security vulnerabilities. While static analysis tools can identify potential vulnerabilities at scale, they often generate overwhelming reports with high false positive rates. Automated Exploit Generation (AEG) emerges as a promising solution to confirm vulnerability authenticity by generating an exploit. However, traditional AEG approaches based on fuzzing or symbolic execution face path coverage and constraint-solving problems. Although LLMs show great potential for AEG, how to effectively leverage them to comprehend vulnerabilities and generate corresponding exploits is still an open question. To address these challenges, we propose Vulnsage, a multi-agent framework for AEG. Vulnsage simulates human security researchers' workflows by decomposing the complex AEG process into multiple specialized sub-agents: Code Analyzer Agent, Code Generation Agent, Validation Agent, and a set of Reflection Agents, orchestrated by a central supervisor through iterative cycles. Given a target program, the Code Analyzer Agent performs static analysis to identify potential vulnerabilities and collects relevant information for each one. The Code Generation Agent then utilizes an LLM to generate candidate exploits. The Validation Agent and Reflection Agents form a feedback-driven self-refinement loop that uses execution traces and runtime error analysis to either improve the exploit iteratively or reason about the false positive alert. Experimental evaluation demonstrates that Vulnsage succeeds in generating 34.64\% more exploits than state-of-the-art tools such as \explodejs. Furthermore, Vulnsage has successfully discovered and verified 146 zero-day vulnerabilities in real-world scenarios, demonstrating its practical effectiveness for assisting security assessment in software supply chains.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。