arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2606.22647cs.CRcs.LGcs.SE
收藏

RAVEN:用于自动化漏洞修复的智能体检索增强生成框架

RAVEN: Agentic RAG for Automated Vulnerability Repair

University of Duisburg-Essen(杜伊斯堡- Essen大学)

Varun Gadey, Zijie Liu, Alexandra Dmitrienko

AI总结:

提出RAVEN框架,集成智能体RAG管道与可控迭代修复,利用开源LLM实现跨类型、跨语言的自动化漏洞修复,在160个真实CVE上达到83.13%修复成功率。

摘要:

自动化漏洞修复已成为缓解日益增长的软件漏洞的一个有前景的方向。大型语言模型的最新进展进一步加速了自动化修复的研究。然而,现有框架仍然主要局限于内存相关漏洞和本地可修复的漏洞设置,对未见漏洞类型的泛化能力探索不足。它们的评估通常限于单一编程语言,并且很大程度上依赖专有模型。在本文中,我们提出RAVEN,一个可扩展、高效且自主的框架,将智能体检索增强生成管道与可控迭代修复集成在一个统一框架中。该框架在完全本地可部署的设置下利用开源LLM,GPU需求有限,同时构建多面检索管道以检索历史上相关的漏洞修复并指导补丁生成。此外,RAVEN引入了一个专门的策展智能体,从目标仓库中检索跨文件依赖关系,以修复仅靠本地漏洞代码无法解决的复杂漏洞。我们在160个真实世界CVE漏洞上评估RAVEN,涵盖多种漏洞类型、两种编程语言、未见CWE类别和分布外设置。RAVEN实现了83.13%的总体修复成功率,优于所有现有最先进的修复框架,同时展示了强大的泛化能力,并将修复成本保持在可忽略的水平。

英文摘要:

Automated vulnerability repair has emerged as a promising direction to mitigate the growing number of software vulnerabilities. Recent advances in Large Language Models (LLMs) have further accelerated research in automated repair. However, existing frameworks remain largely restricted to memory-related vulnerabilities and locally repairable vulnerability settings, leaving generalization to unseen vulnerability types underexplored. Their evaluations are often limited to a single programming language, and largely rely on proprietary models. In this paper, we propose RAVEN, a scalable, efficient and autonomous framework that integrates an agentic retrieval-augmented generation (RAG) pipeline with controlled iterative repair in a unified framework. The framework utilizes open-source LLMs in a fully locally deployable setting with limited GPU requirements, while building a multi-faceted retrieval pipeline to retrieve historically relevant vulnerability fixes and guide the patch generation. In addition, RAVEN introduces a dedicated Curator Agent that retrieves cross-file dependencies from the target repository, to fix complex vulnerabilities that cannot be addressed using local vulnerable code alone. We evaluate RAVEN on 160 real-world CVE vulnerabilities across diverse vulnerability types, two programming languages, unseen CWE categories, and out-of-distribution settings. RAVEN achieves an overall repair success rate of 83.13%, outperforming all existing state-of-the-art repair frameworks, while also demonstrating strong generalization capabilities and maintaining the repair cost negligible.

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

↑