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

SBVUL:基于语句的漏洞检测

SBVUL: Statement-Based Vulnerability Detection

Software Competence Center Hagenber Klagenfurt, Austria

Martin Pinzger, Katharina Stengg, Christian Macho, Stefan Schöberl, Víctor Mayoral Vilches

AI总结:

本文提出SBVul智能体方法,用于检测C/C++函数中可利用语句,经PrimeVul配对测试集验证,其函数级分类准确率较此前最优方法提升至42.0%。

摘要:

近期许多漏洞检测方法使用大型语言模型(LLM)将函数分类为有漏洞或良性,却让开发者自行定位可利用语句;尽管这些方法性能有所提升,但仍难以区分真实世界中存在漏洞的函数与已打补丁的函数。本文提出SBVul,一种用于检测C/C++函数中可利用语句的智能体方法:第1阶段,LLM智能体探索函数及其代码仓库,识别候选语句;第2阶段,第二个智能体分析每个候选语句的控制流与数据流,确认、排除或标记为不确定。我们针对PrimeVul配对测试集的200对样本构建了经人工验证的可利用语句基准真值,并使用开源权重模型Qwen 3.8、DeepSeek V4.1 Flash,以及Anthropic的Sonnet 5.5、Opus 5.5运行SBVul。第1阶段在56%至77%的有漏洞函数中识别出基准真值语句;第2阶段经LLM评判者认可的解释确认此类语句的比例为26%至73%,但所有模型也在23%至61%的已打补丁函数中确认了候选语句。在语句层面,Opus 5.5(xhigh)取得最高精度0.315,对应召回率0.605;在函数层面,采用Opus 5.5的SBVul正确分类42.0%的配对样本,而此前最优方法的该比例为33.8%。

英文摘要:

Many recent approaches for vulnerability detection use large language models (LLMs) to classify functions as vulnerable or benign, leaving developers to locate the exploitable statements. Furthermore, while these approaches have shown performance improvements, they still fall short in distinguishing vulnerable from patched real-world functions. This paper presents SBVul, an agentic approach that detects exploitable statements in C/C++ functions. In Phase~1, an LLM agent explores the function and its repository and identifies candidate statements. In Phase~2, a second agent analyzes the control and data flow of each candidate and confirms it, rules it out, or marks it uncertain. We created a manually verified ground truth of exploitable statements for 200 pairs of the PrimeVul Paired test set and ran SBVul with the open-weight models Qwen 3.8 and DeepSeek V4.1 Flash and Anthropic's Sonnet 5.5 and Opus 5.5. Phase~1 identifies ground-truth statements in 56--77% of the vulnerable functions, and Phase~2 confirms such a statement with an explanation accepted by an LLM judge in 26--73%. However, all models also confirm candidates in 23--61% of the patched functions. Across vulnerable and patched functions, the highest statement-level precision is 0.315 at a recall of 0.605 obtained with Opus 5.5 (xhigh). At the function level, SBVul with Opus 5.5 classifies 42.0% of the pairs correctly, compared with 33.8% reported for the best previous approach.

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

↑