我们在使用大型语言模型进行漏洞检测方面取得了多大进展?
How Far Have We Gone in Vulnerability Detection Using Large Language Models
AI总结:
本文提出VulBench基准,评估16个LLM和6个SOTA深度学习模型及静态分析器的漏洞检测性能,发现LLM优于传统方法,展现其提升软件安全的潜力。
摘要:
随着软件变得越来越复杂且容易受到漏洞的影响,自动化漏洞检测变得至关重要,但也充满挑战。鉴于大型语言模型(LLMs)在各种任务中取得的显著成功,人们越来越期待它们在漏洞检测中的有效性。然而,对其在漏洞检测中潜力的定量理解仍然缺失。为了弥合这一差距,我们引入了一个全面的漏洞基准VulBench。该基准汇集了来自广泛的CTF(夺旗)挑战和真实世界应用的高质量数据,并为每个易受攻击的函数提供了注释,详细说明了漏洞类型及其根本原因。通过我们的实验,涵盖了16个大型语言模型和6个最先进的(SOTA)基于深度学习的模型以及静态分析器,我们发现多个大型语言模型在漏洞检测方面优于传统的深度学习方法,揭示了LLMs中未被开发的潜力。这项工作有助于理解和利用LLMs来增强软件安全性。
英文摘要:
As software becomes increasingly complex and prone to vulnerabilities, automated vulnerability detection is critically important, yet challenging. Given the significant successes of large language models (LLMs) in various tasks, there is growing anticipation of their efficacy in vulnerability detection. However, a quantitative understanding of their potential in vulnerability detection is still missing. To bridge this gap, we introduce a comprehensive vulnerability benchmark VulBench. This benchmark aggregates high-quality data from a wide range of CTF (Capture-the-Flag) challenges and real-world applications, with annotations for each vulnerable function detailing the vulnerability type and its root cause. Through our experiments encompassing 16 LLMs and 6 state-of-the-art (SOTA) deep learning-based models and static analyzers, we find that several LLMs outperform traditional deep learning approaches in vulnerability detection, revealing an untapped potential in LLMs. This work contributes to the understanding and utilization of LLMs for enhanced software security.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。