A dual graph neural networks model using sequence embedding as graph nodes for vulnerability detection

被引:0
作者
Ling, Miaogui [1 ]
Tang, Mingwei [1 ]
Bian, Deng [1 ]
Lv, Shixuan [1 ]
Tang, Qi [1 ]
机构
[1] Xihua Univ, Sch Comp & Software Engn, Chengdu 610039, Peoples R China
关键词
Vulnerability detection; Graph neural network; Sequence embedding;
D O I
10.1016/j.infsof.2024.107581
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Context: Detecting critical to ensure software system security. The traditional static vulnerability detection methods are limited by staff expertise and perform poorly with today's increasingly complex software systems. Researchers have successfully applied the techniques used in NLP to vulnerability detection as deep learning has developed. The existing deep learning-based vulnerability detection models can be divided into sequence- based and graph-based categories. Sequence-based embedding models cannot use structured information embedded in the code, and graph-based embedding models lack effective node representations. Objective: To solve these problems, we propose a deep learning-based method, DGVD (Double Graph Neural Network for Vulnerability Detection). Methods: We use the sequential neural network approach to extract local semantic features of the code as nodes embedded in the control flow graph. First, we propose a dual graph neural network module (DualGNN) that consists of GCN and GAT. The altered module utilizes two different graph neural networks to obtain the global structural information of the control flow and the relationship between the nodes and fuses the two. Second, we propose a convolution-based feature enhancement module (TC-FE) that uses different convolution kernels of different sizes to capture information at different scales so that subsequent readout layers can better aggregate node information. Results: Experiments demonstrate that DGVD outperforms existing models, obtaining 64.23% vulnerability detection accuracy on CodeXGLUE's real benchmark dataset. Conclusion: The proposed DGVD achieves better performance than the state-of-the-art DGVD has a more effective source code feature extraction capability on real-world datasets.
引用
收藏
页数:10
相关论文
共 50 条
[21]   Vulnerability detection with feature fusion and learnable edge-type embedding graph neural network [J].
Cheng, Ge ;
Luo, Qifan ;
Zhang, Yun .
INFORMATION AND SOFTWARE TECHNOLOGY, 2025, 181
[22]   VDTriplet: Vulnerability detection with graph semantics using triplet model [J].
Sun, Hao ;
Cui, Lei ;
Li, Lun ;
Ding, Zhenquan ;
Li, Siyuan ;
Hao, Zhiyu ;
Zhu, Hongsong .
COMPUTERS & SECURITY, 2024, 139
[23]   Enhanced Intrusion Detection in Backbone Networks using Graph Neural Networks [J].
Lee, Chung-Wei ;
Chen, Jiunn-Jye ;
Liang, Ming-Chang .
2024 11TH INTERNATIONAL CONFERENCE ON CONSUMER ELECTRONICS-TAIWAN, ICCE-TAIWAN 2024, 2024, :443-444
[24]   Dual Graph enhanced Embedding Neural Network for CTR Prediction [J].
Guo, Wei ;
Su, Rong ;
Tan, Renhao ;
Guo, Huifeng ;
Zhang, Yingxue ;
Liu, Zhirong ;
Tang, Ruiming ;
He, Xiuqiang .
KDD '21: PROCEEDINGS OF THE 27TH ACM SIGKDD CONFERENCE ON KNOWLEDGE DISCOVERY & DATA MINING, 2021, :496-504
[25]   Power flow forecasts at transmission grid nodes using Graph Neural Networks [J].
Beinert, Dominik ;
Holzhueter, Clara ;
Thomas, Josephine M. ;
Vogt, Stephan .
ENERGY AND AI, 2023, 14
[26]   Graph Neural Network based Scene Change Detection Using Scene Graph Embedding with Hybrid Classification Loss [J].
Kim, Soyeon ;
Joo, Kyung-no ;
Youn, Chan-Hyun .
12TH INTERNATIONAL CONFERENCE ON ICT CONVERGENCE (ICTC 2021): BEYOND THE PANDEMIC ERA WITH ICT CONVERGENCE INNOVATION, 2021, :190-195
[27]   Slice-level vulnerability detection model based on graph neural network [J].
Ren, Jiadong ;
Zhang, Jiao ;
Li, Jiazheng ;
Yang, Shuailin .
PROCEEDINGS OF 2024 3RD INTERNATIONAL CONFERENCE ON CRYPTOGRAPHY, NETWORK SECURITY AND COMMUNICATION TECHNOLOGY, CNSCT 2024, 2024, :52-57
[28]   Enhanced Smart Contract Vulnerability Detection via Graph Neural Networks: Achieving High Accuracy and Efficiency [J].
Xu, Chang ;
Xu, Huaiyu ;
Zhu, Liehuang ;
Shen, Xiaodong ;
Sharif, Kashif .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2025, 51 (06) :1854-1865
[29]   MultiGLICE: Combining Graph Neural Networks and Program Slicing for Multiclass Software Vulnerability Detection [J].
de Kraker, Wesley ;
Vranken, Harald ;
Hommersom, Arjen .
COMPUTERS, 2025, 14 (03)
[30]   Smart Contract Vulnerability Detection Based on Code Graph Embedding Approach [J].
Zhai, Yiwen ;
Yang, Jia ;
Zhang, Mingwu .
FRONTIERS IN CYBER SECURITY, FCS 2024, PT I, 2024, 2315 :317-332