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

VulnScout-C:一种轻量级的Transformer用于C代码漏洞检测

VulnScout-C: A Lightweight Transformer for C Code Vulnerability Detection

Ecole Polytechnique de Tunisie(突尼斯理工学院);Khalifa University(哈利法大学);University of Groningen(格罗宁根大学);Mohamed bin Zayed University of Artificial Intelligence (MBZUAI)(穆罕默德·本·扎耶德人工智能大学)

Aymen Lassoued, Nacef Mbarek, Bechir Dardouri, Bassem Ouni, Qing Li, Fakhri Karray

AI总结:

本文提出VulnScout-C,一种轻量级Transformer模型,用于C代码漏洞检测,同时构建了VulnScout数据集,实验表明其在检测性能上优于现有方法,且具有更低的推理成本。

摘要:

C程序漏洞检测是软件安全中的关键挑战。尽管大语言模型(LLMs)在检测性能上表现优异,但其多十亿参数的规模使其难以集成到需要低延迟和持续分析的开发流程中。我们引入VULNSCOUT-C,一种基于Qwen模型家族的紧凑型Transformer架构,总参数为693M(推理时主动参数为353M),专为C代码漏洞检测优化。此外,我们还提出了VULNSCOUT,一个包含33,565个样本的定制数据集,通过受控的多代理流程和形式验证生成,旨在填补现有基准在代表性不足的CWE类别中的覆盖缺口。在标准化的C漏洞检测基准上评估,VULNSCOUT-C在检测性能上优于所有评估的基线,包括最先进的推理LLMs和商业静态分析工具,同时提供远低于其推理成本。这些结果表明,任务专用的紧凑型架构可以匹配甚至优于比其大多个数量级的模型的检测能力,使在真实世界开发流程中实现连续、低延迟的漏洞分析成为可能。

英文摘要:

Vulnerability detection in C programs is a critical challenge in software security. Although large language models (LLMs) achieve strong detection performance, their multi-billion-parameter scale makes them impractical for integration into development workflows requiring low latency and continuous analysis. We introduce VULNSCOUT-C, a compact transformer architecture with 693M total parameters (353M active during inference), derived from the Qwen model family and optimized for C code vulnerability detection. Alongside the model, we present VULNSCOUT, a new 33,565-sample curated dataset generated through a controlled multi-agent pipeline with formal verification, designed to fill coverage gaps in existing benchmarks across underrepresented CWE categories. Evaluated on a standardized C vulnerability detection benchmark, VULNSCOUT-C outperforms all evaluated baselines, including state-of-the-art reasoning LLMs and commercial static analysis tools, while offering a fraction of their inference cost. These results demonstrate that task-specialized compact architectures can match or even outperform the detection capability of models orders of magnitude larger, making continuous, low-latency vulnerability analysis practical within real-world development workflows.

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

↑