Back to Search
Start Over
VulGraB: Graph‐embedding‐based code vulnerability detection with bi‐directional gated graph neural network.
- Source :
- Software: Practice & Experience; Aug2023, Vol. 53 Issue 8, p1631-1658, 28p
- Publication Year :
- 2023
-
Abstract
- Code vulnerabilities can have serious consequences such as system attacks and data leakage, making it crucial to perform code vulnerability detection during the software development phase. Deep learning is an emerging approach for vulnerability detection tasks. Existing deep learning‐based code vulnerability detection methods are usually based on word2vec embedding of linear sequences of source code, followed by code vulnerability detection through RNNs network. However, such methods can only capture the superficial structural or syntactic information of the source code text, which is not suitable for modeling the complex control flow and data flow and miss edge information in the graph structure constructed by the source code, with limited effect of neural network model. To solve the above problems, this article proposes a code vulnerability detection method, named VulGraB, which is based on graph embedding and bidirectional gated graph neural networks. VulGraB uses node2vec to convert the program‐dependent graphs into graph embeddings of the code, which contain rich structure information of the source code, improving the ability of features to express nonlinear information to a certain extent. Then the BiGGNN is used for training, and finally the accuracy of the detection results is evaluated using target program. The bi‐directional gated neural network utilizes a bi‐directional recurrent structure, which is beneficial to global information aggregation. The experimental results show that the accuracy of VulGraB is significantly improved over the baseline models on two datasets, with F1 scores of 85.89% and 97.24% being the highest, demonstrating that VulGraB consistently outperforms other effective vulnerability detection models. [ABSTRACT FROM AUTHOR]
Details
- Language :
- English
- ISSN :
- 00380644
- Volume :
- 53
- Issue :
- 8
- Database :
- Complementary Index
- Journal :
- Software: Practice & Experience
- Publication Type :
- Academic Journal
- Accession number :
- 164763255
- Full Text :
- https://doi.org/10.1002/spe.3205