Vulnerability Detection with Graph Simplification and Enhanced Graph Representation Learning

Type: Article

Publication Date: 2023-05-01

Citations: 23

DOI: https://doi.org/10.1109/icse48619.2023.00191

Download PDF

Abstract

Prior studies have demonstrated the effectiveness of Deep Learning (DL) in automated software vulnerability detection. Graph Neural Networks (GNNs) have proven effective in learning the graph representations of source code and are commonly adopted by existing DL-based vulnerability detection methods. However, the existing methods are still limited by the fact that GNNs are essentially difficult to handle the connections between long-distance nodes in a code structure graph. Besides, they do not well exploit the multiple types of edges in a code structure graph (such as edges representing data flow and control flow). Consequently, despite achieving state-of-the-art performance, the existing GNN-based methods tend to fail to capture global information (i.e., long-range dependencies among nodes) of code graphs. To mitigate these issues, in this paper, we propose a novel vulnerability detection framework with grAph siMplification and enhanced graph rePresentation LEarning, named AMPLE. AMPLE mainly contains two parts: 1) graph simplification, which aims at reducing the distances between nodes by shrinking the node sizes of code structure graphs; 2) enhanced graph representation learning, which involves one edge-aware graph convolutional network module for fusing heterogeneous edge information into node representations and one kernel-scaled representation module for well capturing the relations between distant graph nodes. Experiments on three public benchmark datasets show that AMPLE outperforms the state-of-the-art methods by 0.39%-35.32% and 7.64%-199.81% with respect to the accuracy and F1 score metrics, respectively. The results demonstrate the effectiveness of AMPLE in learning global information of code graphs for vulnerability detection.

Locations

  • arXiv (Cornell University) - View - PDF

Similar Works

Action Title Year Authors
+ Vulnerability Detection with Graph Simplification and Enhanced Graph Representation Learning 2023 Xin-Cheng Wen
Yupan Chen
Cuiyun Gao
Hongyu Zhang
Jie M. Zhang
Qing Liao
+ PDF Chat Keep It Simple: Towards Accurate Vulnerability Detection for Large Code Graphs 2024 Xin Peng
Shangwen Wang
Yihao Qin
Bo Lin
Liqian Chen
Xiaoguang Mao
+ Devign: Effective Vulnerability Identification by Learning Comprehensive Program Semantics via Graph Neural Networks 2019 Yaqin Zhou
Shangqing Liu
Jingkai Siow
Xiaoning Du
Yang Liu
+ Devign: Effective Vulnerability Identification by Learning Comprehensive Program Semantics via Graph Neural Networks 2019 Yaqin Zhou
Shangqing Liu
Jing Kai Siow
Xiaoning Du
Yang Liu
+ DeepVulSeeker: A Novel Vulnerability Identification Framework via Code Graph Structure and Pre-training Mechanism 2022 Jin Wang
Hui Xiao
Shuwen Zhong
Yin Xiao
+ Meta-Path Based Attentional Graph Learning Model for Vulnerability Detection 2022 Xin-Cheng Wen
Cuiyun Gao
Jiaxin Ye
Zhihong Tian
Yan Jia
Xuan Wang
+ PDF Chat Source Code Vulnerability Detection: Combining Code Language Models and Code Property Graphs 2024 Ruitong Liu
Yanbin Wang
Haitao Xu
Bin Liu
Sun Jian-guo
Zhenhao Guo
Wenrui Ma
+ Vignat: Vulnerability identification by learning code semantics via graph attention networks 2023 Shuo Liu
Gail E. Kaiser
+ Sequential Graph Neural Networks for Source Code Vulnerability Identification 2023 Ammar Ahmed
Anwar Said
Mudassir Shabbir
Xenofon Koutsoukos
+ XGV-BERT: Leveraging Contextualized Language Model and Graph Neural Network for Efficient Software Vulnerability Detection 2023 Vu Le Anh Quan
Chau Thuan Phat
Kiet Van Nguyen
Phan The Duy
Van-Hau Pham
+ DSHGT: Dual-Supervisors Heterogeneous Graph Transformer -- A pioneer study of using heterogeneous graph learning for detecting software vulnerabilities 2023 Tiehua Zhang
Rui Xu
Jianping Zhang
Yuzhe Tian
Xin Chen
Huang Xiao-wei
Jun Yin
Xi Zheng
+ GraphEye: A Novel Solution for Detecting Vulnerable Functions Based on Graph Attention Network 2022 Zhou Li
Minhuan Huang
Yujun Li
Yuanping Nie
Jin Li
Yiwei Liu
+ LIVABLE: Exploring Long-Tailed Classification of Software Vulnerability Types 2023 Xin-Cheng Wen
Cuiyun Gao
Feng Luo
Haoyu Wang
Ge Li
Qing Liao
+ PDF Chat GraphEye: A Novel Solution for Detecting Vulnerable Functions Based on Graph Attention Network 2021 Zhou Li
Minhuan Huang
Yujun Li
Yuanping Nie
Jin Li
Yiwei Liu
+ PDF Chat ReGVD: Revisiting Graph Neural Networks for Vulnerability Detection 2022 Nguyễn Thị Vân Anh
Dai Quoc Nguyen
Van Nguyen
Trung Le
Quan Hung Tran
Dinh Phung
+ ReGVD: Revisiting Graph Neural Networks for Vulnerability Detection 2021 Van Anh Nguyen
Dai Quoc Nguyen
Van Nguyen
Trung Le
Quan Hung Tran
Dinh Phung
+ Enhancing Code Vulnerability Detection via Vulnerability-Preserving Data Augmentation 2024 Shangqing Liu
Wei Ma
Jian Wang
Xiaofei Xie
Ruitao Feng
Yang Liu
+ Software Vulnerability Detection via Deep Learning over Disaggregated Code Graph Representation 2021 Yufan Zhuang
Sahil Suneja
Veronika Thost
Giacomo Domeniconi
Alessandro Morari
Jim Laredo
+ PDF Chat Enhancing Code Vulnerability Detection via Vulnerability-Preserving Data Augmentation 2024 Shangqing Liu
Wei Ma
Jian Wang
Xiaofei Xie
Ruitao Feng
Yang Liu
+ VulSPG: Vulnerability detection based on slice property graph representation learning 2021 Weining Zheng
Yuan Jiang
Xiaohong Su