Fuzzing

Fuzzing is an automated software testing technique that feeds a program large volumes of invalid, unexpected or random inputs and watches for crashes, hangs or other failures that reveal bugs.

A fuzzer throws inputs at a program far faster than any human tester could, and flags any input that makes it crash, hang, fail an internal check or leak memory. Most inputs do nothing interesting. A few expose a bug the programmers never thought to test for, and some of those bugs turn out to be security vulnerabilities. Because the process is automatic, it can run for days on many machines.

The technique began as a class project. In autumn 1988 Barton Miller set it as an assignment in his graduate operating systems course at the University of Wisconsin, wanting a name that suggested random, unstructured data. The resulting paper, An Empirical Study of the Reliability of UNIX Utilities, appeared in Communications of the ACM in December 1990. Feeding random input to standard UNIX utilities crashed between a quarter and a third of them.

Modern fuzzers are much smarter than random noise. Mutation-based fuzzers start from valid sample inputs and alter them, while generation-based fuzzers build inputs from a model of the expected format. Coverage-guided fuzzers, such as AFL and libFuzzer, watch which parts of the code each input reaches and keep the inputs that reach new territory, so they work their way deeper into the program. Google launched OSS-Fuzz in December 2016 to run this kind of testing continuously on open-source projects.

AI is now being used to write the code that connects a fuzzer to a program, which used to be slow manual work. In November 2024 Google reported that fuzz targets generated with large language models had found 26 new vulnerabilities in open-source projects. One was a flaw in OpenSSL, CVE-2024-9143, that had likely been present for two decades. The same work added over 370,000 lines of new code coverage across 272 C and C++ projects.

Fuzzing also has limits that AI researchers point to. When Google's Big Sleep agent found an exploitable bug in SQLite in 2024, the team noted that OSS-Fuzz had not caught it and that 150 CPU-hours of fuzzing with AFL did not find it either. Fuzzing finds bugs it happens to reach; it cannot show that a program has none.

Common questions

What is fuzzing in cybersecurity?

Fuzzing is automated testing that sends a program huge numbers of malformed or unexpected inputs to find inputs that make it crash or misbehave. Those failures often point to security vulnerabilities such as memory corruption. Defenders use it to find bugs before release, and attackers use it to find flaws to exploit.

Who invented fuzzing?

Barton Miller of the University of Wisconsin is credited with the technique and the name. He set it as a class project in 1988, and the results were published in 1990 in a study that crashed a quarter to a third of the UNIX utilities tested.

How is AI used in fuzzing?

Large language models are being used to write fuzz targets, the code that connects a fuzzer to the part of a program being tested. In 2024 Google reported that LLM-generated fuzz targets in its OSS-Fuzz service found 26 new vulnerabilities, including a long-standing OpenSSL flaw. AI agents are also being tested as a complement to fuzzing for bugs it misses.

What is coverage-guided fuzzing?

It is a form of fuzzing that tracks which parts of the program each input exercises and keeps the inputs that reach new code. Those inputs are then mutated further, so the fuzzer gradually explores deeper paths through the program. AFL and libFuzzer are well-known coverage-guided fuzzers.

Finding more

Search for "coverage-guided fuzzing", "OSS-Fuzz" or "LLM fuzz target generation" to learn how the technique works and how AI is changing it. Reliable sources include Barton Miller's fuzz testing pages at the University of Wisconsin, documentation for tools such as AFL and libFuzzer, Google's security blog and research papers on arXiv. Treat raw counts of bugs found with care, because many fuzzing bugs are minor and the meaningful figure is how many were real, fixed vulnerabilities.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.