清晨好,您是今天最早来到科研通的研友!由于当前在线用户较少,发布求助请尽量完整地填写文献信息,科研通机器人24小时在线,伴您科研之路漫漫前行!

GRACE: Empowering LLM-based software vulnerability detection with graph structure and in-context learning

计算机科学 图形 脆弱性(计算) 软件 背景(考古学) 软件工程 工程类 计算机安全 理论计算机科学 程序设计语言 地理 考古
作者
Guilong Lu,Xiaolin Ju,Xiang Chen,Wenlong Pei,Zhilong Cai
出处
期刊:Journal of Systems and Software [Elsevier BV]
卷期号:212: 112031-112031 被引量:46
标识
DOI:10.1016/j.jss.2024.112031
摘要

Software vulnerabilities inflict considerable economic and societal harm. Therefore, timely and accurate detection of these flaws has become vital. Large language models (LLMs) have emerged as a promising tool for vulnerability detection in recent studies. However, their effectiveness suffers when limited to plain text source code, which may ignore the syntactic and semantic information of the code. To address this limitation, we propose a novel vulnerability detection approach GRACE that empowers LLM-based software vulnerability detection by incorporating graph structural information in the code and in-context learning. We also design an effective demonstration retrieval approach that identifies highly relevant code examples by considering semantic, lexical, and syntactic similarities for the target code to provide better demonstrations for in-context learning. To evaluate the effectiveness of GRACE, we conducted an empirical study on three vulnerability detection datasets (i.e., Devign, Reveal, and Big-Vul). The results demonstrate that GRACE outperforms six state-of-the-art vulnerability detection baselines by at least 28.65% in terms of the F1 score across these three datasets. Therefore, our study highlights the effectiveness of integrating graph structural information and in-context learning in LLMs for vulnerability detection. These findings motivate further investigation into tailoring such approaches for specific vulnerability types or adapting them to other security tasks.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
更新
PDF的下载单位、IP信息已删除 (2025-6-4)

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
现代小丸子完成签到 ,获得积分10
10秒前
甲基醚完成签到 ,获得积分10
19秒前
PiX0应助科研通管家采纳,获得10
37秒前
BinBlues完成签到,获得积分10
44秒前
珊珊来迟完成签到,获得积分10
57秒前
caulif完成签到 ,获得积分10
1分钟前
稻子完成签到 ,获得积分10
1分钟前
孤独剑完成签到 ,获得积分10
1分钟前
yindi1991完成签到 ,获得积分10
1分钟前
sci_zt完成签到 ,获得积分10
1分钟前
双眼皮跳蚤完成签到,获得积分0
1分钟前
Lexi完成签到 ,获得积分10
1分钟前
像猫的狗完成签到 ,获得积分10
2分钟前
racill完成签到 ,获得积分10
2分钟前
夏日香气完成签到 ,获得积分10
2分钟前
执着的寄凡完成签到,获得积分10
2分钟前
wujiwuhui完成签到 ,获得积分10
2分钟前
奔跑的小熊完成签到 ,获得积分10
2分钟前
fwstu发布了新的文献求助20
2分钟前
lisa完成签到 ,获得积分10
2分钟前
huiluowork完成签到 ,获得积分10
3分钟前
bellapp完成签到 ,获得积分10
3分钟前
YWD完成签到,获得积分10
3分钟前
4分钟前
CHEN完成签到 ,获得积分10
4分钟前
英姑应助zhang20082418采纳,获得10
4分钟前
4分钟前
guoguo1119完成签到 ,获得积分10
4分钟前
阿姨洗铁路完成签到 ,获得积分10
4分钟前
马马完成签到 ,获得积分10
4分钟前
hongtao发布了新的文献求助10
4分钟前
4分钟前
张小馨完成签到 ,获得积分10
4分钟前
马马完成签到 ,获得积分10
4分钟前
个性仙人掌完成签到 ,获得积分10
4分钟前
zhang20082418发布了新的文献求助10
4分钟前
李健的小迷弟应助fwstu采纳,获得20
4分钟前
4分钟前
六一儿童节完成签到 ,获得积分0
4分钟前
hongtao完成签到 ,获得积分10
4分钟前
高分求助中
(应助此贴封号)【重要!!请各位详细阅读】【科研通的精品贴汇总】 10000
Les Mantodea de Guyane: Insecta, Polyneoptera [The Mantids of French Guiana] 3000
F-35B V2.0 How to build Kitty Hawk's F-35B Version 2.0 Model 2500
줄기세포 생물학 1000
The Netter Collection of Medical Illustrations: Digestive System, Volume 9, Part III - Liver, Biliary Tract, and Pancreas (3rd Edition) 600
INQUIRY-BASED PEDAGOGY TO SUPPORT STEM LEARNING AND 21ST CENTURY SKILLS: PREPARING NEW TEACHERS TO IMPLEMENT PROJECT AND PROBLEM-BASED LEARNING 500
2025-2031全球及中国蛋黄lgY抗体行业研究及十五五规划分析报告(2025-2031 Global and China Chicken lgY Antibody Industry Research and 15th Five Year Plan Analysis Report) 400
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 有机化学 生物化学 物理 内科学 纳米技术 计算机科学 化学工程 复合材料 遗传学 基因 物理化学 催化作用 冶金 细胞生物学 免疫学
热门帖子
关注 科研通微信公众号,转发送积分 4485893
求助须知:如何正确求助?哪些是违规求助? 3941198
关于积分的说明 12221450
捐赠科研通 3597047
什么是DOI,文献DOI怎么找? 1978361
邀请新用户注册赠送积分活动 1015344
科研通“疑难数据库(出版商)”最低求助积分说明 908562