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

面向自动化漏洞复现的双环代理框架

A Dual-Loop Agent Framework for Automated Vulnerability Reproduction

Harbin Institute of Technology, Shenzhen(哈尔滨工业大学(深圳));Huazhong University of Science and Technology(华中科技大学);Tsinghua University(清华大学)

Bin Liu, Yanjie Zhao, Zhenpeng Chen, Guoai Xu, Haoyu Wang

AI总结:

CVE2PoC通过双环代理框架实现漏洞复现自动化,提升漏洞利用代码的生成效率与质量。

摘要:

从CVE描述中自动复现漏洞需要生成可执行的证明概念(PoC)漏洞利用代码并在目标环境中验证。这一过程在软件安全研究和实践中至关重要,但手动执行时却耗时且需要专业知识。尽管大语言模型(LLM)代理显示出自动化此任务的潜力,但现有方法往往将探索攻击方向与修复实现细节混为一谈,导致复现失败时出现无效的调试循环。为此,我们提出了CVE2PoC,一个基于LLM的双环代理框架,遵循计划-执行-评估范式。战略规划器分析漏洞语义和目标代码以生成结构化的攻击计划。战术执行器生成PoC代码并通过逐步验证进行验证。适应性细化器评估执行结果并将失败路由到不同的环:战术环用于代码层面的细化,而战略环用于攻击策略的重新规划。这种双环设计使框架能够通过匹配修复措施与失败类型来摆脱无效的调试。在两个涵盖617个真实世界漏洞的基准测试中,CVE2PoC在SecBench.js和PatchEval上分别实现了82.9%和54.3%的复现成功率,分别优于最佳基线11.3%和20.4%。人类评估证实,生成的PoCs在可读性和可重用性方面与人工编写漏洞利用代码相当。

英文摘要:

Automated vulnerability reproduction from CVE descriptions requires generating executable Proof-of-Concept (PoC) exploits and validating them in target environments. This process is critical in software security research and practice, yet remains time-consuming and demands specialized expertise when performed manually. While LLM agents show promise for automating this task, existing approaches often conflate exploring attack directions with fixing implementation details, which leads to unproductive debugging loops when reproduction fails. To address this, we propose CVE2PoC, an LLM-based dual-loop agent framework following a plan-execute-evaluate paradigm. The Strategic Planner analyzes vulnerability semantics and target code to produce structured attack plans. The Tactical Executor generates PoC code and validates it through progressive verification. The Adaptive Refiner evaluates execution results and routes failures to different loops: the Tactical Loop for code-level refinement, while the Strategic Loop for attack strategy replanning. This dual-loop design enables the framework to escape ineffective debugging by matching remediation to failure type. Evaluation on two benchmarks covering 617 real-world vulnerabilities demonstrates that CVE2PoC achieves 82.9% and 54.3% reproduction success rates on SecBench.js and PatchEval, respectively, outperforming the best baseline by 11.3% and 20.4%. Human evaluation confirms that generated PoCs achieve comparable code quality to human-written exploits in readability and reusability.

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

↑