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 recent 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, covering 36 papers published at 21 distinct venues. 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 challenges that still need to be tackled considering existing studies. Additionally, we have outlined a roadmap highlighting potential opportunities that we believe are pertinent and crucial for future research endeavors.
翻译:大语言模型(LLMs)的显著进步使其在软件工程(SE)领域的各项任务中得到了广泛应用,包括漏洞检测与修复。近期大量研究探讨了利用LLMs增强漏洞检测与修复任务的方法。尽管研究兴趣日益增长,但目前尚无专门聚焦于LLMs在漏洞检测与修复中应用的综述性文献。本文旨在通过系统文献综述填补这一空白,系统梳理了利用LLMs改进漏洞检测与修复的方法。综述涵盖了来自软件工程、人工智能及安全领域顶级会议和期刊的研究成果,共涉及21个不同学术平台的36篇论文。通过回答三个关键研究问题,我们旨在:(1)总结相关文献中采用的LLMs类型;(2)分类漏洞检测中各类LLM适配技术;(3)分类漏洞修复中各类LLM适配技术。基于研究结果,我们识别出现有研究中仍需应对的一系列挑战,并提出了我们认为对未来研究具有重要意义的潜在研究方向路线图。