Automated Software Vulnerability Detection Based on Hybrid Neural Network

被引:24
|
作者
Li, Xin [1 ,2 ]
Wang, Lu [1 ]
Xin, Yang [1 ,2 ]
Yang, Yixian [1 ,2 ]
Tang, Qifeng [3 ]
Chen, Yuling [2 ]
机构
[1] Beijing Univ Posts & Telecommun, Sch Cyberspace Secur, Beijing 100876, Peoples R China
[2] Guizhou Univ, Coll Comp Sci & Technol, State Key Lab Publ Big Data, Guiyang 550025, Peoples R China
[3] Shanghai Data Exchange Corp, Natl Engn Lab Big Data Distribut & Exchange Techn, Shanghai 200436, Peoples R China
来源
APPLIED SCIENCES-BASEL | 2021年 / 11卷 / 07期
关键词
cyber security; vulnerability detection; program slice; static analysis;
D O I
10.3390/app11073201
中图分类号
O6 [化学];
学科分类号
0703 ;
摘要
Feature Application This study can be applied to software vulnerability detection. Vulnerabilities threaten the security of information systems. It is crucial to detect and patch vulnerabilities before attacks happen. However, existing vulnerability detection methods suffer from long-term dependency, out of vocabulary, bias towards global features or local features, and coarse detection granularity. This paper proposes an automatic vulnerability detection framework in source code based on a hybrid neural network. First, the inputs are transformed into an intermediate representation with explicit structure information using lower level virtual machine intermediate representation (LLVM IR) and backward program slicing. After the transformation, the size of samples and the size of vocabulary are significantly reduced. A hybrid neural network model is then applied to extract high-level features of vulnerability, which learns features both from convolutional neural networks (CNNs) and recurrent neural networks (RNNs). The former is applied to learn local vulnerability features, such as buffer size. Furthermore, the latter is utilized to learn global features, such as data dependency. The extracted features are made up of concatenated outputs of CNN and RNN. Experiments are performed to validate our vulnerability detection method. The results show that our proposed method achieves excellent results with F1-scores of 98.6% and accuracy of 99.0% on the SARD dataset. It outperforms state-of-the-art methods.
引用
收藏
页数:16
相关论文
共 50 条
  • [1] Convolutional Neural Network for Software Vulnerability Detection
    Yang, Kaixi
    Miller, Paul
    Martinez-del-Rincon, Jesus
    [J]. 2022 CYBER RESEARCH CONFERENCE - IRELAND (CYBER-RCI), 2022, : 83 - 86
  • [2] A new method of software vulnerability detection based on a quantum neural network
    Zhou, Xin
    Pang, Jianmin
    Yue, Feng
    Liu, Fudong
    Guo, Jiayu
    Liu, Wenfu
    Song, Zhihui
    Shu, Guoqiang
    Xia, Bing
    Shan, Zheng
    [J]. SCIENTIFIC REPORTS, 2022, 12 (01)
  • [3] A new method of software vulnerability detection based on a quantum neural network
    Xin Zhou
    Jianmin Pang
    Feng Yue
    Fudong Liu
    Jiayu Guo
    Wenfu Liu
    Zhihui Song
    Guoqiang Shu
    Bing Xia
    Zheng Shan
    [J]. Scientific Reports, 12
  • [4] The application of neural network for software vulnerability detection: a review
    Zhu, Yuhui
    Lin, Guanjun
    Song, Lipeng
    Zhang, Jun
    [J]. NEURAL COMPUTING & APPLICATIONS, 2023, 35 (02): : 1279 - 1301
  • [5] The application of neural network for software vulnerability detection: a review
    Yuhui Zhu
    Guanjun Lin
    Lipeng Song
    Jun Zhang
    [J]. Neural Computing and Applications, 2023, 35 : 1279 - 1301
  • [6] BHMVD: Binary Code-based Hybrid Neural Network for Multiclass Vulnerability Detection
    Cui, Ningning
    Chen, Liwei
    Du, Gewangzi
    Wu, Tongshuai
    Zhu, Chenguang
    Shi, Gang
    [J]. 2022 IEEE INTL CONF ON PARALLEL & DISTRIBUTED PROCESSING WITH APPLICATIONS, BIG DATA & CLOUD COMPUTING, SUSTAINABLE COMPUTING & COMMUNICATIONS, SOCIAL COMPUTING & NETWORKING, ISPA/BDCLOUD/SOCIALCOM/SUSTAINCOM, 2022, : 238 - 245
  • [7] Vulnerability Identification and Detection of Different Software Codes with a Graph Neural Network
    Zhang, Lei
    Liu, Zehui
    [J]. International Journal of Network Security, 2023, 25 (04) : 571 - 575
  • [8] A comparative study of neural network techniques for automatic software vulnerability detection
    Tang, Gaigai
    Meng, Lianxiao
    Wang, Huiqiang
    Ren, Shuangyin
    Wang, Qiang
    Yang, Lin
    Cao, Weipeng
    [J]. 2020 INTERNATIONAL SYMPOSIUM ON THEORETICAL ASPECTS OF SOFTWARE ENGINEERING (TASE 2020), 2020, : 1 - 8
  • [9] A Software Vulnerability Detection Method Based on Complex Network Community
    Shan, Chun
    Gong, Yinghui
    Xiong, Ling
    Liao, Shuyan
    Wang, Yuyang
    [J]. Security and Communication Networks, 2022, 2022
  • [10] A Software Vulnerability Detection Method Based on Complex Network Community
    Shan, Chun
    Gong, Yinghui
    Xiong, Ling
    Liao, Shuyan
    Wang, Yuyang
    [J]. SECURITY AND COMMUNICATION NETWORKS, 2022, 2022