arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.07049cs.CRcs.AI
收藏

软件安全中的大语言模型:漏洞检测技术与洞见综述

LLMs in Software Security: A Survey of Vulnerability Detection Techniques and Insights

Texas A&M University(得克萨斯农工大学);City University of Hong Kong(香港城市大学)

Ze Sheng, Zhicheng Chen, Shuning Gu, Heqing Huang, Guofei Gu, Jeff Huang

AI总结:

本文综述 LLMs 在软件漏洞检测中的模型、方法、数据集与指标,分析现有挑战并提出统一框架和未来方向。

摘要:

大语言模型(LLMs)正成为软件漏洞检测领域的变革性工具,用于应对安全领域的关键挑战。静态分析和动态分析等传统方法常因效率低下、误报率高以及现代软件系统日益复杂而表现不佳。通过利用其分析代码结构、识别模式并生成修复建议的能力,以 GPT、BERT 和 CodeBERT 等模型为代表的 LLMs 提供了一种新颖且可扩展的漏洞缓解方法。本文对 LLMs 在漏洞检测中的应用进行了详细综述,考察了模型架构、应用方法、目标语言、微调策略、数据集和评估指标等关键方面。我们还分析了当前研究问题的范围,强调现有方法的优势与不足。此外,我们讨论了跨语言漏洞检测、多模态数据集成和仓库级分析等挑战。基于这些发现,我们针对数据集可扩展性、模型可解释性以及低资源场景下的应用等问题提出解决方案。我们的贡献有三方面:(1)系统回顾 LLMs 如何应用于漏洞检测;(2)分析各项研究之间的共同模式和差异,并提供一个用于理解该领域的统一框架;(3)总结关键挑战和未来研究方向。本工作为推进基于 LLM 的漏洞检测提供了有价值的洞见。我们还在 https://github.com/OwenSanzas/LLM-For-Vulnerability-Detection 维护并定期更新最新精选论文。

英文摘要:

Large Language Models (LLMs) are emerging as transformative tools for software vulnerability detection, addressing critical challenges in the security domain. Traditional methods, such as static and dynamic analysis, often falter due to inefficiencies, high false positive rates, and the growing complexity of modern software systems. By leveraging their ability to analyze code structures, identify patterns, and generate repair suggestions, LLMs, exemplified by models like GPT, BERT, and CodeBERT, present a novel and scalable approach to mitigating vulnerabilities. This paper provides a detailed survey of LLMs in vulnerability detection. It examines key aspects, including model architectures, application methods, target languages, fine-tuning strategies, datasets, and evaluation metrics. We also analyze the scope of current research problems, highlighting the strengths and weaknesses of existing approaches. Further, we address challenges such as cross-language vulnerability detection, multimodal data integration, and repository-level analysis. Based on these findings, we propose solutions for issues like dataset scalability, model interpretability, and applications in low-resource scenarios. Our contributions are threefold: (1) a systematic review of how LLMs are applied in vulnerability detection; (2) an analysis of shared patterns and differences across studies, with a unified framework for understanding the field; and (3) a summary of key challenges and future research directions. This work provides valuable insights for advancing LLM-based vulnerability detection. We also maintain and regularly update latest selected paper on https://github.com/OwenSanzas/LLM-For-Vulnerability-Detection

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

↑