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] Dual Graph enhanced Embedding Neural Network for CTR Prediction
    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
  • [22] Power flow forecasts at transmission grid nodes using Graph Neural Networks
    Beinert, Dominik
    Holzhueter, Clara
    Thomas, Josephine M.
    Vogt, Stephan
    ENERGY AND AI, 2023, 14
  • [23] Graph Neural Network based Scene Change Detection Using Scene Graph Embedding with Hybrid Classification Loss
    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
  • [24] Slice-level vulnerability detection model based on graph neural network
    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
  • [25] MultiGLICE: Combining Graph Neural Networks and Program Slicing for Multiclass Software Vulnerability Detection
    de Kraker, Wesley
    Vranken, Harald
    Hommersom, Arjen
    COMPUTERS, 2025, 14 (03)
  • [26] Graph Anomaly Detection With Graph Neural Networks: Current Status and Challenges
    Kim, Hwan
    Lee, Byung Suk
    Shin, Won-Yong
    Lim, Sungsu
    IEEE ACCESS, 2022, 10 : 111820 - 111829
  • [27] Smart Contract Vulnerability Detection Based on Code Graph Embedding Approach
    Zhai, Yiwen
    Yang, Jia
    Zhang, Mingwu
    FRONTIERS IN CYBER SECURITY, FCS 2024, PT I, 2024, 2315 : 317 - 332
  • [28] Efficient Vulnerability Detection for Smart Contracts Using Gated Graph Neural Network
    Zhai, Yiwen
    Yang, Jia
    Zhang, Mingwu
    INFORMATION SECURITY AND PRIVACY, PT III, ACISP 2024, 2024, 14897 : 44 - 63
  • [29] Predicting lncRNA-protein interactions with bipartite graph embedding and deep graph neural networks
    Ma, Yuzhou
    Zhang, Han
    Jin, Chen
    Kang, Chuanze
    FRONTIERS IN GENETICS, 2023, 14
  • [30] An explainable botnet detection model based on lightweight graph neural networks
    He, Guofeng
    Zhu, Jianghua
    Shi, Yinong
    Yan, Ke
    Zheng, Xu
    INTERNATIONAL JOURNAL OF COMPUTATIONAL SCIENCE AND ENGINEERING, 2025, 28 (02) : 219 - 231