DARWIN: Survival of the Fittest Fuzzing Mutators

Patrick Jauernig, Domagoj Jakobovic, Stjepan Picek, Emmanuel Stapf, Ahmad-Reza Sadeghi
10/21/2022
cs.SEcs.CR

Official code: TUDA-SSL/DARWIN (33 stars, C, Apache-2.0, last commit 2023-02-28).

Abstract

Fuzzing is an automated software testing technique broadly adopted by the industry. A popular variant is mutation-based fuzzing, which discovers a large number of bugs in practice.

Show full abstract

While the research community has studied mutation-based fuzzing for years now, the algorithms' interactions within the fuzzer are highly complex and can, together with the randomness in every instance of a fuzzer, lead to unpredictable effects. Most efforts to improve this fragile interaction focused on optimizing seed scheduling. However, real-world results like Google's FuzzBench highlight that these approaches do not consistently show improvements in practice. Another approach to improve the fuzzing process algorithmically is optimizing mutation scheduling. Unfortunately, existing mutation scheduling approaches also failed to convince because of missing real-world improvements or too many user-controlled parameters whose configuration requires expert knowledge about the target program. This leaves the challenging problem of cleverly processing test cases and achieving a measurable improvement unsolved. We present DARWIN, a novel mutation scheduler and the first to show fuzzing improvements in a realistic scenario without the need to introduce additional user-configurable parameters, opening this approach to the broad fuzzing community. DARWIN uses an Evolution Strategy to systematically optimize and adapt the probability distribution of the mutation operators during fuzzing. We implemented a prototype based on the popular general-purpose fuzzer AFL. DARWIN significantly outperforms the state-of-the-art mutation scheduler and the AFL baseline in our own coverage experiment, in FuzzBench, and by finding 15 out of 21 bugs the fastest in the MAGMA benchmark. Finally, DARWIN found 20 unique bugs (including one novel bug), 66% more than AFL, in widely-used real-world applications.

View on arXivView PDF

Code Implementations(1)

TUDA-SSL/DARWINOfficial100%
Apache-2.0

Code for the NDSS'23 paper "DARWIN: Survival of the Fittest Fuzzing Mutators"

336C, ShellOct 19, 20223 years agoApache-2.0

Similar Papers

Cite this paper

@article{jauernig2022darwin,
  title  = {DARWIN: Survival of the Fittest Fuzzing Mutators},
  author = {Patrick Jauernig and Domagoj Jakobovic and Stjepan Picek and Emmanuel Stapf and Ahmad-Reza Sadeghi},
  year   = {2022},
  eprint = {2210.11783},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.11783}
}

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

Discussion