ReGVD: Revisiting Graph Neural Networks for Vulnerability Detection

被引:0
|
作者
Van-Anh Nguyen [1 ]
Dai Quoc Nguyen [2 ]
Van Nguyen [3 ]
Trung Le [3 ]
Quan Hung Tran [4 ]
Dinh Phung [3 ]
机构
[1] VNU Univ Sci, Hanoi, Vietnam
[2] Oracle Labs, Brisbane, Qld, Australia
[3] Monash Univ, Clayton, Vic, Australia
[4] Adobe Res, San Jose, CA USA
来源
2022 ACM/IEEE 44TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING: COMPANION PROCEEDINGS (ICSE-COMPANION 2022) | 2022年
关键词
Graph Neural Networks; Vulnerability Detection; Security; Text Classification;
D O I
10.1145/3510454.3516865
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Identifying vulnerabilities in the source code is essential to protect the software systems from cyber security attacks. It, however, is also a challenging step that requires specialized expertise in security and code representation. To this end, we aim to develop a general, practical, and programming language-independent model capable of running on various source codes and libraries without difficulty. Therefore, we consider vulnerability detection as an inductive text classification problem and propose ReGVD, a simple yet effective graph neural network-based model for the problem. In particular, ReGVD views each raw source code as a flat sequence of tokens to build a graph, wherein node features are initialized by only the token embedding layer of a pre-trained programming language (PL) model. ReGVD then leverages residual connection among GNN layers and examines a mixture of graph-level sum and max poolings to return a graph embedding for the source code. ReGVD outperforms the existing state-of-the-art models and obtains the highest accuracy on the real-world benchmark dataset from CodeXGLUE for vulnerability detection. Our code is available at: https://github.com/daiquocnguyen/GNN-ReGVD.
引用
收藏
页码:178 / 182
页数:5
相关论文
共 50 条
  • [1] 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
  • [2] Comparison of Program Representations on Vulnerability Detection with Graph Neural Networks
    Choi Y.
    Kwon Y.-W.
    IEIE Transactions on Smart Processing and Computing, 2021, 10 (06): : 477 - 482
  • [3] 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
  • [4] Revisiting Heterophily For Graph Neural Networks
    Luan, Sitao
    Hua, Chenqing
    Lu, Qincheng
    Zhu, Jiaqi
    Zhao, Mingde
    Zhang, Shuyuan
    Chang, Xiao-Wen
    Precup, Doina
    ADVANCES IN NEURAL INFORMATION PROCESSING SYSTEMS 35 (NEURIPS 2022), 2022,
  • [5] Revisiting Graph Neural Networks: Graph Filtering Perspective
    Hoang, N. T.
    Maehara, Takanori
    Murata, Tsuyoshi
    2020 25TH INTERNATIONAL CONFERENCE ON PATTERN RECOGNITION (ICPR), 2021, : 8376 - 8383
  • [6] 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
  • [7] A dual graph neural networks model using sequence embedding as graph nodes for vulnerability detection
    Ling, Miaogui
    Tang, Mingwei
    Bian, Deng
    Lv, Shixuan
    Tang, Qi
    INFORMATION AND SOFTWARE TECHNOLOGY, 2025, 177
  • [8] Revisiting Adversarial Attacks on Graph Neural Networks for Graph Classification
    Wang, Xin
    Chang, Heng
    Xie, Beini
    Bian, Tian
    Zhou, Shiji
    Wang, Daixin
    Zhang, Zhiqiang
    Zhu, Wenwu
    IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING, 2024, 36 (05) : 2166 - 2178
  • [9] Combining Graph Neural Networks With Expert Knowledge for Smart Contract Vulnerability Detection
    Liu, Zhenguang
    Qian, Peng
    Wang, Xiaoyang
    Zhuang, Yuan
    Qiu, Lin
    Wang, Xun
    IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING, 2023, 35 (02) : 1296 - 1310
  • [10] 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