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 条
[41]   VulEye: A Novel Graph Neural Network Vulnerability Detection Approach for PHP Application [J].
Lin, Chun ;
Xu, Yijia ;
Fang, Yong ;
Liu, Zhonglin .
APPLIED SCIENCES-BASEL, 2023, 13 (02)
[42]   Anomaly traffic detection in IoT security using graph neural networks [J].
Gao, Mengnan ;
Wu, Lifa ;
Li, Qi ;
Chen, Wei .
JOURNAL OF INFORMATION SECURITY AND APPLICATIONS, 2023, 76
[43]   Event-based Object Detection using Graph Neural Networks [J].
Sun, Daobo ;
Ji, Haibo .
2023 IEEE 12TH DATA DRIVEN CONTROL AND LEARNING SYSTEMS CONFERENCE, DDCLS, 2023, :1895-1900
[44]   Bipartite Graph Coarsening for Text Classification Using Graph Neural Networks [J].
dos Santos, Nicolas Roque ;
Minatel, Diego ;
Baria Valejo, Alan Demetrius ;
Lopes, Alneu de A. .
PROGRESS IN PATTERN RECOGNITION, IMAGE ANALYSIS, COMPUTER VISION, AND APPLICATIONS, CIARP 2023, PT I, 2024, 14469 :589-604
[45]   Graph Neural Networks for Power Allocation in Wireless Networks with Full Duplex Nodes [J].
Chen, Lili ;
Zhu, Jingge ;
Evans, Jamie .
2023 IEEE INTERNATIONAL CONFERENCE ON COMMUNICATIONS WORKSHOPS, ICC WORKSHOPS, 2023, :277-282
[46]   Learning graph normalization for graph neural networks [J].
Chen, Yihao ;
Tang, Xin ;
Qi, Xianbiao ;
Li, Chun-Guang ;
Xiao, Rong .
NEUROCOMPUTING, 2022, 493 :613-625
[47]   Prediction of Aqueous Solubility of Drug Molecules by Embedding Spatial Conformers Using Graph Neural Networks [J].
Hamdi, Mohammad Erfan ;
Dezhkam, Rasool ;
Hajizade, Arman ;
Shamloo, Amir .
2022 29TH NATIONAL AND 7TH INTERNATIONAL IRANIAN CONFERENCE ON BIOMEDICAL ENGINEERING, ICBME, 2022, :46-50
[48]   Study of infostealers using Graph Neural Networks [J].
Bustos-Tabernero, Alvaro ;
Lopez-Sanchez, Daniel ;
Gonzalez-Arrieta, Angelica ;
Novais, Paulo .
LOGIC JOURNAL OF THE IGPL, 2024,
[49]   SNOW: An Effective Smart Contract Reentrancy Vulnerability Detection Method Based on Joint Feature Graph and Hybrid Graph Neural Network [J].
Lian, Wenjuan ;
Zhang, Xinze ;
Bao, Zikang ;
Jia, Bin .
SOFTWARE-PRACTICE & EXPERIENCE, 2025,
[50]   Semantic-guided graph neural network for heterogeneous graph embedding [J].
Han, Mingjing ;
Zhang, Han ;
Li, Wei ;
Yin, Yanbin .
EXPERT SYSTEMS WITH APPLICATIONS, 2023, 232