arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.00317cs.CRcs.AIcs.SE
收藏

MAVUL:基于上下文推理与交互优化的多智能体漏洞检测

MAVUL: Multi-Agent Vulnerability Detection via Contextual Reasoning and Interactive Refinement

Youpeng Li, Kartik Joshi, Xinda Wang, Eric Wong

AI总结:

针对现有漏洞检测方法上下文理解不足、交互受限、评估粗粒度等问题,提出融合上下文推理与交互优化的多智能体系统MAVUL,通过跨角色智能体迭代交互及多维细粒度评估,在成对漏洞数据集上实现性能大幅提升。

摘要:

开源软件(OSS)的广泛应用要求必须降低漏洞风险。大多数漏洞检测(VD)方法受限于上下文理解不足、受限的单轮交互以及粗粒度评估,导致模型性能不佳且评估结果存在偏差。为解决这些挑战,我们提出了MAVUL,这是一种融合上下文推理与交互优化的新型多智能体漏洞检测系统。具体而言,我们设计了一个漏洞分析智能体,可灵活利用工具使用能力与上下文推理,实现跨过程代码理解并有效挖掘漏洞模式。通过跨角色智能体交互中的迭代反馈与精细化决策,该系统实现了可靠的推理与漏洞预测。此外,MAVUL引入多维真实标签信息用于细粒度评估,从而提升评估的准确性与可靠性。\n在一个成对漏洞数据集上开展的大量实验证明了MAVUL的优异性能。我们的研究结果表明,MAVUL的表现显著优于现有多智能体系统,成对准确率高出62%以上;同时优于单智能体系统,平均性能高出600%以上。随着漏洞分析智能体与安全架构师智能体之间通信轮次的增加,该系统的有效性得到显著提升,凸显了上下文推理在追踪漏洞流方面的重要性以及反馈的关键作用。此外,集成的评估智能体可作为关键的无偏评判者,通过避免具有误导性的二元比较,确保对系统实际适用性做出更准确可靠的评估。

英文摘要:

The widespread adoption of open-source software (OSS) necessitates the mitigation of vulnerability risks. Most vulnerability detection (VD) methods are limited by inadequate contextual understanding, restrictive single-round interactions, and coarse-grained evaluations, resulting in undesired model performance and biased evaluation results. To address these challenges, we propose MAVUL, a novel multi-agent VD system that integrates contextual reasoning and interactive refinement. Specifically, a vulnerability analyst agent is designed to flexibly leverage tool-using capabilities and contextual reasoning to achieve cross-procedural code understanding and effectively mine vulnerability patterns. Through iterative feedback and refined decision-making within cross-role agent interactions, the system achieves reliable reasoning and vulnerability prediction. Furthermore, MAVUL introduces multi-dimensional ground truth information for fine-grained evaluation, thereby enhancing evaluation accuracy and reliability. Extensive experiments conducted on a pairwise vulnerability dataset demonstrate MAVUL's superior performance. Our findings indicate that MAVUL significantly outperforms existing multi-agent systems with over 62% higher pairwise accuracy and single-agent systems with over 600% higher average performance. The system's effectiveness is markedly improved with increased communication rounds between the vulnerability analyst agent and the security architect agent, underscoring the importance of contextual reasoning in tracing vulnerability flows and the crucial feedback role. Additionally, the integrated evaluation agent serves as a critical, unbiased judge, ensuring a more accurate and reliable estimation of the system's real-world applicability by preventing misleading binary comparisons.

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

↑