Guard2Vul: Vulnerability Detection viaGradient-based Adversarial TrainingEnhanced Graph Learning
Preprint
- 10 January 2024
- preprint
- Published by Springer Nature in Research Square
Abstract
Modern software security is challenged by vulnerabilities, which canlead to severe consequences, including loss of information, property, andprivacy disclosure. Recently, graph-based deep learning methods havebeen proven as a promising solution for vulnerability detection at func-tional granularity. However, previous studies still face challenges, suchas structural imbalances, complex connections in abstract syntax treesof functions, and insufficient training data. In this study, we proposeGuard2Vul, which combines a graph neural network with a residualnetwork to jointly capture deeper semantic and structural features,specifically, source code and node dependencies. Moreover, we utilizeGraphSMOTE and DGD, a dropout-enhanced gradient adversarial train-ing technique, to conduct data augmentation and automatically improvenormalized stability. To demonstrate the effectiveness of Guard2Vul, we evaluate its performance on four experimental subjects by different pro-gramming languages, such as C/C++ and Java. To show the competitive-ness of Guard2Vul, we consider five Deep Learning-based vulnerabilitydetection approaches (i.e., TokenCNN, Sysevr, VulDeePecker, Devign,and Reveal) as baselines. The results indicate that Guard2Vul out-performs these baselines, achieving at least 13.4%, 28.9%, 6.2%, and12.1% higher F1-measure on four experimental subjects. Finally, weperform ablation experiments to demonstrate the effectiveness of ourcustomized components, namely enhanced graph representation learningand the gradient-based adversarial training method, in Guard2Vul.Keywords
All Related Versions
This publication has 19 references indexed in Scilit:
- Vulnerability Detection with Graph Simplification and Enhanced Graph Representation Learning2023
- An Empirical Study of Deep Learning Models for Vulnerability Detection2023
- GGNN: Graph-Based GPU Nearest Neighbor SearchIEEE Transactions on Big Data, 2022
- BGNN4VD: Constructing Bidirectional Graph Neural-Network for Vulnerability DetectionInformation and Software Technology, 2021
- The rise of software vulnerability: Taxonomy of software vulnerabilities detection and machine learning approachesJournal of Network and Computer Applications, 2021
- Neural software vulnerability analysis using rich intermediate graph representations of programsInformation Sciences, 2021
- Vulnerable Code Detection Using Software Metrics and Machine LearningIEEE Access, 2020
- Software Vulnerability Detection Using Deep Neural Networks: A SurveyProceedings of the IEEE, 2020
- Deep Learning for Software Vulnerabilities Detection Using Code MetricsIEEE Access, 2020
- A new role for ‘the public’? Exploring cyber security controversies in the case of WannaCryIntelligence and National Security, 2019