An automatic algorithm for software vulnerability classification based on CNN and GRU

被引:9
|
作者
Wang, Qian [1 ]
Li, Yazhou [2 ]
Wang, Yan [3 ]
Ren, Jiadong [1 ]
机构
[1] Yanshan Univ, Coll Informat Sci & Engn, Comp Virtual Technol & Syst Integrat Lab Hebei Pr, Qinhuangdao 066000, Hebei, Peoples R China
[2] China Mobile Xiongan Informat & Commun Technol Co, Xiongan 071700, Hebei, Peoples R China
[3] Northeastern Univ Qinhuangdao, Ctr Comp, Qinhuangdao, Hebei, Peoples R China
基金
中国国家自然科学基金;
关键词
Neural network; Software security; Vulnerability classification;
D O I
10.1007/s11042-022-12049-1
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
In order to improve the management efficiency of software vulnerability classification, reduce the risk of system being attacked and destroyed, and save the cost for vulnerability repair, this paper proposes an automatic algorithm for Software Vulnerability Classification based on convolutional neural network (CNN) and gate recurrent unit neural network (GRU), called SVC-CG. It has conducted a fusion between the models of CNN and GRU according to their advantages (CNN is good at extracting local vector features of vulnerability text and GRU is good at extracting global features related to the context of vulnerability text). The merger of the features extracted by the complementary models can represent the semantic and grammatical information more accurately. Firstly, the Skip-gram language model based on Word2Vec is used to train and generate the word vector, and the words in each vulnerability text are mapped into the space with limited dimensions to represent the semantic information. Then the CNN is used to extract the local features of the text vector, and the GRU is used to extract the global features related to the text context. We combine two complementary models to construct a SVC-CG neural network algorithm, which can represent semantic and grammatical information more accurately to realize automatic classification of vulnerabilities. The experiment uses the vulnerability data from the national vulnerability database (NVD) to train and evaluate the SVC-CG algorithm. Through experimental comparison and analysis, the SVC-CG algorithm proposed in this paper has a good performance on Macro recall rate, Macro precision rate and Macro F1-score.
引用
收藏
页码:7103 / 7124
页数:22
相关论文
共 50 条
  • [1] An automatic algorithm for software vulnerability classification based on CNN and GRU
    Qian Wang
    Yazhou Li
    Yan Wang
    Jiadong Ren
    [J]. Multimedia Tools and Applications, 2022, 81 : 7103 - 7124
  • [2] Automatic Modulation Recognition Based on CNN and GRU
    Fugang Liu
    Ziwei Zhang
    Ruolin Zhou
    [J]. Tsinghua Science and Technology, 2022, 27 (02) : 422 - 431
  • [3] Automatic modulation recognition based on CNN and GRU
    Liu, Fugang
    Zhang, Ziwei
    Zhou, Ruolin
    [J]. TSINGHUA SCIENCE AND TECHNOLOGY, 2022, 27 (02) : 422 - 431
  • [4] An automatic classification algorithm for software vulnerability based on weighted word vector and fusion neural network
    Wang, Qian
    Gao, Yuying
    Ren, Jiadong
    Zhang, Bing
    [J]. COMPUTERS & SECURITY, 2023, 126
  • [5] An Automatic Software Vulnerability Classification Framework
    Davari, Maryam
    Zulkernine, Mohammad
    Jaafar, Fehmi
    [J]. PROCEEDINGS 2017 INTERNATIONAL CONFERENCE ON SOFTWARE SECURITY AND ASSURANCE (ICSSA), 2017, : 44 - 49
  • [6] Automatic software vulnerability classification by extracting vulnerability triggers
    Sun, Xiaobing
    Li, Lili
    Bo, Lili
    Wu, Xiaoxue
    Wei, Ying
    Li, Bin
    [J]. JOURNAL OF SOFTWARE-EVOLUTION AND PROCESS, 2024, 36 (02)
  • [7] Automatic Classification Method for Software Vulnerability Based on Deep Neural Network
    Huang, Guoyan
    Li, Yazhou
    Wang, Qian
    Ren, Jiadong
    Cheng, Yongqiang
    Zhao, Xiaolin
    [J]. IEEE ACCESS, 2019, 7 : 28291 - 28298
  • [8] A CNN-based automatic vulnerability detection
    Jung Hyun An
    Zhan Wang
    Inwhee Joe
    [J]. EURASIP Journal on Wireless Communications and Networking, 2023
  • [9] A CNN-based automatic vulnerability detection
    An, Jung Hyun
    Wang, Zhan
    Joe, Inwhee
    [J]. EURASIP JOURNAL ON WIRELESS COMMUNICATIONS AND NETWORKING, 2023, 2023 (01)
  • [10] Attention-based LSTM, GRU and CNN for short text classification
    Yu, Shujuan
    Liu, Danlei
    Zhu, Wenfeng
    Zhang, Yun
    Zhao, Shengmei
    [J]. JOURNAL OF INTELLIGENT & FUZZY SYSTEMS, 2020, 39 (01) : 333 - 340