afl-cmin - Man Page

Synopsis

afl-cmin [ options ] -- /path/to/target_app [ ... ]

Options

Required parameters:
  -i dir      - input directory with the starting corpus (can be used multiple times)
  -o dir      - output directory for minimized files

Execution control settings:
  -f file     - location read by the fuzzed program (stdin)
  -m megs     - memory limit for child process (default: none)
  -t msec     - timeout for each run (default: 5000ms)
  -O          - use binary-only instrumentation (FRIDA mode)
  -Q          - use binary-only instrumentation (QEMU mode)
  -W          - use binary-only instrumentation (WINE mode)
  -U          - use unicorn-based instrumentation (Unicorn mode)
  -X          - use Nyx mode

Minimization settings:
  --crash-dir=dir - move crashes to a separate dir, always deduplicated
  -A          - allow crashes and timeouts (not recommended)
  -C          - keep crashing inputs, reject everything else
  -e          - solve for edge coverage only, ignore hit counts

Misc:
  -T workers  - number of execution and of update workers, or
                exec:update for both counts separately, or 'all'
                (default: 1)
  --as_queue  - name output files "id:000000,orig:filename", or
                "id:000000,hash:sha1" with AFL_SHA1_FILENAMES
  --no-dedup  - skip deduplication step for corpus files
  --debug     - debug mode

Metadata of an afl-fuzz output directory (fuzzer_stats, plot_data, ...)
is never used as an input, its queue/, crashes/ and hangs/ are.
Only the first 1048576 bytes of an input are given to the target.
The exit status is 0 on success and 1 on any error, including a run in
which no input matched the requested crash/timeout policy.

afl-cmin honors the 'AFL_MAP_SIZE' and 'AFL_SHA1_FILENAMES' environment variables.

For additional help, consult /usr/share/doc/american-fuzzy-lop/README.md.

Author

AFL++ was written by Michal "lcamtuf" Zalewski and is maintained by Marc "van Hauser" Heuse <mh@mh-sec.de>, Dominik Maier <domenukk@gmail.com>, Andrea Fioraldi <andreafioraldi@gmail.com> and Heiko "hexcoder-" Eissfeldt <heiko.eissfeldt@hexco.de> The homepage of AFL++ is: https://github.com/AFLplusplus/AFLplusplus

License

AFL++ is licensed under AGPL-3.0-or-later, with original components under Apache-2.0; an optional commercial license is available. See https://github.com/AFLplusplus/AFLplusplus/blob/stable/LICENSING.md

Info

2026-09-09 AFL++