How it works · 24 of 34 Advanced

What is fuzzing in security testing?

Throw junk until it breaks

Fuzzing: Fuzzing feeds a program millions of random or mutated inputs and watches for crashes, keeping the inputs that reach new parts of the code; it finds memory bugs automatically, but not logic mistakes that don't crash.

Loading the animation…

Say it like this Fuzzing feeds a program millions of random or mutated inputs, keeps the ones that reach new code, and records every crash so it can be replayed; it finds memory bugs automatically, but not logic mistakes that don't crash.

Under the hood — for builders
Real example: a fuzzer on a toy parser, run here
A tiny C parser reads an "IMG" header and copies the picture into a 16-byte box without checking the size. It also has a back door: a header "ADM" sets admin = 1. We gave it to libFuzzer:
At scale: OSS-Fuzz
Google runs fuzzers around the clock, free, for open-source projects that sign up:
What it catches, what it can't
A fuzzer only knows "crashed" or "didn't". Anything wrong that doesn't crash looks like success:
Where fuzzing ran out: Big Sleep, 2024
In November 2024, Google's Big Sleep agent (Project Zero with DeepMind) found an exploitable memory bug in SQLite's development code before release. SQLite is fuzzed heavily, and neither OSS-Fuzz nor SQLite's own tests had found it. That's where D6 starts.
Ask a vendor
Which parts that read files or network data are fuzzed, for how long, and with sanitisers on? Do new fuzz crashes block a release?
Watch out
"We fuzz it" doesn't mean "it's secure". A clean fuzz run proves nothing about who may see what; that still needs tests and review.
Sources
OSS-Fuzz (Aug 2023) · Google Project Zero, "From Naptime to Big Sleep" (Nov 2024) · libFuzzer run for this card.

What happens in the fuzzing animation, step by step?

  1. Fuzzing: a machine that presses buttons at random, millions of times, to see what breaks. Each room on the map is a part of the program.
  2. Inputs that reach a new room are kept and varied. The map lights up round by round.
  3. A crash. The machine keeps the exact input, so a developer can replay the bug.
  4. Your turn: run it longer. Watch the map fill. Google's OSS-Fuzz has found over 10,000 vulnerabilities this way.
  5. But a door that opens for the wrong person doesn't crash anything. Fuzzing never notices. It finds spills, not wrong decisions.
  6. In 2024, an AI agent found an exploitable SQLite bug that fuzzing had missed. Next: AI bug hunters.

What everyday example explains fuzzing?

A toddler pressing every button on the remote, endlessly. If the TV ever breaks, you know exactly which buttons did it.

Why should a team care about fuzzing?

If you ship code that reads files or network data, put it in a continuous fuzzer (OSS-Fuzz is free for open source), and don't treat a clean fuzz run as a security review.