A Hierarchical Deep Neural Network for Detecting Lines of Codes with Vulnerabilities

Arash Mahyari
11/15/2022
cs.CRcs.AIcs.LG

Official code: arashmahyari/PLP (9 stars, Python, MIT, last commit 2022-08-09).

Abstract

Software vulnerabilities, caused by unintentional flaws in source codes, are the main root cause of cyberattacks. Source code static analysis has been used extensively to detect the unintentional defects, i.e. vulnerabilities, introduced into the source codes by software developers.

Show full abstract

In this paper, we propose a deep learning approach to detect vulnerabilities from their LLVM IR representations based on the techniques that have been used in natural language processing. The proposed approach uses a hierarchical process to first identify source codes with vulnerabilities, and then it identifies the lines of codes that contribute to the vulnerability within the detected source codes. This proposed two-step approach reduces the false alarm of detecting vulnerable lines. Our extensive experiment on real-world and synthetic codes collected in NVD and SARD shows high accuracy (about 98\%) in detecting source code vulnerabilities.

View on arXivView PDF

Code Implementations(1)

arashmahyari/PLPOfficial100%
MIT

Programming Language Processing: An NLP-based Deep Learning Approach to Detect Vulnerabilities

90PythonSep 30, 20214 years agoMIT

Similar Papers

Cite this paper

@article{mahyari2022hierarchical,
  title  = {A Hierarchical Deep Neural Network for Detecting Lines of Codes with Vulnerabilities},
  author = {Arash Mahyari},
  year   = {2022},
  eprint = {2211.08517},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.08517}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2211.08517.svg)](https://codeofpaper.com/paper/2211.08517)

Discussion