Towards Making Deep Learning-based Vulnerability Detectors Robust

Zhen Li, Jing Tang, Deqing Zou, Qian Chen, Shouhuai Xu +3 more
8/2/2021
cs.CRcs.LG

Official code: ZigZagframework/zigzag_framework (6 stars, Java, last commit 2022-07-29).

Abstract

Automatically detecting software vulnerabilities in source code is an important problem that has attracted much attention. In particular, deep learning-based vulnerability detectors, or DL-based detectors, are attractive because they do not need human experts to define features or patterns of vulnerabilities.

Show full abstract

However, such detectors' robustness is unclear. In this paper, we initiate the study in this aspect by demonstrating that DL-based detectors are not robust against simple code transformations, dubbed attacks in this paper, as these transformations may be leveraged for malicious purposes. As a first step towards making DL-based detectors robust against such attacks, we propose an innovative framework, dubbed ZigZag, which is centered at (i) decoupling feature learning and classifier learning and (ii) using a ZigZag-style strategy to iteratively refine them until they converge to robust features and robust classifiers. Experimental results show that the ZigZag framework can substantially improve the robustness of DL-based detectors.

View on arXivView PDF

Code Implementations(1)

A ZigZag framework for deep learning-based vulnerability detectors

60Java, PythonJun 16, 20204 years ago

Similar Papers

Cite this paper

@article{li2021towards,
  title  = {Towards Making Deep Learning-based Vulnerability Detectors Robust},
  author = {Zhen Li and Jing Tang and Deqing Zou and Qian Chen and Shouhuai Xu and Chao Zhang and Yichen Li and Hai Jin},
  year   = {2021},
  eprint = {2108.00669},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2108.00669}
}

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/2108.00669.svg)](https://codeofpaper.com/paper/2108.00669)

Discussion