Skip to content

What is fuzzing and when is it worth doing?

A technique that finds the defects nobody thought to look for, feeding software malformed input until it breaks.

Fuzzing is the technique for finding the defects nobody thought to look for: you feed a program a mass of malformed input, random or derived from real cases, and watch whether it breaks. The mechanics of the most common variant, the one behind AFL++ and libFuzzer, come down to three steps. A tool mutates the starting inputs by flipping bytes, truncating fields, inflating declared lengths; the program runs instrumented for coverage and with a memory error detector, which measures the branches reached and catches accesses that would otherwise go unnoticed; the loop keeps the inputs that opened new ground and mutates them again. The failure criterion is crude and for that reason easy to automate: a hang, memory consumption that never ends, an access out of bounds. There is no need to know in advance what the correct answer would be, and that is why fuzzing reaches defects hand-written tests never touch: whoever writes a test writes the cases already in mind.

See also: Shift Left TestingMoving quality testing to when code is written, instead of a separate downstream phase.

Where it pays off and where it is waste

The ratio between cost and defects found is best on four surfaces: parsers, imports of files produced by third parties, endpoints that receive untrusted input and the third-party libraries inside your own dependency graph. They all share one shape: they accept data nobody controls and interpret it before any application-level validation comes into play. On those surfaces fuzzing is one technique inside the shift left testing strategy, not the strategy itself, and it works on the code before release: that is the boundary separating it from a vulnerability assessment or a penetration test, which verify systems already in operation. Where it belongs inside the pipeline is what the DevSecOps entry covers. It is money wasted, instead, on business logic whose input is already constrained upstream, where a three-value enum leaves no room to mutate and, above all, where "did it break" says nothing: you need an oracle, and that is what functional and property-based tests add.

It also explains something anyone managing suppliers sees without understanding it: the burst of CVEs on open source components nobody has touched in years. Behind many of those memory and parsing defects sit continuous fuzzing campaigns such as Google's OSS-Fuzz, which as of May 2025 states it has helped identify and fix over 13,000 vulnerabilities and 50,000 bugs across 1,000 projects. The advisories arrive not because the code got worse, but because somebody finally looked.

An enterprise example

A machinery manufacturer receives configuration files from customers in a proprietary format and imports them into a custom management system. The parser was written in house, is eleven years old and has never seen a file that was not well formed: the supplier generating them has always been the same one. A two-week fuzzing campaign against the importer alone produces forty inputs that hang it, three of which write past the end of a buffer. None of those forty cases was in the test suite, and none would ever have ended up there. The cost of the work is a fraction of a production stop caused by one new customer's file.

Why it matters for decision makers

Fuzzing is not an investment to make everywhere, and anyone selling it as blanket coverage is selling something else. The decision concerns a few risky surfaces, chosen with the same logic used to distribute effort across the other test levels. A supplier delivering custom software should be asked three questions: whether the code has been fuzzed, on which surfaces and what happens when the campaign finds something. The third is the one that separates a real practice from a ticked box, because a campaign producing a hundred crashes and no tracked remediation has improved nothing.

  • Shift Left TestingMoving quality testing to when code is written, instead of a separate downstream phase.
  • DevSecOpsDevSecOps integrates security, development, and operations throughout the software lifecycle, with shared responsibility and ongoing vulnerability management.
  • Vulnerability assessment vs penetration testA vulnerability assessment identifies and evaluates weaknesses; a penetration test attempts to exploit them within an authorized scope and agreed limits.
  • Secure by designSecure by design makes customer security a design priority and holds the manufacturer accountable for security outcomes throughout the product's lifecycle.
  • Test automation pyramidThe test automation pyramid guides the mix of automated checks, favoring narrowly scoped tests and pairing them with checks on integrations and workflows.

See it in the universe

If it is a technical decision you keep postponing, that is the decision I help you make.

See custom tools, governance and operations

Or write to me.