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 条
  • [1] Smart Contract Vulnerability Detection Using Graph Neural Networks
    Zhuang, Yuan
    Liu, Zhenguang
    Qian, Peng
    Liu, Qi
    Wang, Xiang
    He, Qinming
    PROCEEDINGS OF THE TWENTY-NINTH INTERNATIONAL JOINT CONFERENCE ON ARTIFICIAL INTELLIGENCE, 2020, : 3283 - 3290
  • [2] Co-Embedding of Nodes and Edges With Graph Neural Networks
    Jiang, Xiaodong
    Zhu, Ronghang
    Ji, Pengsheng
    Li, Sheng
    IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE, 2023, 45 (06) : 7075 - 7086
  • [3] Graph Neural Networks for Vulnerability Detection: A Counterfactual Explanation
    Chu, Zhaoyang
    Wan, Yao
    Li, Qian
    Wu, Yang
    Zhang, Hongyu
    Sui, Yulei
    Xu, Guandong
    Jin, Hai
    PROCEEDINGS OF THE 33RD ACM SIGSOFT INTERNATIONAL SYMPOSIUM ON SOFTWARE TESTING AND ANALYSIS, ISSTA 2024, 2024, : 389 - 401
  • [4] ReGVD: Revisiting Graph Neural Networks for Vulnerability Detection
    Van-Anh Nguyen
    Dai Quoc Nguyen
    Van Nguyen
    Trung Le
    Quan Hung Tran
    Dinh Phung
    2022 ACM/IEEE 44TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING: COMPANION PROCEEDINGS (ICSE-COMPANION 2022), 2022, : 178 - 182
  • [5] Influence maximization in social networks using graph embedding and graph neural network
    Kumar, Sanjay
    Mallik, Abhishek
    Khetarpal, Anavi
    Panda, B. S.
    INFORMATION SCIENCES, 2022, 607 : 1617 - 1636
  • [6] Graph-to-Sequence Learning using Gated Graph Neural Networks
    Beck, Daniel
    Haffari, Gholamreza
    Cohn, Trevor
    PROCEEDINGS OF THE 56TH ANNUAL MEETING OF THE ASSOCIATION FOR COMPUTATIONAL LINGUISTICS (ACL), VOL 1, 2018, : 273 - 283
  • [7] LineVD: Statement-level Vulnerability Detection using Graph Neural Networks
    Hin, David
    Kan, Andrey
    Chen, Huaming
    Babar, M. Ali
    2022 MINING SOFTWARE REPOSITORIES CONFERENCE (MSR 2022), 2022, : 596 - 607
  • [8] Combine sliced joint graph with graph neural networks for smart contract vulnerability detection?
    Cai, Jie
    Li, Bin
    Zhang, Jiale
    Sun, Xiaobing
    Chen, Bing
    JOURNAL OF SYSTEMS AND SOFTWARE, 2023, 195
  • [9] Co-embedding of edges and nodes with deep graph convolutional neural networks
    Yuchen Zhou
    Hongtao Huo
    Zhiwen Hou
    Lingbin Bu
    Jingyi Mao
    Yifan Wang
    Xiaojun Lv
    Fanliang Bu
    Scientific Reports, 13
  • [10] A Novel Embedding Model for Knowledge Graph Entity Alignment Based on Graph Neural Networks
    Li, Hongchan
    Han, Zhaoyang
    Zhu, Haodong
    Qian, Yuchao
    APPLIED SCIENCES-BASEL, 2023, 13 (10):