CSGVD: A deep learning approach combining sequence and graph embedding for source code vulnerability detection

嵌入 计算机科学 特征学习 图形 源代码 图嵌入 人工智能 机器学习 理论计算机科学 数据挖掘 操作系统
作者
Wei Tang,Mingwei Tang,Minchao Ban,Ziguo Zhao,Mingjun Feng
出处
期刊:Journal of Systems and Software [Elsevier BV]
卷期号:199: 111623-111623 被引量:51
标识
DOI:10.1016/j.jss.2023.111623
摘要

In order to secure software, it is critical to detect potential vulnerabilities. The performance of traditional static vulnerability detection methods is limited by predefined rules, which rely heavily on the expertise of developers. Existing deep learning-based vulnerability detection models usually use only a single sequence or graph embedding approach to extract vulnerability features. Sequence embedding-based models ignore the structured information inherent in the code, and graph embedding-based models lack effective node and graph embedding methods. As a result, we propose a novel deep learning-based approach, CSGVD (Combining Sequence and Graph embedding for Vulnerability Detection), which considers function-level vulnerability detection as a graph binary classification task. Firstly, we propose a PE-BL module, which inherits and enhances the knowledge from the pre-trained language model. It extracts the code’s local semantic features as node embedding in the control flow graph by using sequence embedding. Secondly, CSGVD uses graph neural networks to extract the structured information of the graph. Finally, we propose a mean biaffine attention pooling, M-BFA, to better aggregate node information as a graph’s feature representation. The experimental results show that CSGVD outperforms the existing state-of-the-art models and obtains 64.46% accuracy on the real-world benchmark dataset from CodeXGLUE for vulnerability detection.
最长约 10秒,即可获得该文献文件

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

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
孙同学完成签到,获得积分10
刚刚
你学习了吗我学不了一点完成签到,获得积分10
1秒前
1秒前
Stean完成签到,获得积分10
2秒前
2秒前
scott910806完成签到,获得积分10
3秒前
刘婉敏发布了新的文献求助10
4秒前
小小阿杰完成签到,获得积分10
5秒前
孙同学发布了新的文献求助10
5秒前
微笑的外绣完成签到,获得积分10
6秒前
阿尼发布了新的文献求助10
7秒前
可乐大王完成签到,获得积分10
7秒前
9秒前
wsyiming完成签到,获得积分10
9秒前
过时的明杰完成签到,获得积分10
10秒前
NexusExplorer应助倩倩采纳,获得10
10秒前
皮皮龙OVO完成签到,获得积分10
10秒前
在水一方应助过时的明杰采纳,获得10
13秒前
昏睡的咖啡完成签到,获得积分10
14秒前
Kanas完成签到,获得积分10
16秒前
KevenDing完成签到,获得积分10
18秒前
量子星尘发布了新的文献求助10
19秒前
19秒前
19秒前
Gu0F1完成签到 ,获得积分10
20秒前
bxtx完成签到,获得积分10
20秒前
ling完成签到,获得积分10
20秒前
潇洒的马里奥完成签到,获得积分10
21秒前
Stean发布了新的文献求助10
23秒前
23秒前
24秒前
24秒前
CodeCraft应助saye2000采纳,获得10
24秒前
25秒前
倩倩发布了新的文献求助10
26秒前
Neoshine发布了新的文献求助30
27秒前
27秒前
颜十三发布了新的文献求助10
29秒前
du30发布了新的文献求助10
30秒前
kakaka发布了新的文献求助10
30秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Fermented Coffee Market 2000
PARLOC2001: The update of loss containment data for offshore pipelines 500
Critical Thinking: Tools for Taking Charge of Your Learning and Your Life 4th Edition 500
Phylogenetic study of the order Polydesmida (Myriapoda: Diplopoda) 500
A Manual for the Identification of Plant Seeds and Fruits : Second revised edition 500
Vertebrate Palaeontology, 5th Edition 340
热门求助领域 (近24小时)
化学 医学 生物 材料科学 工程类 有机化学 内科学 生物化学 物理 计算机科学 纳米技术 遗传学 基因 复合材料 化学工程 物理化学 病理 催化作用 免疫学 量子力学
热门帖子
关注 科研通微信公众号,转发送积分 5259101
求助须知:如何正确求助?哪些是违规求助? 4420900
关于积分的说明 13761392
捐赠科研通 4294658
什么是DOI,文献DOI怎么找? 2356512
邀请新用户注册赠送积分活动 1352924
关于科研通互助平台的介绍 1313807