The pentest lab
"Finds bugs" is easy to say. The lab measures it: a small shop with 21 planted holes is built into bughunt, every layer attacks it, and the result is scored against an answer key.
bughunt lab
== Lab score ==
21 of 21 planted holes found, 0 missed, 0 not tested
found SQL injection (by scan)
found Reflected XSS (by web)
found Shell command injection (by scan)
found eval of user input (by scan)
found An API route with no login check (by api)
found One user can read another's order (by api)
found A server error on bad input (by api)
found An exposed .env file (by web)
found CORS that trusts any site (by web)
found A session cookie without its flags (by web)
found Missing security headers (by web)
found Packages with published vulnerabilities (by deps)
found A secret in the code (by secrets)
found A secret only in the git history (by secrets)
found A container that runs as root (by infra)
found A privileged pod (by infra)
found A storage bucket anyone can read (by infra)
found A workflow running pull-request code with write access (by infra)
found Script injection in a workflow (by infra)
found A parser that crashes on some input (by fuzz)
found An AI assistant that follows injected instructions (by ai)
How it is scored
- found: a finding from a layer that should catch it matches the hole.
- missed: the layer ran and did not catch it. The run ends with exit status 1.
- not tested: the layer's engine is not installed. The run ends with exit status 2; it is never scored as found.
CI runs the lab on Linux with every engine on every change, and requires every hole found. Use it to check your own install, to compare versions, or to see what each layer reports before pointing it at your product.
Options
| Option | What it does |
|---|---|
--skip LAYERS | Leave layers out, such as --skip web,fuzz. |
--seconds N | Seconds per fuzz target (default 20). |
--agent TOOL | Also run the pentest agent on your AI tool. It uses your subscription and is not part of the score. |
Everything in the lab is made up and runs only on this machine, on a free port, for the length of the run. What is planted where.