POSTER: PatchGen: Towards Automated Patch Detection and Generation for 1-Day Vulnerabilities

Tianyue Luo, Chen Ni, Qing Han, Mutian Yang, JingZheng Wu, Yanjun WuCCS 2015

Abstract

A large fraction of source code in open-source systems such as Linux contain 1-day vulnerabilities. The command "patch" is used to apply the patches to source codes, and returns feedback information automatically. Unfortunately, this operation is not always successful when patching directly, and two typical error scenarios may occur as follows. 1. The patch may be applied in wrong place, meaning the fix location should be adjusted in patch. 2. The patch may be applied repeatedly, meaning a verification should be executed before applying. To resolve the above scenarios, we propose PatchGen, a new system to quickly detect and generate patches for 1-day vulnerabilities in OS distributions. Comparing with the previous works on 1-day vulnerabilities detection, PatchGen is able to solve the above two error scenarios and use a quick, syntax-based approach that scales to OS distribution-sized code base no matter the code written in what types of language. We implement the PatchGen prototype, and evaluate it by checking all codes from packages in Ubuntu Maverick/Oneiric, all SourceForge C and C++ projects, and the Linux kernel source. Specifically, it takes less than 10 minutes for PatcheGen to detect 175 1-day vulnerabilities and generate 140 patches for Linux Kernel. All of the results have been manually confirmed and tested in the real systems.
BibTeX
@inproceedings{luo2015poster,
  author = {Tianyue Luo and Chen Ni and Qing Han and Mutian Yang and JingZheng Wu and Yanjun Wu},
  title = {{POSTER: PatchGen: Towards Automated Patch Detection and Generation for 1-Day Vulnerabilities}},
  booktitle = {CCS},
  year = {2015},
  url = {https://openreview.net/forum?id=vCYFNqthX8},
}

Loading related content...

Figure