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

MetaVul:用于漏洞检测的智能体 harness 发现框架

MetaVul: Agentic Harness Discovery for Vulnerability Detection

Columbia University(哥伦比亚大学);The Citadel(西点学院);Monash University(蒙纳士大学);University of Victoria(维多利亚大学)

Ira Ceka, Arnav Garg, Ryan Lutz, Ting Zhang, Ratnadira Widyasari, Gail Kaiser, Baishakhi Ray

AI总结:

MetaVul 是用于漏洞检测的自改进 harness 发现框架,通过基于工作流的优化循环迭代优化 harness,其学习的 harness 可跨模型迁移,能显著提升漏洞检测准确率。

摘要:

大语言模型(LLM)智能体正越来越多地被用于自动化漏洞检测,但可靠的检测颇具挑战性,因为智能体必须区分与安全相关的细微修复和良性代码变体。尽管底层 LLM 的能力已显著提升,但智能体的准确率仍在很大程度上依赖于 harness——即定义 LLM 周围支撑结构的代码。harness 通常是固定的,且大多为手动编写,限制了其对评估者反馈的适应性。此外,当 harness 是静态的时,在一个数据集或模型上的改进可能无法迁移到其他数据集或模型。为应对这些挑战,我们提出 MetaVul,这是一个用于漏洞检测中 harness 发现的自改进框架。从一个种子结构化推理支撑结构出发,MetaVul 使用基于工作流的优化循环,利用成对易受攻击函数和已修补函数的反馈迭代优化 harness,同时保留结构化推理和判定格式。在每次迭代中,它会搜索先前 harness 的历史记录,访问其轨迹、日志和指标,并返回一组帕累托最优 harness。我们将 MetaVul 应用于为各种架构发现智能体 harness。使用一个包含 202 对的验证集进行优化,同时保留一个包含 430 对的未见过的数据集作为留出集。我们测试从一个模型学习到的 harness 是否能迁移到优化过程中未见过的其他模型。在前沿 LLM 和小型 LLM 上的结果显示,优化后的 harness 在验证集上将成对漏洞检测准确率提升了多达 23.3 个百分点,在使用帕累托前沿 harness 的留出集上提升了多达 25.8 个百分点。用一个模型学习到的 harness 也能迁移到其他模型,我们证明,用一个模型优化的 harness 迁移到另一个模型时,无需进一步优化即可将留出集上的成对准确率提升 14.7 个百分点。

英文摘要:

LLM agents are increasingly used to automate vulnerability detection, but reliable detection is challenging because agents must distinguish subtle, security-relevant fixes from benign code variation. While underlying LLM capability has improved significantly, the accuracy of the agent still depends heavily on the harness: the code that defines the scaffolding around the LLM. Harnesses are typically fixed, and largely hand-written, limiting adaptation to evaluator feedback. Additionally, when harnesses are static, improvements on one dataset or model may not transfer to others. To address these challenges, we introduce MetaVul, a self-improving framework for harness discovery in vulnerability detection. Starting from a seed structured reasoning scaffold, MetaVul uses a workflow-based optimization loop to iteratively refine the harness using feedback from paired vulnerable and patched functions, while preserving the structured reasoning and verdict format. At each iteration, it searches over the history of prior harnesses, with access to their trajectories, logs, and metrics, and it returns a set of Pareto-optimal harnesses. We apply MetaVul to discover agent harnesses for various architectures. A validation set (202 pairs) is used for optimization, while an unseen dataset (430 pairs) is kept as the held-out set. We test whether harnesses learned from one model transfer to others not seen during optimization. Results on both frontier and small LLMs show that the optimized harnesses improve pairwise vulnerability detection up to 23.3 percentage points on the validation set and up to 25.8 points on the held-out set with a Pareto-frontier harness. Harnesses learned with one model also transfer to others. We show that harnesses optimized with one model transfer to another, improving held-out pairwise accuracy by 14.7 points without further optimization.

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

↑