arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.02389cs.SEcs.CRcs.LG
收藏

从痕迹到行:面向真实世界OSS漏洞定位的LLM代理

From Trace to Line: LLM Agent for Real-World OSS Vulnerability Localization

NYU Tandon School of Engineering(纽约大学唐纳德工程学院)

Haoran Xi, Minghao Shao, Brendan Dolan-Gavitt, Muhammad Shafique, Ramesh Karri

AI总结:

T2L框架通过基于AST的分块和证据引导细化,实现项目级和行级漏洞定位,提升LLM在开源软件中的精准诊断能力。

摘要:

大语言模型在漏洞发现方面展现出潜力,但现有方法在孤立检查代码、处理长上下文和聚焦于粗粒度的功能或文件级检测方面存在局限,难以为需要精确行级定位以进行针对性修补的工程师提供有效指导。我们引入T2L,一个可执行框架,用于项目级和行级漏洞定位,通过基于AST的分块和证据引导的细化,逐步将范围从仓库模块缩小到确切的漏洞行。我们提供了一个基线代理,配备一个Agentic Trace Analyzer(ATA),该分析器融合运行时证据,如崩溃点和堆栈跟踪,将故障症状转化为可操作的诊断。为实现严格评估,我们引入T2L-ARVO,一个由专家验证的50案例基准,涵盖五个真实世界项目中的崩溃家族。在T2L-ARVO上,我们的基线实现高达58.0%的检测率和54.8%的行级定位率。T2L框架推动了基于LLM的漏洞检测向开源软件工作流程中的可部署、精确诊断迈进。

英文摘要:

Large language models show promise for vulnerability discovery, yet prevailing methods inspect code in isolation, struggle with long contexts, and focus on coarse function- or file-level detections that offer limited guidance to engineers who need precise line-level localization for targeted patches. We introduce T2L, an executable framework for project-level, line-level vulnerability localization that progressively narrows scope from repository modules to exact vulnerable lines via AST-based chunking and evidence-guided refinement. We provide a baseline agent with an Agentic Trace Analyzer (ATA) that fuses runtime evidence such as crash points and stack traces to translate failure symptoms into actionable diagnoses. To enable rigorous evaluation, we introduce T2L-ARVO, an expert-verified 50-case benchmark spanning five crash families in real-world projects. On T2L-ARVO, our baseline achieves up to 58.0% detection and 54.8% line-level localization rate. Together, T2L framework advance LLM-based vulnerability detection toward deployable, precision diagnostics in open-source software workflows.

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

↑