Heuristic:0xSteph Pentest ai Prove Or Kill Allowlist
| Knowledge Sources | |
|---|---|
| Domains | Security_Testing, Verification |
| Last Updated | 2026-10-23 14:00 GMT |
Overview
Drift-safe allowlist heuristic that trusts only native ptai probes and recon enumeration tools by default; all third-party vulnerability scanner output is gated behind oracle verification before surfacing as a finding.
Description
The Prove-Or-Kill Allowlist replaces a fragile denylist approach with a fail-safe allowlist. Instead of maintaining a list of untrusted scanners to block (which drifts as new tools are added), the system maintains a tight list of trusted sources and gates everything else by default.
Trusted sources fall into two categories:
- Native ptai builtins: Probes and builtins that carry their own evidence (`pentest-ai-*` prefix, `builtin_*` prefix, empty source, `spa_probe`, `authenticated_scan`).
- Recon enumeration tools: Factual enumeration whose output is context, not a vulnerability assertion (`gobuster`, `ffuf`, `httpx`, `nmap`, `subfinder`, etc.).
Everything else — nuclei, nikto, skipfish, zap, sqlmap, and any unrecognized tool routed through `parse_default` — is third-party vuln-scanner output that must pass oracle verification before it surfaces as a finding.
The key safety property: forgetting to add a new recon tool fails safe (the tool's output is hidden until added to the allowlist), which is the correct direction for a "no proof, no finding" guarantee.
Usage
Apply this heuristic when:
- Integrating a new third-party scanner — its output will be gated by default; add it to `_RECON_TOOLS` only if it does factual enumeration, not vuln assertion.
- Reviewing finding triage — any finding with `needs_proof(tool_source) == True` must have an oracle-verified receipt before it is surfaced.
- Debugging missing findings — a recon tool not in `_RECON_TOOLS` will have its output silently gated; check the allowlist.
The Insight (Rule of Thumb)
- Action: Use an allowlist of trusted sources, not a denylist of untrusted ones.
- Value: `_RECON_TOOLS` frozenset contains 19 enumeration tools. `_NATIVE_PREFIXES` = `("pentest-ai-", "builtin_")`. `_NATIVE_EXACT` = `{"", "spa_probe", "authenticated_scan"}`.
- Trade-off: A newly added scanner is gated by default (conservative). Only a new recon tool needs adding to `_RECON_TOOLS` to keep its context visible.
- Compatibility: Replaces the old two-scanner denylist (`{nikto, nuclei}`) with a drift-safe approach.
Reasoning
A denylist requires the maintainer to remember every scanner that produces false positives. As the ecosystem grows, new scanners are added faster than the denylist is updated, creating a widening gap of unproven findings.
An allowlist inverts this: only known-safe sources pass through. The set of "things we trust" is much smaller and more stable than "things we don't trust." The fail-safe direction is correct — if you forget to add a new recon tool, its output is hidden (conservative) rather than surfaced as a potential false positive (dangerous).
The division between recon (factual) and vuln-scanner (assertive) is critical: recon output is context for the agent to reason over, not a vulnerability claim that needs proof.
Code Evidence
Allowlist definition from `engine/tool_trust.py:24-34`:
_RECON_TOOLS = frozenset({
"gobuster", "ffuf", "feroxbuster", "dirsearch", "dirb", "dirsearch.py",
"whatweb", "wafw00f", "httpx", "httprobe",
"amass", "subfinder", "dnsx", "naabu", "katana",
"kiterunner", "paramspider", "arjun", "waybackurls", "gau",
})
_NATIVE_PREFIXES = ("pentest-ai-", "builtin_")
_NATIVE_EXACT = frozenset({"", "spa_probe", "authenticated_scan"})
Trust check from `engine/tool_trust.py:37-45`:
def is_trusted_source(tool_source: str | None) -> bool:
s = (tool_source or "").strip().lower()
if s in _NATIVE_EXACT or s in _RECON_TOOLS:
return True
return any(s.startswith(p) for p in _NATIVE_PREFIXES)