libFuzzer
libFuzzer is an in-process, coverage-guided evolutionary fuzzing engine that ships as part of LLVM compiler-rt. It is open source under Apache-2.0 WITH LLVM-exception. It runs on Linux, macOS, and Windows.
Updated
- Pricing
- Open Source
- License
- Apache-2.0 WITH LLVM-exception
- Platforms
- Linux, macOS, Windows
- Category
- Fuzzing
What Is libFuzzer?
libFuzzer is an in-process, coverage-guided evolutionary fuzzing engine that ships as part of LLVM compiler-rt. It links directly against fuzz targets and uses SanitizerCoverage feedback to guide input mutation, and it is one of the fuzzing engines used by OSS-Fuzz. Its original authors have stopped active work on it, and the LLVM documentation says to expect bug fixes rather than major new features.
Use Cases
Fuzzing C/C++ libraries with custom fuzz targets in continuous fuzzing infrastructure like OSS-Fuzz.
Strengths and Limitations
Strengths
- +Tight in-process integration with AddressSanitizer and UndefinedBehaviorSanitizer for precise crash detection.
- +Included in Clang since version 6.0, requiring no separate installation.
- +The LLVM documentation credits it with thousands of bugs found on OSS-Fuzz.
Limitations
- -No major new features are planned, since the original authors moved to the Centipede engine.
- -Requires writing and compiling a fuzz target harness in C or C++.
- -In-process design means a single crash terminates the fuzzer unless the experimental fork mode is enabled.
Defensive Use
Continuous fuzzing of parsers, codecs, and cryptographic libraries to find memory corruption bugs before release.
libFuzzer Alternatives
3 tools| Tool | License | Platforms | Pricing |
|---|---|---|---|
| AFL++ Coverage-guided fuzzer with mutation engines, LLVM instrumentation plugins, and binary-only modes for finding memory safety bugs. | AGPL-3.0-or-later AND Apache-2.0 | Linux, macOS, FreeBSD, NetBSD, OpenBSD, Solaris, Android | Free / Commercial |
| Honggfuzz Multi-threaded, feedback-driven fuzzer using software and hardware coverage counters to uncover memory corruption defects. | Apache-2.0 | Linux, macOS, FreeBSD, NetBSD, Windows, Android | Open Source |
| LibAFL Rust fuzzing library from the AFL++ team for building custom fuzzers from reusable components. | Apache-2.0 OR MIT | Linux, macOS, Windows, Android | Open Source |
Frequently Asked Questions
What is libFuzzer?→
libFuzzer is an in-process, coverage-guided evolutionary fuzzing engine that ships as part of LLVM compiler-rt. It links directly against fuzz targets and uses SanitizerCoverage feedback to guide input mutation, and it is one of the fuzzing engines used by OSS-Fuzz. Its original authors have stopped active work on it, and the LLVM documentation says to expect bug fixes rather than major new features.
What is libFuzzer used for?→
Fuzzing C/C++ libraries with custom fuzz targets in continuous fuzzing infrastructure like OSS-Fuzz.
What are the strengths of libFuzzer?→
- +Tight in-process integration with AddressSanitizer and UndefinedBehaviorSanitizer for precise crash detection.
- +Included in Clang since version 6.0, requiring no separate installation.
- +The LLVM documentation credits it with thousands of bugs found on OSS-Fuzz.
What are the limitations of libFuzzer?→
- +No major new features are planned, since the original authors moved to the Centipede engine.
- +Requires writing and compiling a fuzz target harness in C or C++.
- +In-process design means a single crash terminates the fuzzer unless the experimental fork mode is enabled.
How is libFuzzer used defensively?→
Continuous fuzzing of parsers, codecs, and cryptographic libraries to find memory corruption bugs before release.