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

用于漏洞检测与修复的大语言模型:文献综述与未来展望

Large Language Model for Vulnerability Detection and Repair: Literature Review and the Road Ahead

Xin Zhou, Sicong Cao, Xiaobing Sun, David Lo

AI总结:

本文针对当前缺乏大语言模型用于漏洞检测与修复相关综述的空白,对58篇相关文献开展系统梳理,总结所用模型、分类两类任务的适配技术,指出现有研究局限并提出未来研究方向。

摘要:

大语言模型(LLMs)的显著进展使其在软件工程(SE)的各类任务中得到广泛应用,包括漏洞检测与修复。已有大量研究探索了利用LLMs提升漏洞检测与修复任务的效果。尽管研究兴趣日益增长,但目前尚无聚焦于LLMs在漏洞检测与修复中应用的综述。本文旨在弥补这一空白,对借助LLMs改进漏洞检测与修复的方法开展系统性文献综述。本综述涵盖了来自顶级软件工程、人工智能与安全领域会议及期刊的研究成果,包括发表在25个不同会场的43篇论文,以及15篇高质量预印本论文,总计58篇。通过回答三个核心研究问题,我们旨在:(1)总结相关文献中使用的LLMs;(2)对漏洞检测中各类LLM适配技术进行分类;(3)对漏洞修复中各类LLM适配技术进行分类。基于研究结果,我们指出了现有研究存在的一系列局限性。此外,我们还规划了一份路线图,明确了我们认为对未来研究工作具有相关性与重要性的潜在方向。

英文摘要:

The significant advancements in Large Language Models (LLMs) have resulted in their widespread adoption across various tasks within Software Engineering (SE), including vulnerability detection and repair. Numerous studies have investigated the application of LLMs to enhance vulnerability detection and repair tasks. Despite the increasing research interest, there is currently no existing survey that focuses on the utilization of LLMs for vulnerability detection and repair. In this paper, we aim to bridge this gap by offering a systematic literature review of approaches aimed at improving vulnerability detection and repair through the utilization of LLMs. The review encompasses research work from leading SE, AI, and Security conferences and journals, encompassing 43 papers published across 25 distinct venues, along with 15 high-quality preprint papers, bringing the total to 58 papers. By answering three key research questions, we aim to (1) summarize the LLMs employed in the relevant literature, (2) categorize various LLM adaptation techniques in vulnerability detection, and (3) classify various LLM adaptation techniques in vulnerability repair. Based on our findings, we have identified a series of limitations of existing studies. Additionally, we have outlined a roadmap highlighting potential opportunities that we believe are pertinent and crucial for future research endeavors.

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

↑