Key points
- Fuzzing feeds unexpected input to software to provoke failures.
- Generation builds inputs from format rules; mutation alters valid samples.
- Coverage feedback steers the search into new code.
- Triage and human judgement turn crashes into real findings.
Fuzzing is a way of finding bugs by giving a program a great deal of unexpected input and watching for failures. Fuzzing sits alongside exploit development and reverse engineering as a core research technique. See also fuzzing in the glossary. It pays off most on code that parses untrusted files and network messages, where unexpected input is routine.
Generation and mutation
A generation-based fuzzer builds inputs from a description of the format, so every case is well formed enough to get past early checks. A mutation-based fuzzer starts from valid samples and alters them: flipping bits, splicing fields and changing lengths. Mutation is quicker to set up, while generation reaches deeper into structured formats.
Coverage guidance
Modern fuzzers measure which parts of the code each input reaches. Inputs that reach new code are kept and mutated further, so the search steadily explores more of the program rather than repeating shallow paths.
Triage
A fuzzer can produce thousands of crashes, many with the same cause. Triage groups them, reduces each to a minimal input and judges which are exploitable. This step turns raw crashes into a short list of real vulnerabilities. Researchers on exploit development often start from a crash found this way.
Limits
Fuzzing finds bugs that crash or misbehave visibly, but it struggles with logic flaws, checks guarded by checksums or encryption, and states that need long, precise sequences. It complements code review and testing rather than replacing them.