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

P2Patch:利用漏洞引导的漏洞修复

P2Patch: Exploit-Guided Vulnerability Repair

K. N. Toosi University of Technology(肯恩·托基大学);Ferdowsi University of Mashhad(马什哈德费尔多西大学);Simon Fraser University(西蒙菲莎大学);Amirkabir University of Technology(阿米尔卡比尔理工大学)

Mohsen Iranmanesh, Sina Moradi Sabet, Sina Marefat, Ali Javidi Ghasr, Maxime Newman Nereyabagabo, Kousha Amouzesh, Jaivir Malhi, Vinci Velasco, Alex Chung, Mohammad A. Tayebi

AI总结:

P2Patch 是一种生成式对抗修复系统,通过将补丁视为新攻击目标的对抗循环,在 101 个 C/C++ 和 Java CVE 主题上提升了漏洞修复的覆盖率,能揭示单次验证遗漏的修复缺口。

摘要:

大型语言模型正越来越多地被部署为自主智能体,用于自动化程序修复,通过多步推理和工具使用来修补软件漏洞。然而,这些系统通常仅使用构建补丁时所用的相同证据(如静态警报、 sanitizer 追踪、已公开的漏洞利用程序或测试套件)来验证补丁。因此,一个能阻止该单一证据的补丁可能看似成功,但在面对同一漏洞的某些变体时仍存在漏洞。我们提出了 P2Patch,这是一种生成式对抗修复系统,将每个补丁视为新的攻击目标。从标准化的漏洞发现结果出发,漏洞利用智能体构建可复现的漏洞证明(PoV),修补智能体修复程序,随后漏洞利用智能体对已修补的程序发起针对同一漏洞的不同利用。每次成功的利用都会成为永久的修复要求,最终的补丁必须阻止修补过程中积累的所有 PoV,且构建阶段的 PoV 需与保留的评估预言机严格分离。在 101 个 C/C++ 和 Java 的 CVE 主题上,当补丁已阻止其原始构建阶段 PoV 后,该对抗循环在 41% 的运行中发现了一个不同的已确认漏洞利用。与使用 Claude Code 从同一发现结果进行的单次修复相比,P2Patch 将保留的修复关闭覆盖率从 78.1% 提升至 84.7%,将超出上游的覆盖率从 42.1% 提升至 62.5%。在相同的保留预言机下,它还在重叠主题上比近期最先进的智能体修复系统认证了更多被阻止的攻击路径。这些结果表明,对抗测试和独立安全预言机能揭示单次验证所遗漏的修复缺口。

英文摘要:

Large language models are increasingly deployed as autonomous agents for automated program repair, patching software vulnerabilities through multi-step reasoning and tool use. Yet these systems typically validate a patch against the same evidence used to construct it -- a static alert, sanitizer trace, published exploit, or test suite. A patch that blocks that one piece of evidence can therefore look successful while remaining vulnerable to the same vulnerability with some variation. We present P2Patch, a generative adversarial repair system that treats each patch as a new attack target. Starting from a normalized vulnerability finding, an exploitation agent constructs a reproducing proof of vulnerability (PoV), a patching agent repairs the program, and the exploitation agent then attacks the patched program for a distinct same-vulnerability exploit. Every successful exploit becomes a permanent repair requirement, and the final patch must block all PoVs accumulated during the patching process, with construction-time PoVs kept strictly separate from held-out evaluation oracles. Across 101 C/C++ and Java CVE subjects, this adversarial loop surfaces a distinct confirmed exploit in 41% of runs after the patch has already blocked its original construction-time PoV. Against single-pass repair from the same finding using Claude Code, P2Patch raises held-out fix-closed coverage from 78.1% to 84.7% and beyond-upstream coverage from 42.1% to 62.5%. Under the same held-out oracles, it also certifies more attack paths as blocked than recent state-of-the-art agentic repair systems on overlapping subjects. These results show that adversarial testing and independent security oracles expose repair gaps that one-shot validation misses.

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

↑