已入深夜,您辛苦了!由于当前在线用户较少,发布求助请尽量完整的填写文献信息,科研通机器人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 被引量:18
标识
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
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
hahahaha发布了新的文献求助10
1秒前
yvye完成签到 ,获得积分10
1秒前
洁净的雪一完成签到 ,获得积分10
2秒前
咯咚发布了新的文献求助10
2秒前
情怀应助Dandelion采纳,获得10
2秒前
听春风完成签到 ,获得积分10
5秒前
无畏完成签到 ,获得积分10
7秒前
小点点完成签到,获得积分10
10秒前
积极的香菇完成签到 ,获得积分10
13秒前
lulu完成签到 ,获得积分10
15秒前
花椒鱼完成签到 ,获得积分10
15秒前
lvsehx发布了新的文献求助10
18秒前
19秒前
王木木完成签到,获得积分10
21秒前
LIU完成签到 ,获得积分10
23秒前
orixero应助惠飞薇采纳,获得10
23秒前
qiaoqiao完成签到,获得积分20
25秒前
25秒前
dreamsci完成签到 ,获得积分10
29秒前
29秒前
29秒前
hehe完成签到,获得积分10
30秒前
请叫我风吹麦浪应助zzx采纳,获得10
30秒前
龙仔发布了新的文献求助10
30秒前
张馨戈完成签到,获得积分10
32秒前
34秒前
CHEN完成签到,获得积分10
35秒前
36秒前
37秒前
科研通AI5应助tianguoheng采纳,获得10
38秒前
七叶树完成签到,获得积分10
38秒前
科小白完成签到 ,获得积分10
39秒前
40秒前
43秒前
华仔应助七安得安采纳,获得10
43秒前
43秒前
qiaoqiao发布了新的文献求助20
44秒前
科研通AI5应助缥缈的雁枫采纳,获得10
45秒前
诸葛语琴发布了新的文献求助10
47秒前
可爱的函函应助jinx采纳,获得10
47秒前
高分求助中
Mass producing individuality 600
Algorithmic Mathematics in Machine Learning 500
非光滑分析与控制理论 500
Разработка метода ускоренного контроля качества электрохромных устройств 500
A Combined Chronic Toxicity and Carcinogenicity Study of ε-Polylysine in the Rat 400
Advances in Underwater Acoustics, Structural Acoustics, and Computational Methodologies 300
NK Cell Receptors: Advances in Cell Biology and Immunology by Colton Williams (Editor) 200
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 有机化学 物理 生物化学 纳米技术 计算机科学 化学工程 内科学 复合材料 物理化学 电极 遗传学 量子力学 基因 冶金 催化作用
热门帖子
关注 科研通微信公众号,转发送积分 3827115
求助须知:如何正确求助?哪些是违规求助? 3369456
关于积分的说明 10455991
捐赠科研通 3089115
什么是DOI,文献DOI怎么找? 1699644
邀请新用户注册赠送积分活动 817423
科研通“疑难数据库(出版商)”最低求助积分说明 770217