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

DeepAVR:基于多智能体协作的自动化漏洞修复深度分析框架

DeepAVR: Deep Analysis via Multi-Agent Collaboration for Automated Vulnerability Repair

Seoul National University(首尔大学);Myongji University(明知大学);Georgia Institute of Technology(佐治亚理工学院);Sungshin Women's University(成均馆女子大学)

Woorim Han, Hyunjun Kim, Brian Junekyu Lee, Kyeongmin Kim, Younghan Lee, Hyungon Moon, Yunheung Paek

AI总结:

DeepAVR 是一种多智能体协作的端到端自动化漏洞修复框架,通过分解修复角色、引入补丁条件重定位与根本原因导向审核,在 VulnLoc 数据集上实现 92.3% 的漏洞修复准确率,且在 SAN2VULN 上泛化性强。

摘要:

自动化漏洞修复(AVR)已成为抵御软件安全漏洞的关键防御手段,旨在自动分类并修复缺陷。早期基于大语言模型(LLM)的方法假设故障定位完全准确,以此生成补丁;近期端到端方法则尝试直接从 sanitizer 日志中修复漏洞。然而,当根本原因隐藏较深时——要么与崩溃点物理距离较远,要么被相互依赖的错误在逻辑上掩盖——这些方法往往失效,导致初始报告信息不足。本文提出 DeepAVR,一种用于端到端 AVR 的多智能体框架,通过将中间修复结果转化为结构化诊断反馈来执行深度分析。DeepAVR 将修复过程分解为多个专门角色:故障定位、补丁生成、编译验证、安全验证、功能验证及补丁审核,并在这些角色间传递反馈,以迭代优化定位结果与补丁假设。特别地,DeepAVR 引入了补丁条件重定位,将中间补丁的执行结果作为诊断信号,以揭示隐藏的根本原因;还引入了面向根本原因的补丁审核阶段,可检测基于执行的验证无法发现的症状级修复与不完整修复。在真实世界 C/C++ 漏洞修复数据集 VulnLoc 上的评估显示,DeepAVR 显著优于现有方法,能为 92.3% 的漏洞生成正确补丁;在 SAN2VULN 上的结果则表明其具备强泛化能力,可有效修复训练过程中未见过的漏洞。

英文摘要:

Automated Vulnerability Repair (AVR) has emerged as a critical defense against software security flaws, aiming to triage and fix bugs autonomously. Early LLM-based approaches focused on patch generation under the assumption of perfect fault localization, while recent end-to-end methods attempt to repair vulnerabilities directly from sanitizer logs. However, these methods often fail when the root cause is deeply hidden--either physically distant from the crash site or logically masked by interdependent errors--making the initial report insufficient. We propose DeepAVR, a multi-agent framework for end-to-end AVR that performs deep analysis by transforming intermediate repair outcomes into structured diagnostic feedback. DeepAVR decomposes repair into specialized roles--Fault Localization, Patch Generation, Compile Validation, Security Validation, Functionality Validation, and Patch Review--and routes feedback across these roles to iteratively refine both localization and patch hypotheses. In particular, DeepAVR introduces patch-conditioned re-localization, which treats execution results from intermediate patches as diagnostic signals to uncover hidden root causes, and a root-cause-oriented patch review stage that detects symptom-level fixes and incomplete repairs beyond execution-based validation. Evaluation on the real-world C/C++ vulnerability repair dataset VulnLoc shows that DeepAVR significantly outperforms prior methods, generating correct patches for 92.3% of vulnerabilities. Furthermore, results on SAN2VULN demonstrate strong generalization, with DeepAVR effectively repairing vulnerabilities unseen during training.

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

↑