bughunt

A full security check, from one command

bughunt reads your code, checks your packages and secrets, your containers and CI, attacks your running API and web app, fuzzes your parsers and tests your AI features. Then it gives you one report: what is wrong, how serious, what to do, and honestly what it did not reach.

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

macOS and Linux. Any language. Then type bughunt in a repo to choose what to check and watch it run. Other ways to install

Eight layers, one report

Your code: bughunt audit .
== Read the code ==
  17 worth reading of 18 raw flags
== Known-vulnerable packages ==
  7 packages, worst 9.8 of 10
== Leaked secrets ==
  1 in the files, 1 only in history
== Infrastructure ==
  privileged pod, public bucket,
  workflow script injection
Your running app: --url, --web
== Attack the API ==
  bob received the Order
  that alice owns
== Web app ==
  sqli-error-based critical
  exposed .env, CORS, cookies
== AI ==
  assistant obeyed 8 of 8 injections
Proof: bughunt lab
== Lab score ==
21 of 21 planted holes found
found  SQL injection (by scan)
found  One user can read another's
       order (by api)
found  A secret only in the git
       history (by secrets)
found  An AI assistant that follows
       injected instructions (by ai)

Built to be believed

Measured, not claimed

A shop with 21 planted holes is built in. The lab attacks it with every layer and scores the result; CI requires every hole found on every change.

A shortlist, not a dump

Raw scanner output is mostly noise. bughunt groups, ranks and counts what it left out, so the report is short enough to read.

Honest about coverage

A layer that did not run, an endpoint that only said "not found", a fuzz target that never built: each is said plainly, never counted as clean.

A report you can send

Summary with the overall risk, scope and method, findings with evidence and fixes, and a retest that says what is new, still open and fixed.

AI on your own tool

Prompt-injection tests need no AI at all. The pentest agent runs on the AI tool you already pay for, confined to one guarded command, and only proven claims count.

Safe by default

Attacks only go to this machine unless you name a test host, only read unless you say otherwise, and keep login tokens out of command lines and reports.

Who it's for

  • Developers who want the crash found on their own machine, with the command that reproduces it.
  • Teams who want every pull request checked without a wall of warnings nobody reads. "Could not run" is never reported as "clean". Use it in CI.
  • Security reviewers who want the tool-findable bugs out of the way before the human work starts.

Questions

Does bughunt send my code anywhere?

No. Everything runs on your machine and there is no telemetry. The only downloads are the tools it runs: the scanner's rules from GitHub on the first scan, and Schemathesis through uvx on the first API run.

Does it replace a penetration test?

No. It finds the bugs that tools can find, cheaply and on every change, so that people can spend their time on the ones tools cannot: broken business rules, missing permission checks between two customers, design mistakes.

Can I point it at production?

Don't. The API layer sends thousands of malformed requests. It refuses any address that is not this machine unless you name one test environment with --allow-host, and it only reads unless you pass --write.

Is a finding a bug?

A crash from the API or fuzz layer is a bug: it comes with the command or input that reproduces it. A flag from reading the code is a candidate. The report says so, and the shortlist is short enough to read each one.

Why does it say how much was reached?

Because "no failures" is not "clean". An endpoint that only ever answered "not found" was barely tested, and a fuzz target that never built did not pass. bughunt counts both instead of staying quiet.

Which languages?

Reading code covers 30+ languages through Opengrep. Fuzz targets are found and run for Rust, Go, Python, JavaScript, TypeScript, Ruby, Java, C, C++ and PHP, and any other fuzzer can be named as a command. The API layer does not care what the server is written in.

Is bughunt itself checked?

Yes, with itself. It has fuzz targets for its own parsers, which found two bugs in its own code in under 20 seconds each, and an independent review of version 0.2.0 found more. All are written up, with the fixes.