arrow
返回

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

delete2023-05-01
delete30
PRE
AI
W
Wei Tang
M
Mingwei Tang *
M
Minchao Ban
Z
Ziguo Zhao
M
Mingjun Feng
DOI:10.1016/j.jss.2023.111623delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
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 usu-ally 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 pool-ing, 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.(c) 2023 Elsevier Inc. All rights reserved.
Keyword:
Graph neural networks
Vulnerability detection
Sequence embedding
Graph embedding
Pre -trained language model
Attention pooling

期刊

Journal of Systems and Software 封面图
Journal of Systems and Software
IF:
4.1
论文数:
5.5K
被引数:
8.4K

机构

X
Xihua University
学者数:
6.2K
论文数: 3.6K
被引数: 4.1K
引用论文

引用论文

Arsenic removal from aqueous solutions by adsorption using novel MIL-53(Fe) as a highly efficient adsorbent使用新型MIL-53(Fe) 作为高效吸附剂通过吸附从水溶液中去除砷
err2015-01-01
err0
PREAI
errTuan. A. Vu; Giang. H. Le; Canh. D. Dao; Lan. Q. Dang; Kien. T. Nguyen; Quang. K. Nguyen; Phuong. T. Dang; Hoa. T. K. Tran; Quang. T. Duong; Tuyen. V. Nguyen; Gun. D. Lee
err分享
err收藏
Atrial natriuretic peptide release after cardiac transplantation
err1996-10-01
err0
errOAAI
errAhmed El Gamel; Colin Campbell; Nizar Yonan; Brian Keevil; Raymond Warbuton; Ashley Woodcock; Abdul Deiraniya
err分享
err收藏
Predicting Program Properties from 'Big Code'
err2019-02-21
err11
PREAI
errRaychev, Veselin; Vechev, Martin; Krause, Andreas
err分享
err收藏
Software Vulnerability Detection Using Deep Neural Networks: A Survey
err2020-10-01
err269
PREAI
errLin, Guanjun; Wen, Sheng; Han, Qing-Long; Zhang, Jun; Xiang, Yang
err分享
err收藏
Combining Graph-Based Learning With Automated Data Collection for Code Vulnerability Detection基于图的学习与自动数据收集相结合的代码漏洞检测
err2021-01-01
err166
errOAAI
errWang, Huanting; Ye, Guixin; Tang, Zhanyong; Tan, Shin Hwei; Huang, Songfang; Fang, Dingyi; Feng, Yansong; Bian, Lizhong; Wang, Zheng
err分享
err收藏
没有更多内容