A Source Code Vulnerability Detection Method Based on Adaptive Graph Neural Networks

Chen Liang,Qiang Wei,Zirui Jiang,Yisen Wang,Jiang Du
DOI: https://doi.org/10.1145/3691621.3694950
2024-01-01
Abstract:This paper proposes a mobile application vulnerability detection method based on Code Property Graphs (CPG) and adaptive graph neural networks. The method first converts source code into CPGs, then uses CodeBERT to vectorize CPG nodes. Subsequently, high-level graph features are extracted through graph centrality analysis, and an adaptive graph neural network model combining Transformer's adaptive attention mechanism and Graph Convolutional Networks (GCN) is designed for feature learning and vulnerability detection. Experimental results show that this method achieves an F1 score of 82.9% on real vulnerability datasets, an improvement of 13.6%-49.9% compared to existing methods. Ablation experiments further validate the effectiveness of each key component. This research provides new insights and effective methods based on deep learning for mobile application security, demonstrating high application value and practical significance.
What problem does this paper attempt to address?