A deep learning-based approach for software vulnerability detection using code metrics

被引:9
|
作者
Subhan, Fazli [1 ]
Wu, Xiaoxue [1 ]
Bo, Lili [1 ]
Sun, Xiaobing [1 ]
Rahman, Muhammad [1 ]
机构
[1] Yangzhou Univ Jiangsu, Coll Informat Engn, Yangzhou 225000, Jiangsu, Peoples R China
基金
中国国家自然科学基金;
关键词
PREDICTION;
D O I
10.1049/sfw2.12066
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Vulnerabilities can have devastating effects on information security, affecting the economy, social stability, and national security. The idea of automatic vulnerability detection has always attracted researchers. From traditional manual vulnerability mining techniques to static and dynamic detection, all rely on human experts for feature definition. The rapid development of machine learning and deep learning has alleviated the tedious task of manually defining features by human experts while reducing the lack of objectivity caused by human subjective awareness. However, it is still necessary to find an objective characterisation method to define the features of vulnerabilities. Therefore, the authors use code metrics for code characterisation, sequences of metrics representing code. To use code metrics for vulnerability detection, a deep learning-based vulnerability detection approach that uses a composite neural network of convolutional neural network (CNN) with long short-term memory (LSTM) is proposed. The authors conduct experiments independently using the proposed approach for CNN-LSTM CNN, LSTM, gated recurrent units (GRU), and deep neural network (DNN). The authors' experimental results show that CNN-LSTM has a high precision of 92%, a recall of 99%, and an accuracy of 91%. In terms of the F1-score, it is 95%, compared to previous research results, which indicated an improvement of 18%. Compared to other deep learning-based vulnerability detection models, the authors' proposed model produced a lower false-positive rate, a lower miss rate, and improved accuracy.
引用
收藏
页码:516 / 526
页数:11
相关论文
共 50 条
  • [1] Deep Learning for Software Vulnerabilities Detection Using Code Metrics
    Zagane, Mohammed
    Abdi, Mustapha Kamel
    Alenezi, Mamdouh
    [J]. IEEE ACCESS, 2020, 8 : 74562 - 74570
  • [2] An Empirical Study on Vulnerability Detection for Source Code Software based on Deep Learning
    Lin, Wei
    Cai, Saihua
    [J]. 2021 21ST INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY AND SECURITY COMPANION (QRS-C 2021), 2021, : 1159 - 1160
  • [3] DeKeDVer: A deep learning-based multi-type software vulnerability classification framework using vulnerability description and source code
    Dong, Yukun
    Tang, Yeer
    Cheng, Xiaotong
    Yang, Yufei
    [J]. INFORMATION AND SOFTWARE TECHNOLOGY, 2023, 163
  • [4] Open Science in Software Engineering: A Study on Deep Learning-Based Vulnerability Detection
    Nong, Yu
    Sharma, Rainy
    Hamou-Lhadj, Abdelwahab
    Luo, Xiapu
    Cai, Haipeng
    [J]. IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2023, 49 (04) : 1983 - 2005
  • [5] Vulnerable Code Detection Using Software Metrics and Machine Learning
    Medeiros, Nadia
    Ivaki, Naghmeh
    Costa, Pedro
    Vieira, Marco
    [J]. IEEE ACCESS, 2020, 8 : 219174 - 219198
  • [6] Research and Progress on Learning-Based Source Code Vulnerability Detection
    Su, Xiao-Hong
    Zheng, Wei-Ning
    Jiang, Yuan
    Wei, Hong-Wei
    Wan, Jia-Yuan
    Wei, Zi-Yue
    [J]. Jisuanji Xuebao/Chinese Journal of Computers, 2024, 47 (02): : 337 - 374
  • [7] VulDeePecker: A Deep Learning-Based System for Vulnerability Detection
    Li, Zhen
    Zou, Deqing
    Xu, Shouhuai
    Ou, Xinyu
    Jin, Hai
    Wang, Sujuan
    Deng, Zhijun
    Zhong, Yuyi
    [J]. 25TH ANNUAL NETWORK AND DISTRIBUTED SYSTEM SECURITY SYMPOSIUM (NDSS 2018), 2018,
  • [8] An empirical evaluation of deep learning-based source code vulnerability detection: Representation versus models
    Semasaba, Abubakar Omari Abdallah
    Zheng, Wei
    Wu, Xiaoxue
    Agyemang, Samuel Akwasi
    Liu, Tao
    Ge, Yuan
    [J]. JOURNAL OF SOFTWARE-EVOLUTION AND PROCESS, 2023, 35 (11)
  • [9] Literature survey of deep learning-based vulnerability analysis on source code
    Semasaba, Abubakar Omari Abdallah
    Zheng, Wei
    Wu, Xiaoxue
    Agyemang, Samuel Akwasi
    [J]. IET SOFTWARE, 2020, 14 (06) : 654 - 664
  • [10] Interpretation of Learning-Based Automatic Source Code Vulnerability Detection Model Using LIME
    Tang, Gaigai
    Zhang, Long
    Yang, Feng
    Meng, Lianxiao
    Cao, Weipeng
    Qiu, Meikang
    Ren, Shuangyin
    Yang, Lin
    Wang, Huiqiang
    [J]. KNOWLEDGE SCIENCE, ENGINEERING AND MANAGEMENT, PT III, 2021, 12817 : 275 - 286