Full-speed Fuzzing: Reducing Fuzzing Overhead through Coverage-guided Tracing

Stefan Nagy, Matthew Hicks
12/31/2018
167 citations
cs.CRcs.SE

Official code: FoRTE-Research/UnTracer-AFL (125 stars, C, last commit 2022-07-07). 2 more implementations below.

Abstract

Of coverage-guided fuzzing's three main components: (1) testcase generation, (2) code coverage tracing, and (3) crash triage, code coverage tracing is a dominant source of overhead. Coverage-guided fuzzers trace every testcase's code coverage through either static or dynamic binary instrumentation, or more recently, using hardware support.

Show full abstract

Unfortunately, tracing all testcases incurs significant performance penalties---even when the overwhelming majority of testcases and their coverage information are discarded because they do not increase code coverage. To eliminate needless tracing by coverage-guided fuzzers, we introduce the notion of coverage-guided tracing. Coverage-guided tracing leverages two observations: (1) only a fraction of generated testcases increase coverage, and thus require tracing; and (2) coverage-increasing testcases become less frequent over time. Coverage-guided tracing works by encoding the current frontier of code coverage in the target binary so that it self-reports when a testcase produces new coverage---without tracing. This acts as a filter for tracing; restricting the expense of tracing to only coverage-increasing testcases. Thus, coverage-guided tracing chooses to tradeoff increased coverage-increasing-testcase handling time for the ability to execute testcases initially at native speed. To show the potential of coverage-guided tracing, we create an implementation based on the static binary instrumentor Dyninst called UnTracer. We evaluate UnTracer using eight real-world binaries commonly used by the fuzzing community. Experiments show that after only an hour of fuzzing, UnTracer's average overhead is below 1%, and after 24-hours of fuzzing, UnTracer approaches 0% overhead, while tracing every testcase with popular white- and black-box-binary tracers AFL-Clang, AFL-QEMU, and AFL-Dyninst incurs overheads of 36%, 612%, and 518%, respectively.

View on arXivView PDF

Code Implementations(3)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
FoRTE-Research/UnTracer-AFLOfficial125C–2022-07-07
FoRTE-Research/FoRTE-FuzzBenchOfficial56ShellMIT2019-03-12
FoRTE-Research/afl-fidOfficial14C–2020-05-05

An AFL implementation with UnTracer (our coverage-guided tracer)

12527C, C++Nov 3, 20184 years agoNOASSERTION
MIT

FoRTE-Research's fuzzing benchmarks

5614Shell, PythonJun 8, 20187 years agoMIT

A suite of AFL modifications for fixed input dataset experiments

147C, C++Jan 24, 20186 years agoNOASSERTION

Similar Papers

Cite this paper

@article{nagy2018fullspeed,
  title  = {Full-speed Fuzzing: Reducing Fuzzing Overhead through Coverage-guided Tracing},
  author = {Stefan Nagy and Matthew Hicks},
  year   = {2018},
  eprint = {1812.11875},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1812.11875}
}

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

Discussion