Towards Explainable Vulnerability Detection With Large Language Models

计算机科学 脆弱性(计算) 数据科学 程序设计语言 软件工程 自然语言处理 计算机安全
作者
Qiheng Mao,Zhenhao Li,Xing Hu,Kui Liu,Xin Xia,Jianling Sun
出处
期刊:IEEE Transactions on Software Engineering [IEEE Computer Society]
卷期号:51 (10): 2957-2971 被引量:8
标识
DOI:10.1109/tse.2025.3605442
摘要

Software vulnerabilities pose significant risks to the security and integrity of software systems. Although prior studies have explored vulnerability detection using deep learning and pre-trained models, these approaches often fail to provide the detailed explanations necessary for developers to understand and remediate vulnerabilities effectively. The advent of large language models (LLMs) has introduced transformative potential due to their advanced generative capabilities and ability to comprehend complex contexts, offering new possibilities for addressing these challenges. In this paper, we propose LLMVulExp, an automated framework designed to specialize LLMs for the dual tasks of vulnerability detection and explanation. To address the challenges of acquiring high-quality annotated data and injecting domain-specific knowledge, LLMVulExp leverages prompt-based techniques for annotating vulnerability explanations and fine-tunes LLMs using instruction tuning with Low-Rank Adaptation (LoRA), enabling LLMVulExp to detect vulnerability types in code while generating detailed explanations, including the cause, location, and repair suggestions. Additionally, we employ a Chain-of-Thought (CoT) based key code extraction strategy to focus LLMs on analyzing vulnerability-prone code, further enhancing detection accuracy and explanatory depth.We conducted experiments across multiple vulnerability detection settings on three benchmark datasets, demonstrating the effectiveness of our method. This study highlights the feasibility of utilizing LLMs for real-world vulnerability detection and explanation tasks, providing critical insights into their adaptation and application in software security.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
方黎昕发布了新的文献求助10
刚刚
qhuzhl完成签到,获得积分10
1秒前
再沉默完成签到,获得积分10
1秒前
lvjiahui发布了新的文献求助10
1秒前
CJY完成签到,获得积分10
2秒前
Wng完成签到,获得积分20
2秒前
武生完成签到,获得积分10
2秒前
2秒前
潇洒的惋清应助元谷雪采纳,获得10
2秒前
zzz完成签到,获得积分10
3秒前
武老师贼帅完成签到,获得积分10
4秒前
定仙游完成签到,获得积分10
5秒前
可爱小张完成签到,获得积分10
5秒前
dany完成签到 ,获得积分10
5秒前
陈微完成签到,获得积分10
5秒前
Cate完成签到,获得积分10
5秒前
capx完成签到,获得积分10
7秒前
樊书雪完成签到,获得积分10
8秒前
Zilong864完成签到,获得积分10
8秒前
朝闻道完成签到 ,获得积分10
8秒前
lvjiahui完成签到,获得积分10
8秒前
无情白羊完成签到,获得积分10
8秒前
X_X完成签到,获得积分10
8秒前
天天呼的海角完成签到,获得积分10
8秒前
9秒前
SciGPT应助ROC采纳,获得10
9秒前
兜里全是糖完成签到,获得积分10
9秒前
耍酷寻双完成签到 ,获得积分0
11秒前
11秒前
yu完成签到,获得积分10
12秒前
风中的雨文完成签到,获得积分10
12秒前
12秒前
wmqlu发布了新的文献求助10
13秒前
人间风完成签到,获得积分10
14秒前
MYMELODY完成签到,获得积分10
14秒前
Xinxxx完成签到,获得积分10
14秒前
qq完成签到,获得积分10
14秒前
molihuakai应助乐多采纳,获得10
14秒前
15秒前
帅帅哈完成签到,获得积分10
16秒前
高分求助中
GL 2 A method for assessing the in-place cleanability of food processing equipment, Fourth Edition, December 2023 3000
Annie Ernaux: De la perte au corps glorieux 600
Writing Systems 500
类器官构建与应用:从基础到前沿 500
Electric Vehicle Powertrains Design Fundamentals, Components, and Applications 400
Handbook on Planning and Climate Change Adaptation 400
Optical Coating Design with the Essential Macleod 400
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 物理 内科学 复合材料 催化作用 物理化学 光电子学 电极 细胞生物学 基因 无机化学
热门帖子
关注 科研通微信公众号,转发送积分 6807856
求助须知:如何正确求助?哪些是违规求助? 8524691
关于积分的说明 18145863
捐赠科研通 6131888
什么是DOI,文献DOI怎么找? 3028626
邀请新用户注册赠送积分活动 2005161
关于科研通互助平台的介绍 2002276