#fuzzer #fuzzing #pipeline #input #continuous #parallel #directory

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

#85 in Cargo plugins

Download history 27/week @ 2024-01-13 1/week @ 2024-01-20 40/week @ 2024-02-03 9/week @ 2024-02-10 18/week @ 2024-02-17 27/week @ 2024-02-24 1/week @ 2024-03-02 29/week @ 2024-03-09 8/week @ 2024-03-16 37/week @ 2024-03-30 6/week @ 2024-04-06

58 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
~74K SLoC