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

Favia:漏洞修复识别与分析的取证代理

Favia: Forensic Agent for Vulnerability-fix Identification and Analysis

Norwegian University of Science and Technology(挪威科技大学);CSIRO’s Data61(澳大利亚联邦科学与工业研究组织数据61研究所)

André Storhaug, Jiamou Sun, Jingyue Li

AI总结:

Favia通过结合可扩展的候选排名与深入语义推理,有效识别漏洞修复,优于传统和LLM基方法。

摘要:

识别与披露的CVE对应的漏洞修复提交对于安全软件维护至关重要,但在大规模情况下仍然具有挑战性,因为大型仓库包含数百万个提交,其中只有少量提交解决安全问题。现有的自动化方法,包括传统机器学习技术以及最近的大型语言模型(LLM)方法,常常在精度-召回率权衡上表现不佳。经常在随机采样的提交上进行评估,我们发现它们在现实世界中严重低估了难度,其中候选提交已经具有安全相关性并且高度相似。我们提出了Favia,一个基于代理的取证框架,用于漏洞修复识别,它结合了可扩展的候选排名与深入且迭代的语义推理。Favia首先使用高效的排名阶段来缩小提交的搜索空间。然后,每个提交都通过基于ReAct的LLM代理进行严格评估。通过为代理提供预提交仓库作为环境,以及专门的工具,代理尝试定位漏洞组件,遍历代码库,并在代码更改和漏洞根本原因之间建立因果一致性。这种证据驱动的过程使能够可靠地识别间接的、多文件的和非平凡的修复,这些修复超出了单次通过或相似性方法的范围。我们对CVEVC进行了评估,这是一个我们创建的大型数据集,包含来自3708个真实世界仓库的超过800万个提交,并展示了其在现实候选选择下持续优于最先进的传统和LLM基基线,实现了最强的精度-召回率权衡和最高的F1分数。

英文摘要:

Identifying vulnerability-fixing commits corresponding to disclosed CVEs is essential for secure software maintenance but remains challenging at scale, as large repositories contain millions of commits of which only a small fraction address security issues. Existing automated approaches, including traditional machine learning techniques and recent large language model (LLM)-based methods, often suffer from poor precision-recall trade-offs. Frequently evaluated on randomly sampled commits, we uncover that they are substantially underestimating real-world difficulty, where candidate commits are already security-relevant and highly similar. We propose Favia, a forensic, agent-based framework for vulnerability-fix identification that combines scalable candidate ranking with deep and iterative semantic reasoning. Favia first employs an efficient ranking stage to narrow the search space of commits. Each commit is then rigorously evaluated using a ReAct-based LLM agent. By providing the agent with a pre-commit repository as environment, along with specialized tools, the agent tries to localize vulnerable components, navigates the codebase, and establishes causal alignment between code changes and vulnerability root causes. This evidence-driven process enables robust identification of indirect, multi-file, and non-trivial fixes that elude single-pass or similarity-based methods. We evaluate Favia on CVEVC, a large-scale dataset we made that comprises over 8 million commits from 3,708 real-world repositories, and show that it consistently outperforms state-of-the-art traditional and LLM-based baselines under realistic candidate selection, achieving the strongest precision-recall trade-offs and highest F1-scores.

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

↑