bughunt

In a terminal

Type bughunt in a repo. It says what can run there, runs what you pick while you watch, and lets you read every finding without leaving the terminal.

~/code/shop                                                  bughunt 0.4.0

bughunt · a full security check
This folder is a git repo with Python, a Dockerfile and GitHub workflows.

WHAT CAN RUN HERE
  ✓ code            opengrep
  ✓ packages        osv-scanner
  ✓ secrets         gitleaks
  ✓ infrastructure  trivy, zizmor
  ✓ fuzz            the repo's own fuzz targets, when it has some
  · web, api        need a running app
  · ai agent        claude found; used only when you ask for it

WHAT TO DO
  ▸ Check everything here       bughunt audit .
    …and a running web app      asks for its address
    Open the last report        from 2026-11-28
    Try it on the lab           21 planted holes

↑ ↓ choose   enter run   ? what each does   q quit

Every choice is a command you can type yourself. The screens only appear when a person is watching: in a pipe, a file, CI or with --plain, bughunt prints the same plain report as always, and the exit status is the same either way.

A run as it happens

bughunt audit and bughunt lab show each layer as it runs, how long it took, and what has been found so far.

$ bughunt audit .                                              0:45 so far

✓ Read the code                 17 worth reading of 18 raw flags     0:02
✓ Known-vulnerable packages     7 have published vulnerabilities     0:07
✓ Leaked secrets                1 in the files, 1 more in history    0:03
✓ Infrastructure                4 configuration files; 32 problems   0:02
◑ Fuzz                          running                              0:29

FOUND SO FAR
    3  critical
   30  high
   19  medium
   15  low

v found so far   s skip layer   ctrl-c stop, keep what ran
KeyWhat it does
vRead what has been found so far, while the run goes on.
sStop the layer that is running and go on with the next. The skipped layer is listed under not covered, never as clean.
ctrl-cStop. What already ran is kept and reported; the rest is listed as stopped, and the exit status is 2.

The summary

When the run ends: the overall risk, the most serious findings, what was not covered, and where the report was saved.

Critical risk: fix before anything else
68 findings: 3 critical, 27 high, 22 medium, 16 low. At least one finding can be
used from outside with serious harm.

MOST SERIOUS
  CRIT django 3.2.0 has 38 published vulnerabilities, the worst scored 9.8 of 10
  CRIT pyyaml 5.3 has 2 published vulnerabilities, the worst scored 9.8 of 10
  HIGH SQL built from user input · shop.py:69
  and 65 more

NOT COVERED
  ! Web app  no address given

REPORT SAVED
  report.html  to read or send
  report.json  for the next retest

NEXT
  After fixing, see what changed:
  bughunt audit . --compare ~/.cache/bughunt/out/shop/report.json

v read the findings   o open report.html   q quit       exit status 1: findings

Each live run saves report.html and report.json next to its logs, in ~/.cache/bughunt/out/<name>. When you leave, the terminal keeps the risk, the count and the two paths.

Every finding

bughunt view ~/.cache/bughunt/out/shop/report.json

Any JSON report opens here, from a live run or from --format json. The list is most serious first; the finding you pick shows its place, evidence, fix and references beside it, or on its own page in a narrow terminal.

KeyWhat it does
↑ ↓Move through the list.
0–4Every level, or only critical, high, medium or low.
/Search the message, place, rule and layer. esc clears it.
cCopy the command that reproduces it (an API finding's curl), or else where it is.
spaceScroll a long finding.
enterIn a narrow terminal, switch between the list and the finding.
esc, qBack, and quit.

The lab

bughunt lab ends on its score: each planted hole, found ✓, missed ✗ or not tested ○, and the layer that found it. v opens every finding, s the summary.

Colours, and when there are none

The screens use your terminal's own colours, so they follow its light or dark theme. Severity is always written next to its colour, never shown by colour alone. NO_COLOR leaves only bold and dim. Everything shown from a scanned repo has its control characters replaced, as in the plain report.