pandafuzz

command module
v0.0.0-...-284c1ef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

PandaFuzz

A minimalist, self-hosted fuzzing orchestration tool written in Go. PandaFuzz strips down complex fuzzing infrastructure to its bare essentials, providing simple bot coordination and file-based result storage without any cloud dependencies.

Features

  • Distributed Fuzzing: Coordinate multiple fuzzing bots from a central master
  • Multiple Fuzzers: Support for AFL++, LibFuzzer, and Honggfuzz
  • Fault Tolerant: Automatic recovery from bot/master failures with persistent state
  • Crash Deduplication: SHA256-based crash deduplication across all jobs
  • Coverage Tracking: Real-time coverage metrics and trend analysis
  • Web Dashboard: React-based UI for monitoring and management
  • Flexible Storage: Filesystem or S3-compatible storage backends
  • Analytics: Built-in analytics for fuzzer performance and crash distribution

Supported Fuzzers

Fuzzer Coverage Notes
AFL++ Yes Fork-based fuzzer with advanced mutation strategies
LibFuzzer Yes LLVM in-process fuzzer
Honggfuzz Yes Multi-threaded with hardware feedback

Quick Start

# Clone the repository
git clone https://github.com/ethpandaops/pandafuzz.git
cd pandafuzz

# Start with Docker Compose
docker-compose up -d

# Access the web dashboard at http://localhost:8080

# Run the test script to verify AFL++ and LibFuzzer integration
./scripts/run-test-with-corpus.sh

# Or test individual fuzzers
./scripts/run-test-with-corpus.sh afl++      # Test only AFL++
./scripts/run-test-with-corpus.sh libfuzzer  # Test only LibFuzzer

Docker Compose Example
version: '3.8'

services:
  master:
    build:
      context: .
      dockerfile: Dockerfile
      target: master
    ports:
      - "8080:8080"
    volumes:
      - ./storage:/storage
      - ./configs/master-docker.yaml:/app/configs/master.yaml
    environment:
      - PANDAFUZZ_CONFIG=/app/configs/master.yaml
    healthcheck:
      test: ["CMD", "wget", "-q", "--spider", "http://localhost:8080/api/v1/status"]
      interval: 30s
      timeout: 10s
      retries: 3

  bot:
    build:
      context: .
      dockerfile: Dockerfile
      target: bot
    environment:
      - BOT_ID=bot-${HOSTNAME:-default}
      - MASTER_URL=http://master:8080
    depends_on:
      - master
    deploy:
      replicas: 1

Examples

Check out the examples/ directory for:

  • create-fuzzing-job.sh - Complete example that compiles and fuzzes a vulnerable binary
  • web-ui-job-example.md - Guide for using the web UI
  • FUZZER_CONFIGURATION.md - Advanced fuzzer configuration

Documentation

Building from Source

# Build all binaries
make build

# Run tests
make test

# Run linter
make lint

# Build Docker images
make docker

Configuration

PandaFuzz uses YAML configuration with environment variable overrides:

master:
  server:
    port: 8080
  database:
    path: ./data/pandafuzz.db
  storage:
    type: filesystem
    filesystem:
      base_path: ./storage

Environment variables use the PANDAFUZZ_ prefix:

export PANDAFUZZ_SERVER_PORT=9090
export PANDAFUZZ_DATABASE_PATH=/data/custom.db

See Configuration Guide for full reference.

Contributing

See CONTRIBUTING.md for development guidelines, code style, and PR process.

PandaFuzz aims to stay minimal. Please consider whether new features align with the project's philosophy of simplicity before submitting PRs.

License

GNU Affero General Public License v3.0 - see LICENSE.md file for details.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
api-docs command
bot command
master command
migration command
pkg
bot
common
Package common provides shared types and utilities for the PandaFuzz system.
Package common provides shared types and utilities for the PandaFuzz system.
config
Package config provides configuration management for PandaFuzz components.
Package config provides configuration management for PandaFuzz components.
database
Package database defines interfaces for database operations in PandaFuzz.
Package database defines interfaces for database operations in PandaFuzz.
domain/fuzzer/adapter
Package adapter provides compatibility adapters for the domain fuzzer interface.
Package adapter provides compatibility adapters for the domain fuzzer interface.
domain/fuzzer/engines
Package engines provides implementations of various fuzzing engines.
Package engines provides implementations of various fuzzing engines.
domain/fuzzer/engines/aflplusplus
Package aflplusplus provides an implementation of the Fuzzer interface for AFL++.
Package aflplusplus provides an implementation of the Fuzzer interface for AFL++.
domain/fuzzer/engines/honggfuzz
Package honggfuzz provides an implementation of the Fuzzer interface for Honggfuzz.
Package honggfuzz provides an implementation of the Fuzzer interface for Honggfuzz.
domain/fuzzer/engines/libfuzzer
Package libfuzzer provides an implementation of the Fuzzer interface for LibFuzzer.
Package libfuzzer provides an implementation of the Fuzzer interface for LibFuzzer.
domain/fuzzer/factory
Package factory provides a flexible factory pattern implementation for creating and managing different fuzzer engine instances.
Package factory provides a flexible factory pattern implementation for creating and managing different fuzzer engine instances.
domain/fuzzer/types
Package types defines interfaces and data structures for fuzzer engines.
Package types defines interfaces and data structures for fuzzer engines.
errors
Package errors provides error types and handling utilities for PandaFuzz.
Package errors provides error types and handling utilities for PandaFuzz.
master
Package master provides the PandaFuzz master server implementation.
Package master provides the PandaFuzz master server implementation.
retry
Package retry provides retry logic and circuit breaker implementations.
Package retry provides retry logic and circuit breaker implementations.
storage/backend
Package backend provides a unified interface for storing corpus files in different storage systems.
Package backend provides a unified interface for storing corpus files in different storage systems.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL