Build a bespoke fuzzer from LibAFL's modular Rust components for targets that standard fuzzers cannot handle.

skills.sh installs
5.7K
GitHub stars
8.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers composing observers, feedbacks, objectives, mutators, schedulers, and executors into a custom fuzzer
  • Includes a libFuzzer drop-in mode (libafl_libfuzzer_runtime/build.sh) and a Rust library mode built on libafl 0.13 crates
  • Provides a compiler wrapper (libafl_cc) that adds coverage instrumentation to the target build automatically
  • Designed for custom mutators, non-standard architectures, and fuzzing research where libFuzzer and AFL++ lack control

Install

$ npx -y skills add trailofbits/skills --skill libafl -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

LibAFL

LibAFL is a modular fuzzing library that implements features from AFL-based fuzzers like AFL++. Unlike traditional fuzzers, LibAFL provides all functionality in a modular and customizable way as a Rust library. It can be used as a drop-in replacement for libFuzzer or as a library to build custom fuzzers from scratch.

When to Use

FuzzerBest ForComplexity
libFuzzerQuick setup, single-threadedLow
AFL++Multi-core, general purposeMedium
LibAFLCustom fuzzers, advanced features, researchHigh

Choose LibAFL when:

  • You need custom mutation strategies or feedback mechanisms
  • Standard fuzzers don't support your target architecture
  • You want to implement novel fuzzing techniques
  • You need fine-grained control over fuzzing components
  • You're conducting fuzzing research

Quick Start

LibAFL can be used as a drop-in replacement for libFuzzer with minimal setup:

extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
    // Call your code with fuzzer-provided data
    my_function(data, size);
    return 0;
}

Details

Repository
github.com/trailofbits/skills
Categories
Security, Go, Rust

More from trailofbits/skills

All 74

Similar to Libafl

More Security