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 条
[31]   Graph Anomaly Detection With Graph Neural Networks: Current Status and Challenges [J].
Kim, Hwan ;
Lee, Byung Suk ;
Shin, Won-Yong ;
Lim, Sungsu .
IEEE ACCESS, 2022, 10 :111820-111829
[32]   Efficient Vulnerability Detection for Smart Contracts Using Gated Graph Neural Network [J].
Zhai, Yiwen ;
Yang, Jia ;
Zhang, Mingwu .
INFORMATION SECURITY AND PRIVACY, PT III, ACISP 2024, 2024, 14897 :44-63
[33]   Predicting lncRNA-protein interactions with bipartite graph embedding and deep graph neural networks [J].
Ma, Yuzhou ;
Zhang, Han ;
Jin, Chen ;
Kang, Chuanze .
FRONTIERS IN GENETICS, 2023, 14
[34]   An explainable botnet detection model based on lightweight graph neural networks [J].
He, Guofeng ;
Zhu, Jianghua ;
Shi, Yinong ;
Yan, Ke ;
Zheng, Xu .
INTERNATIONAL JOURNAL OF COMPUTATIONAL SCIENCE AND ENGINEERING, 2025, 28 (02) :219-231
[35]   A steel surface defect detection model based on graph neural networks [J].
Pang, Wenkai ;
Tan, Zhi .
MEASUREMENT SCIENCE AND TECHNOLOGY, 2024, 35 (04)
[36]   ContractGNN: Ethereum Smart Contract Vulnerability Detection Based on Vulnerability Sub-Graphs and Graph Neural Networks [J].
Wang, Yichen ;
Zhao, Xiangfu ;
He, Long ;
Zhen, Zixian ;
Chen, Haiyue .
IEEE TRANSACTIONS ON NETWORK SCIENCE AND ENGINEERING, 2024, 11 (06) :6382-6395
[37]   Conversational Group Detection with Graph Neural Networks [J].
Thompson, Sydney ;
Gupta, Abhijit ;
Gupta, Anjali W. ;
Chen, Austin ;
Vazquez, Marynel .
PROCEEDINGS OF THE 2021 INTERNATIONAL CONFERENCE ON MULTIMODAL INTERACTION, ICMI 2021, 2021, :248-252
[38]   Medicare Fraud Detection Using Graph Analysis: A Comparative Study of Machine Learning and Graph Neural Networks [J].
Yoo, Yeeun ;
Shin, Jinho ;
Kyeong, Sunghyon .
IEEE ACCESS, 2023, 11 :88278-88294
[39]   A Graph Construction Method for Anomalous Traffic Detection with Graph Neural Networks Using Sets of Flow Data [J].
Okui, Norihiro ;
Akimoto, Yusuke ;
Kubota, Ayumu ;
Yoshida, Takuya .
2023 IEEE 47TH ANNUAL COMPUTERS, SOFTWARE, AND APPLICATIONS CONFERENCE, COMPSAC, 2023, :1017-1018
[40]   TransGNN: A Transductive Graph Neural Network with Graph Dynamic Embedding [J].
Anghinoni, Leandro ;
Zhu, Yu-Tao ;
Ji, Donghong ;
Zhao, Liang .
2023 INTERNATIONAL JOINT CONFERENCE ON NEURAL NETWORKS, IJCNN, 2023,