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
| Layer | Needs | How to get it |
|---|---|---|
| Read the code | Opengrep, git | curl -fsSL https://raw.githubusercontent.com/opengrep/opengrep/main/install.sh | bash |
| Attack an API | uv | brew install uv, or see the uv docs. It runs Schemathesis without installing it. |
| Packages | osv-scanner | go install github.com/google/osv-scanner/v2/cmd/osv-scanner@latest |
| Secrets | gitleaks | brew install gitleaks, or go install github.com/zricethezav/gitleaks/v8@latest |
| Infrastructure | trivy; zizmor through uv | brew install trivy, and uv as above |
| Web apps | katana, nuclei | go install github.com/projectdiscovery/katana/cmd/katana@latest and …/nuclei/v3/cmd/nuclei@latest |
| Fuzz | the fuzzer for each language you have targets in | See the list per language. |
| AI | curl; for the agent, an AI tool you already use | Claude 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.