arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2407.16235cs.SEcs.AI
收藏

静态应用安全测试工具与大型语言模型在仓库级漏洞检测中的比较

Comparison of Static Application Security Testing Tools and Large Language Models for Repo-level Vulnerability Detection

Singapore Management University(新加坡管理大学);Hanoi University of Science and Technology(河内理工大学);The University of Melbourne(墨尔本大学);University of Melbourne(墨尔本大学)

Xin Zhou, Duc-Manh Tran, Thanh Le-Cong, Ting Zhang, Ivana Clairine Irsan, Joshua Sumarlin, Bach Le, David Lo

AI总结:

本文比较了15种SAST工具与12种开源LLMs在Java、C和Python仓库级漏洞检测中的表现,发现集成两者可缓解SAST低检测率与LLMs高误报率的缺点。

摘要:

软件漏洞对社会构成重大安全挑战和潜在风险,需要在自动化漏洞检测方面投入大量精力。目前有两条主流研究路线来解决自动化漏洞检测问题。一方面,Static Application Security Testing (SAST) 通常被用于扫描源代码以查找安全漏洞,尤其是在工业界。另一方面,基于深度学习 (DL) 的方法,特别是自大型语言模型 (LLMs) 引入以来,已展现出在软件漏洞检测中的潜力。然而,目前尚无关于 SAST 工具与 LLMs 之间的比较研究,旨在确定它们在漏洞检测中的有效性,了解 SAST 和 LLMs 两者的优缺点,并探索这两个方法系列的潜在结合。在本文中,我们比较了 15 种不同的 SAST 工具与 12 种流行或最先进的开源 LLMs,以检测来自三种流行编程语言(Java、C 和 Python)的代码仓库中的软件漏洞。实验结果表明,SAST 工具的漏洞检测率较低,且误报率相对较低;而 LLMs 能够检测出 90% 到 100% 的漏洞,但存在高误报率的问题。通过进一步将 SAST 工具与 LLMs 进行集成,两者的缺点都能在一定程度上得到缓解。我们的分析为软件漏洞检测的当前进展和未来方向提供了启示。

英文摘要:

Software vulnerabilities pose significant security challenges and potential risks to society, necessitating extensive efforts in automated vulnerability detection. There are two popular lines of work to address automated vulnerability detection. On one hand, Static Application Security Testing (SAST) is usually utilized to scan source code for security vulnerabilities, especially in industries. On the other hand, deep learning (DL)-based methods, especially since the introduction of large language models (LLMs), have demonstrated their potential in software vulnerability detection. However, there is no comparative study between SAST tools and LLMs, aiming to determine their effectiveness in vulnerability detection, understand the pros and cons of both SAST and LLMs, and explore the potential combination of these two families of approaches. In this paper, we compared 15 diverse SAST tools with 12 popular or state-of-the-art open-source LLMs in detecting software vulnerabilities from repositories of three popular programming languages: Java, C, and Python. The experimental results showed that SAST tools obtain low vulnerability detection rates with relatively low false positives, while LLMs can detect up 90\% to 100\% of vulnerabilities but suffer from high false positives. By further ensembling the SAST tools and LLMs, the drawbacks of both SAST tools and LLMs can be mitigated to some extent. Our analysis sheds light on both the current progress and future directions for software vulnerability detection.

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

↑