bughunt

Install bughunt

One command for bughunt itself. Each layer then needs one outside tool, and bughunt doctor tells you which are missing.

macOS and Linux

curl -fsSL https://raw.githubusercontent.com/sundarshahi/bughunt/main/install.sh | sh

The script downloads the release for your machine from GitHub, checks its SHA-256 checksum, and puts bughunt in ~/.local/bin. Windows isn't supported yet; WSL 2 works as Linux.

From source

cargo install --git https://github.com/sundarshahi/bughunt

Needs Rust 1.88 or newer.

The tools each layer runs

bughunt doctor
LayerNeedsHow to get it
Read the codeOpengrep, gitcurl -fsSL https://raw.githubusercontent.com/opengrep/opengrep/main/install.sh | bash
Attack an APIuvbrew install uv, or see the uv docs. It runs Schemathesis without installing it.
Packagesosv-scannergo install github.com/google/osv-scanner/v2/cmd/osv-scanner@latest
Secretsgitleaksbrew install gitleaks, or go install github.com/zricethezav/gitleaks/v8@latest
Infrastructuretrivy; zizmor through uvbrew install trivy, and uv as above
Web appskatana, nucleigo install github.com/projectdiscovery/katana/cmd/katana@latest and …/nuclei/v3/cmd/nuclei@latest
Fuzzthe fuzzer for each language you have targets inSee the list per language.
AIcurl; for the agent, an AI tool you already useClaude Code, Codex, Gemini CLI or Copilot CLI, signed in.

You only need the tools for the layers you use.

First run

bughunt audit ~/code/shop                 # read the code and run its fuzz targets: one report
bughunt scan ~/code/shop
bughunt api --url http://localhost:3000 --spec openapi.json
bughunt fuzz ~/code/parser

Update

Run the install command again. It replaces the program and nothing else.

Uninstall

rm ~/.local/bin/bughunt
rm -rf ~/.cache/bughunt

bughunt keeps nothing anywhere else. A bughunt.toml or baseline file you added to a repo is yours.