PatchRNN: A Deep Learning-Based System for Security Patch Identification

Xinda Wang, Shu Wang, Pengbin Feng, Kun Sun, Sushil Jajodia +2 more
8/7/2021
cs.CRcs.SE

Official code: shuwang127/PatchRNN-demo (5 stars, Python, Apache-2.0, last commit 2023-01-12).

Abstract

With the increasing usage of open-source software (OSS) components, vulnerabilities embedded within them are propagated to a huge number of underlying applications. In practice, the timely application of security patches in downstream software is challenging.

Show full abstract

The main reason is that such patches do not explicitly indicate their security impacts in the documentation, which would be difficult to recognize for software maintainers and users. However, attackers can still identify these "secret" security patches by analyzing the source code and generate corresponding exploits to compromise not only unpatched versions of the current software, but also other similar software packages that may contain the same vulnerability due to code cloning or similar design/implementation logic. Therefore, it is critical to identify these secret security patches to enable timely fixes. To this end, we propose a deep learning-based defense system called PatchRNN to automatically identify secret security patches in OSS. Besides considering descriptive keywords in the commit message (i.e., at the text level), we leverage both syntactic and semantic features at the source-code level. To evaluate the performance of our system, we apply it on a large-scale real-world patch dataset and conduct a case study on a popular open-source web server software - NGINX. Experimental results show that the PatchRNN can successfully detect secret security patches with a low false positive rate.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

A demo program of security patch identification using the RNN model, which is demonstrated in the paper "PatchRNN: A Deep Learning-Based System for Security Patch Identification". This paper appears in the 2021 IEEE/AFCEA Military Communications Conference (MILCOM 2021), San Diego, USA, November 29–December 2, 2021.

53PythonFeb 4, 20213 years agoApache-2.0
machine-learningngnixpython3recurrent-neural-networkssecurity-patch

Similar Papers

Cite this paper

@article{wang2021patchrnn,
  title  = {PatchRNN: A Deep Learning-Based System for Security Patch Identification},
  author = {Xinda Wang and Shu Wang and Pengbin Feng and Kun Sun and Sushil Jajodia and Sanae Benchaaboun and Frank Geck},
  year   = {2021},
  eprint = {2108.03358},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2108.03358}
}

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

Discussion