#libfuzzer #afl #fuzzing #honggfuzz

bin+lib ziggy

A multi-fuzzer management utility for all of your Rust fuzzing needs πŸ§‘β€πŸŽ€

42 releases (1 stable)

1.0.0 Feb 5, 2024
0.8.3 Jan 18, 2024
0.8.2 Nov 20, 2023
0.6.3 Jun 20, 2023
0.1.0 Jun 13, 2022

#31 in Visualization

Download history 92/week @ 2023-10-28 24/week @ 2023-11-04 50/week @ 2023-11-11 426/week @ 2023-11-18 155/week @ 2023-11-25 55/week @ 2023-12-02 57/week @ 2023-12-09 66/week @ 2023-12-16 94/week @ 2023-12-23 48/week @ 2023-12-30 24/week @ 2024-01-06 66/week @ 2024-01-13 23/week @ 2024-01-20 101/week @ 2024-01-27 83/week @ 2024-02-03 122/week @ 2024-02-10

343 downloads per month

Apache-2.0

78KB
1.5K SLoC

ziggy

ziggy is a fuzzer manager for Rust projects which is built to:

  • launch different fuzzers in parallel with a shared corpus
  • create and monitor continuous fuzzing pipelines

Feature set

  • 🀹 handling of different fuzzing processes in parallel (honggfuzz, AFL++)
  • πŸ—ƒοΈ one shared corpus for all fuzzers
  • 🀏 effortless corpus minimization
  • πŸ“Š insightful monitoring
  • 🎯 easy coverage report generation
  • πŸ˜Άβ€πŸŒ«οΈ Arbitrary trait support

Features will also include:

  • πŸ‡ LibAFL integration
  • πŸ“¨ notification of new crashes via bash hook

Usage example

First, install ziggy and its dependencies by running:

cargo install --force ziggy cargo-afl honggfuzz grcov

Here is the output of the tool's help:

$ cargo ziggy
A multi-fuzzer management utility for all of your Rust fuzzing needs πŸ§‘β€πŸŽ€

Usage: cargo ziggy <COMMAND>

Commands:
  build      Build the fuzzer and the runner binaries
  fuzz       Fuzz targets using different fuzzers in parallel
  run        Run a specific input or a directory of inputs to analyze backtrace
  minimize   Minimize the input corpus using the given fuzzing target
  cover      Generate code coverage information using the existing corpus
  plot       Plot AFL++ data using afl-plot
  add-seeds  Add seeds to the running AFL++ fuzzers
  triage     Triage crashes found with casr - currently only works for AFL++
  help       Print this message or the help of the given subcommand(s)

Options:
  -h, --help     Print help
  -V, --version  Print version

For an example fuzz project, see the url example.

The output directory

After you've launched your fuzzer, you'll find a couple of items in the output directory:

  • the corpus directory containing the full corpus
  • the crashes directory containing any crashes detected by the fuzzers
  • the logs directory containing a fuzzer log files
  • the afl directory containing AFL++'s output
  • the honggfuzz directory containing Honggfuzz's output
  • the queue directory that is used by ziggy to pass items from AFL++ to Honggfuzz

Note about coverage

The cargo cover command will not generate coverage for the dependencies of your fuzzed project by default.

If this is something you would like to change, you can use the following trick:

CARGO_HOME=.cargo cargo ziggy cover 

This will clone every dependency into a .cargo directory and this directory will be included in the generated coverage.

ziggy logs

If you want to see ziggy's internal logs, you can set RUST_LOG=INFO.

Dependencies

~0–11MB
~76K SLoC