Vulnerability Detection Using Two-Stage Deep Learning Models
Authors:
- Mohamed Mjd AlhafiMAMohamed Mjd Alhafi
- Mohammad HammadeMHMohammad Hammade
- Khloud Al JalladKJKhloud Al Jallad
Preprint
Abstract
Application security is an essential part of developing modern software, as lots of attacks depend on vulnerabilities in software. The number of attacks is increasing globally due to technological advancements. Companies must include security in every stage of developing, testing, and deploying their software in order to prevent data breaches. There are several methods to detect software vulnerability Non-AI-based such as Static Application Security Testing (SAST) and Dynamic Application Security Testing (DAST). However, these approaches have substantial false-positive and false-negative rates. On the other side, researchers have been interested in developing an AI-based vulnerability detection system employing deep learning models like BERT, BLSTM, etc. In this paper, we proposed a two-stage solution, two deep learning models were proposed for vulnerability detection in C/C++ source codes, the first stage is CNN which detects if the source code contains any vulnerability (binary classification model) and the second stage is CNN-LTSM that classifies this vulnerability into a class of 50 different types of vulnerabilities (multiclass classification model). Experiments were done on SySeVR dataset. Results show an accuracy of 99% for the first and 98% for the second stage.Keywords
All Related Versions
- Version 1, 2023-05-09, ArXiv
- Published version: .
This publication has 9 references indexed in Scilit:
- CVEfixes Tool: Automated Collection of Vulnerabilities and Their Fixes from Open-Source Software2021
- Combining Graph Neural Networks with Expert Knowledge for Smart Contract Vulnerability DetectionIEEE Transactions on Knowledge and Data Engineering, 2021
- Deep Learning Based Vulnerability Detection: Are We There Yet?IEEE Transactions on Software Engineering, 2021
- Security Vulnerability Detection Using Deep Learning Natural Language Processing2021
- SySeVR: A Framework for Using Deep Learning to Detect Software VulnerabilitiesIEEE Transactions on Dependable and Secure Computing, 2021
- A C/C++ Code Vulnerability Dataset with Code Changes and CVE Summaries2020
- Automated Vulnerability Detection in Source Code Using Deep Representation Learning2018
- A Software Assurance Reference Dataset: Thousands of Programs With Known BugsJournal of Research of the National Institute of Standards and Technology, 2018
- A Building Method of Virtual Knowledge Base Based on Ontology Mapping2011