Research Library · Idea
Fuzzing
Fuzzing, or fuzz testing, runs a program on large numbers of generated or mutated inputs and watches for failures such as crashes, hangs or sanitizer reports. Its usual reference point is the study by Barton Miller, Lars Fredriksen and Bryan So, published in Communications of the ACM in December 1990, which fed random characters to UNIX utilities with a program called fuzz and recorded whether each crashed, hung or terminated normally 12. Miller's project page traces the work to a 1988 class assignment and lists later studies of other systems 2.
The 1990 study crashed, or crashed or hung, roughly a quarter to a third of the utilities on each UNIX version tested, depending on the measure, including a commercially tested system. The authors stated that their tests were not exhaustive and that they could not estimate how many bugs remained 1.
Later techniques aim to reach code that blind random input misses. Whitebox fuzzing, as in Microsoft's SAGE tool described by Godefroid, Levin and Molnar in 2008, records a run, collects constraints on the input and solves negated constraints to generate inputs for new paths 3. Coverage-guided fuzzers such as american fuzzy lop instrument the program for branch edges and coarse hit counts and keep inputs that produce new coverage 45. LLVM's libFuzzer is an in-process, coverage-guided engine usually combined with sanitizers 6. Google's OSS-Fuzz runs several such engines as a free service for open source projects and reports, as of August 2023, over 10,000 vulnerabilities and 36,000 bugs fixed 7.
As evidence, a reproducible failure demonstrates a fault. A run that finds nothing shows only that its oracle saw no failure with its inputs and time, and errors that do not crash, such as wrong authorisation decisions, need checks that encode the intended behaviour.
Source · An Empirical Study of the Reliability of UNIX Utilities (authors' version) (opens in a new tab) · Barton P. Miller, Lars Fredriksen and Bryan So; published in Communications of the ACM 33(12)
References
- An Empirical Study of the Reliability of UNIX Utilities (authors' version) (opens in a new tab) · Barton P. Miller, Lars Fredriksen and Bryan So; published in Communications of the ACM 33(12) · December 1, 1990 ↩ ↩
- Fuzz Testing of Application Reliability (opens in a new tab) · University of Wisconsin-Madison ↩ ↩
- Automated Whitebox Fuzz Testing (opens in a new tab) · Microsoft Research (Godefroid, Levin and Molnar) ↩
- american fuzzy lop README (opens in a new tab) · google/AFL repository ↩
- Technical whitepaper for afl-fuzz (docs/technical_details.txt) (opens in a new tab) · google/AFL repository ↩
- libFuzzer, a library for coverage-guided fuzz testing (opens in a new tab) · LLVM Project ↩
- OSS-Fuzz documentation (opens in a new tab) · Google ↩
Research articles
- How do we know it is secure? Assurance and security testing from the tiger teams to fuzzing · Cybersecurity foundations
See what connects to it on the map of ideas →

SecSIG