Refresh stale skill/command/hunt/regex counts and dead links across README, banner,
engagement-flow SVGs, cbh-cli, credits, and the issue template.
check_doc_counts now validates the home.html count-up data-to AND fallback values
and the web-capability card's hunt count, so a count bump can't drift them silently.
lint_skills enforces report_count against the HackerOne report URLs its disclosed-
reports file actually cites, with a count-convention note for CVE-only cases.
* fix(mcp): --burp-url and --command imply Burp server
Explicit Burp wiring options were only treated as data sources, so combining
--burp-url or --command with --hackerone silently wired HackerOne only.
Treat either option as an implicit --burp request and add regression tests
for both flag combinations.
* fix(mcp): drop legacy V1 mcp keys when wiring OpenCode
Older installers wrote mcp.<name> directly, which OpenCode V2 ignores but
keeps as a stale duplicate alongside mcp.servers.<name>. Remove the legacy
key before the idempotency check so upgrades clean it up even when the V2
entry is already correct.
* test(mcp): cover V1 config migration on OpenCode upgrade
* docs(mcp): note automatic cleanup of legacy V1 OpenCode keys
---------
Co-authored-by: SuDefRequests <node-gh@users.noreply.github.com>
The README/docs architecture SVGs sat at 82 skills / 57 hunt-* through two
count bumps because nothing checked them, and the home.html count-up guard
only validated the Skills tile. Bump the SVGs to 85 / 58 and add per-diagram
CI guards (reported by @fairoz-539, #353); split the count-up assertion into
per-tile Skills / Hunt / Slash checks (reported by @martian56, #347).
Co-authored-by: fairoz-539 <fairoz-539@users.noreply.github.com>
Co-authored-by: martian56 <martian56@users.noreply.github.com>
Correct the home page slash-command stat 15 -> 16, repoint two dangling
hunt-race cross-refs to hunt-race-condition, and drop the stale "82"
SKILL.md count from install.ps1.
reported by @speto2
Co-authored-by: speto2 <speto2@users.noreply.github.com>
The doc-count workflow did not trigger on home.html/banner/index and
the hero regex hard-coded the command number. List every checked file
in both workflow events and decouple the skill-count assertion from the
literal command count.
reported by @vzubcu
Co-authored-by: vzubcu <vzubcu@users.noreply.github.com>
The OpenCode writer emitted the deprecated mcp.<name>+enabled shape;
move to V2 mcp.servers.<name> with disabled, and add --burp-url for the
PortSwigger Streamable-HTTP endpoint (no stdio proxy).
reported by @SuDefRequests
Co-authored-by: SuDefRequests <SuDefRequests@users.noreply.github.com>
Adds the 'curation: uncited' frontmatter convention and enforces it in
lint_skills.py (bad value rejected; count+state together rejected), with a
7-case test. Marks hunt-misc, hunt-ntlm-info, hunt-spa-api uncited: their
count is intentionally absent, not zero.
Reported by @umer-2k1 in #313; integrated in-house with credit.
Co-authored-by: umer-2k1 <umer-2k1@users.noreply.github.com>
- #294 (reported by @Xyloslabs): format_diff_report printed "No change" on a
removal-only diff because has_signal() excludes removals; the early return now
also checks removed_hosts/removed_surface, so the Removed assets section shows.
- #295 (reported by @Xyloslabs): spa_recon sliced list(set) of JS bundles, so the
mined 20 varied by PYTHONHASHSEED; now sorted before slicing (deterministic).
- #282 (reported by @speto2): install.sh/.ps1 --uninstall ran rm -rf on every
manifest line; a corrupted `../precious` entry escaped ~/.claude. Both now accept
only ^(skills|commands|scripts)/<safe-name>$ (no .., CRLF-tolerant) and print a
skip for anything else. install-smoke checks the real skills/*/ count, not -ge 80.
- #283 (reported by @speto2): docs/skills.md is generated but unchecked and had
drifted; gen_skill_catalog.py gains argparse + --check (and stops rewriting on
--help), exploit-completion + regression-hunting join their sections, skill-lint
runs the check, and docs/skills.md is regenerated.
Tests: engine/test_recon_spa_determinism.py, scripts/test_uninstall_safety.sh,
+2 in test_diff.py. Full suite green: engine 181, project 139, catalog --check OK,
lint 85/0, doc-count 42/0, leak 0/389.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- #279 (reported by @viwe-monai): a string out_of_scope/in_scope/seeds in scope.json
was iterated per-character, so the deny list silently never matched; and an
engagement name with a separator escaped --base. Scope now fails closed on a
non-list scope field, and Engagement rejects a name that is empty, '.'/'..', or
contains / \ : NUL. Tests: engine/test_scope_state_failclosed.py.
- #280 (reported by @viwe-monai): runtime-tests only re-ran on engine/cbh/tests
paths, skipping tests that guard mcp/, eval/, OSINT scripts, setup_harness_mcp,
lint_skills, hunt.sh and the .ps1 files. Added those paths to both triggers.
- #281 (reported by @airdropia): cve-refresh template captured $? after a command
that exits 1 under `set -e` (issue step never ran) -> EXIT=0; ... || EXIT=$?;
get_report now documented (README, server docstring, /intel); dead skill names
hunt-cache-poisoning/-subdomain-takeover corrected; scripts/cbh.py uses realpath
so a symlinked cbh imports itself. Test: tests/test_cbh_symlink.py.
- #292 (reported by @Layfate): state.py and memory.py now fsync the temp file
before the atomic rename, so a crash mid-save can't leave truncated JSON.
Full suite green: engine 159, project 139, lint 85/0, doc-count 42/0, leak 0/382.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
An end-to-end audit for the recurring issue/PR classes turned up four gaps:
1. check_doc_counts.py covered only 7 files; 7 others asserted the 85/58/16
counts with no CI check — the exact pattern behind the repeated stale-count
bugs (71/48/24/84/85). Extended it to cover the plugin manifests, the banner
stat row + text nodes, docs/_config.yml, docs/index.md, docs/multi-harness.md
and the Pages landing page (21 -> 42 assertions). This immediately caught a
LIVE stale count: the banner COMMANDS stat read 15 while everything else said
16 — fixed to 16.
2. engine/recon.py robots-disallow emitter built `base + d` from the target's
robots.txt (untrusted) with no authority guard — a `Disallow: @evil/x` line
put an off-scope host in the surface (same class as #263). Guarded with
_on_base_authority; regression test added.
3. scripts/test_hunt_target.sh (the #252 path-escape regression test) ran in no
workflow. Wired it into install-smoke.yml (bash job) and added matching
reject-case assertions to the PowerShell job, so hunt.sh and hunt.ps1 target
validation are both CI-guarded.
4. commands/autopilot.md referenced a "recon-ranker agent" that doesn't exist
(there is no agents/ dir); reworded to "deterministic engine ranking".
Full suite green: engine 152, project 138, hunt + scan self-checks pass,
lint 85/0, doc-count 42 assertions / 0 errors, leak 0/382.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Rebuilt in-house from community reports rather than merging the PRs, crediting each reporter:
- engine/scope.py: an inline comment on a CIDR deny rule (`10.9.0.0/16 # lab`,
`10.0.0.0/8#corp`, `(corp range)`) made _normalize_rule return the whole string,
which never parsed as a network, so the deny rule failed open. Strip a trailing
comment before classification (kept inside re: rules); return only the CIDR token.
Reported by @basanta-codexa. (#270)
- scripts/hunt.{sh,ps1}: validate the target name (`^[A-Za-z0-9][A-Za-z0-9._-]*$`)
so `hunt ../escaped` / `a/b/c` / `-x` can't escape or nest outside $HUNT_BASE.
Reported by @speto2. (#252)
- skills/exploit-completion/SKILL.md: redirect-reflection marker was in the URL
#fragment (curl never sends it) -> always reported "did NOT land"; moved to a
reflectable query param. Reconciled the identical-failure cap to N=2 throughout,
dropped a stray tooling comment, de-brittled a line-number cross-ref.
Reported by @speto2. (#250)
- commands/{remember,autopilot,pickup}.md: corrected stale "capture is automatic"
lines after #230 made ledger capture opt-in (--use-memory). Reported by @speto2. (#251)
- skills/hunt-springboot/SKILL.md: CVE-2022-22947 PoC tripped AV heuristics on the
shipped file; Phase 5b now leads with a non-destructive #{5*5} proof and comments
out the Runtime.exec form. Reported by @minhhungit; approach by @satyam-257. (#258)
Regression tests: engine/test_scope_rule_comments.py, scripts/test_hunt_target.sh.
Full suite green (engine 151, project 138), lint 85/0, doc-count 0, leak 0/378.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Same parser-differential class as the backslash scope bypass (#247). Root-caused
into two patterns rather than patched spelling-by-spelling:
1. scope.py normalized rules but not the target host's IP literal -> an
out-of-scope IPv6 address was admitted in any non-canonical spelling. _host_of
now canonicalizes an IP literal identically to _normalize_rule.
2. Producers emitted URLs whose authority came from untrusted input without the
gate:
- engine/recon.py: a spec path key (`users/{id}`, `.x`, `@h`) rewrote base+path
authority -> requests/surface items to never-scope-checked hosts. New
_on_base_authority guard on every base+path join (auth_enforcement_sweep,
openapi_recon).
- engine/recon.py: platform_recon appended OIDC endpoints from a discovery doc
unfiltered -> third-party IdP listed as oauth target. Now scope-gated.
- cbh/scope_import.py: `host/**` filed as path-exclusion with no deny rule ->
host stayed testable. _whole_host() treats any `*`/`/`-only path as whole-host.
- scripts/{scan_identifiers,lint_skills}.py: .local denylist entries hashed
without tokenizing -> punctuation/3+word names silently never matched. Now
tokenized exactly as the scanner shingles text; 3+ words fails closed. .sha256
recipe + CONTRIBUTING corrected.
Closes#259, #263, #261, #265, #267. Regression tests added for each; full
suite green (engine 144, project 138), leak scan 0, doc-count 0.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Built in-house from two community-reported issues; reporters credited in
CHANGELOG and on the closed source PRs.
- scripts/setup_harness_mcp.py: move the UTF-8 stdout/stderr reconfigure
from main() to import time, so the write_* helpers (imported + called
directly by tests and other tooling) no longer raise UnicodeEncodeError
on the arrow glyph under cp1252. Reported by @basanta-codexa (#237).
Test: tests/test_setup_harness_mcp_encoding.py.
- skills/hunt-dispatch/SKILL.md + engine/skill_map.py: add the 10 hunt-*
skills that were missing from the mode=wapt load list (so /hunt wapt
never loaded them), and add a skill_map self-check that fails when an
installed hunt-* skill is missing from that list, so it cannot drift
again. The skill-lint CI already runs skill_map on skills/** changes.
Reported by @speto2 (#225). Test: engine/test_dispatch_coverage.py.
engine 114 OK, tests 132 OK, skill_map OK, lint/doc-count/leak clean.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Closes the README roadmap item "auto-generate structured scope.md from
program text". scope.md is the gate engine/scope.py enforces, and today it
is filled by hand from the program page.
`cbh scope import <ref> [-o scope.md]` reads:
- public HackerOne / Bugcrowd / Intigriti / YesWeHack scopes from
bounty-targets-data (hourly MIT dump, cached 6h, no API key);
- `--json`: the HackerOne MCP get_my_program / get_program_scope output,
for private programs;
- `--text`: pasted program-page lists, plus researcher-conduct rules.
It fails closed. Only unambiguous hosts, wildcards, IPs and CIDRs become
rules. Exact hosts are written as anchored `re:^host$` rules, because a
bare host rule also admits every subdomain. Path-limited assets,
placeholders, free text, public suffixes and mid-label wildcards go to
`## Needs manual review` and are not rules. Non-host assets go to
`## Other assets`.
Imported bullets sit between cbh-import markers, so re-running refreshes
them and keeps hand-written rules, Focus areas and recon-seeded hosts.
Checked against all 939 public programs in the dump (52,947 assets), with
both main's and #205's scope.py:
- every rule round-trips through _scope_from_md;
- every declared asset is admitted;
- no subdomain of an exact host is admitted;
- every deny rule rejects its host;
- re-importing is a no-op.
Rule conversion of host assets: HackerOne 97.5%, Intigriti 91%,
YesWeHack 90%, Bugcrowd 62% (68% excluding entries redacted in the dump).
Also:
- engine/scope.py compiles each `re:` rule once. `re` caches only about
512 patterns, so a large imported program took ~150 ms per check at
5,000 rules; it now takes ~3 ms.
- The scope.py and /scope docs said `api.example.com` matches "that exact
host". It also matches the host's subdomains; the docs now say so.
- hunt.sh and hunt.ps1 point at the importer (hunt.ps1 stays ASCII).
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(scope): normalize every rule source to host; add Scope.warnings
Out-of-scope rules written with a scheme/port/path/trailing punctuation or a
wildcard matched nothing and silently failed open. One normalization point in
Scope.__init__ now reduces every rule source (scope.md, scope.json, CLI flags,
osint/recon helpers) to its host. Port/path widening is recorded in a new
Scope.warnings channel. Reported by @fairoz-539 (#182).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* fix(scope): recognize IPv6 CIDR rules via ipaddress
The CIDR detector used p.replace('.','').replace('/','').isdigit(), which colons
make non-digit, so an IPv6 CIDR deny/allow rule (2001:db8::/32) never matched.
Detect any CIDR via ipaddress.ip_network; a family mismatch returns False, never
raises. Reported by @fairoz-539 (#182).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* fix(scope): soft-fail an invalid out-of-scope regex (warn, treat as host)
A bad re: deny regex was caught and silently matched nothing — a fail-open on the
one gate that must fail closed. Now it warns loudly and re-admits the remainder as
a literal host deny rule, so the run continues with scope still enforcing. Valid
regexes are unaffected. Reported by @fairoz-539 (#182).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* fix(scope): open a section only on a start/end scope heading; hint recon hosts
A recon-seeded note heading ('... VERIFY in-scope before testing') matched the
substring 'in-scope' and opened the in-scope section, silently promoting passive
crt.sh/subfinder hosts to scope rules (#198). _section_of now opens a section only
when the heading's label starts or ends with a scope phrase (trailing parenthetical
and colon stripped first). Hosts found under a scope-mentioning note heading are
surfaced as a Scope.warnings hint instead. Scaffolder heading reworded (no inner
quotes; hunt.ps1 stays ASCII). Reported by @udarshmarthala (#198).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* fix(scope): surface scope warnings on stderr and in the engine log
Scope.warnings (bad deny regex, widened rule, recon-seeded hosts) now print to
stderr from scope.py and go to the engine log at start — nothing is silent, and
stdout stays clean for --json-style consumers.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* fix(engine): follow recon redirects one hop at a time, inside scope
Recon fetches followed redirects to any host: spa_recon adopted the landed
(possibly off-scope) origin and crawled its robots/sitemap; _probe ran curl -L, so
platform/openapi recon chased Location anywhere. A new _walk() follows at most
MAX_REDIRECTS hops and only while the scope predicate accepts the next URL; all
backends (requests, a no-redirect stdlib _OPENER, curl without -L) route through it.
spa_recon re-checks the landed host, and platform/openapi recon skip out-of-scope
seeds. In-scope redirects (http->https, / -> /home) are unaffected. Reported by
@fairoz-539 (#181).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* fix(engine): auth sweep grades a 3xx as enforcement, never chases Location
A declared-secured op answering 302 -> /login was graded by the followed login
page's 200 as 'declared-secured, NOT enforced' — a false positive. The sweep now
uses the no-redirect opener, so a 3xx is graded as itself (enforcement) and no
request chases Location. Repoints test_openapi_readonly to the module opener.
Adds the scope-hardening CHANGELOG entry. Reported by @fairoz-539 (#181).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* fix(scope): review follow-ups — bare IPv6 deny, prune redirect, test sockets
Fresh-review fixes:
- CRITICAL: a bare/zoned unbracketed IPv6 single-host rule normalized to its first
hextet (urlparse split on ':'), so an IPv6 out-of-scope rule failed open. Detect a
literal IP in _normalize_rule and return its canonical form.
- IMPORTANT: prune_inert_params followed no redirects (allow=None), so a live
parameterized endpoint behind an in-scope redirect (http->https, canonical slash)
was mis-judged inert and dropped. Thread scope through and follow in-scope hops.
- MINOR: loopback test servers now server_close() in tearDown (no leaked sockets
under -W error).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* docs(superpowers): scope-hardening design + implementation plan
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* test(osint): enumeration_roots covers host after scope normalizes port/path
Rebase interaction with #221: the scope gate (#205) now widens
example.com/path and example.com:8080 to the host example.com, so
enumeration_roots correctly yields ['example.com'] instead of dropping
them. Update the #221 regression case to the combined correct behavior.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
* fix(cbh): classify_url matches path/query, not hostname (#219)
Pattern triggers ran against the full URL, so a keyword in the hostname
(verify.example.com, cart.shop.example) matched a leading-slash path
pattern via the //. Match against parsed.path+query instead; the
previously-unused parsed is now the source of truth.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* fix(engine): extract_json keeps the last top-level JSON value (#217)
The unfenced fallback used one greedy {.*} DOTALL span (first brace to
last), so any earlier brace in the reply — a curl payload in the prose —
made the whole span unparseable and the verdict was lost, re-running the
item as no-verdict. Scan top-level values with raw_decode and keep the
last. Fenced replies are unaffected.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* fix(osint): secret_scan prunes skip dirs by name, always scans the root (#216)
The skip check tested each noisy-dir word as a substring of the whole
walked path, root included. So scanning ./dist, .github/ (contains .git),
or nightly-builds/ matched and skipped everything, printing nothing and
exiting 0 — a false clean in a leak guard. Prune os.walk's dirs by exact
name below the root instead; the requested root is always scanned.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* fix(osint): derive enumeration roots from authorized scope (#213)
osint() and _expand_scope() took the enumeration apex by keeping a seed
host's last two labels. Under a multi-label public suffix that apex is
the suffix itself (example.co.uk -> co.uk), so subfinder/assetfinder/crt.sh
queried the whole suffix and the in-scope filter discarded the results;
--expand never enumerated the target at all. IP seeds became '3.4'. New
shared osint.enumeration_roots() takes roots from in-scope domain rules and
maps each seed to its shortest covering root (full hostname if uncovered),
with no public-suffix list.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* fix(leak-guard): reject malformed denylist hashes (#212)
A committed .sha256 line that is not a 64-hex digest was loaded verbatim
as a 'hash' that no real sha256 can match — a silent false-negative in
the leak guard. load_denylist now validates each entry and fails closed
(exit 2) on a malformed one, naming the line to fix without printing its
content.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* docs(changelog): credit five tooling/engine bugfix reporters (#219,#217,#216,#213,#212)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* fix(review): harden extract_json, classify_url, and the skill-linter denylist
Adversarial review of the five bugfixes surfaced four to fold:
- extract_json: a truncated top-level array let an inner element be
returned as the verdict; stop at the first unparseable bracket instead
of descending. Also widen the except to (ValueError, RecursionError) so
deep nesting in the C scanner can't escape into the verdict path.
- classify_url: schemeless input (api.php.net/x) put the host in
parsed.path, so .php still fired. Prefix // when there's no scheme.
- lint_skills.load_denylist: same malformed-hash fail-open as #212 in the
skill linter — validate and fail closed there too.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
* fix(cbh): triage gate — real request-target for Q1, scope-negation for Q3, clickjacking for Q7
Three false-verdict paths in the 7-Question Gate, each independently reported:
- Q1 matched a bare method word anywhere in the text, so prose like
"target application" (contains "get ") or "input validation" passed Q1
with no request at all. Q1 now needs a method followed by a path or URL
(or curl / HTTP/1.1). Reported by @dajiaohuang (#209).
- Q7's never-submit list had "click-jacking" but not "clickjacking", so the
unhyphenated spelling was never killed. Reported by @Ethereal49 (#197).
- Q3 answered YES on any scope/asset wording even when the finding itself
said "out of scope" / "unverified". A scope/asset line carrying a negation
no longer counts as in-scope evidence; non-scope lines ("Impact: unclear")
still don't. Reported by @Ethereal49 (#197).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* fix(cbh): parse finding frontmatter through a leading UTF-8 BOM
A BOM (\ufeff) written by some Windows editors sits before the `---` fence,
so the `^---` frontmatter regex missed it and severity/asset fell back to
defaults. Strip a leading BOM in parse_finding_metadata, the shared chokepoint
for every command that reads a finding, not just `cbh report`.
Reported by @jazzpher (#200).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* fix(cbh): force UTF-8 stdout so Windows cp1252 consoles don't crash
cbh and setup_harness_mcp.py print the gate glyphs (check / cross / arrow /
em-dash) throughout. On a Windows console (cp1252) a bare print() raised
UnicodeEncodeError and the command died mid-run. Reconfigure stdout/stderr to
UTF-8 at both entrypoints, the same fix engine/engine.py:main already uses, so
the whole CLI is covered at one point rather than guarding every print.
Reported by @Sahilkumar-r (#180).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* fix(offensive-osint): filter h1_reference --program by team_handle, not team_id
CompleteHacktivityReportIndex no longer accepts terms: {team_id: ...}, so
--program silently returned nothing. Switch to query_string "team_handle:<h>",
which filters correctly and still accepts sort + pagination (so --program now
composes with --top-voted / --top-bounty). Also: route the lookup progress line
to stderr so --json stdout stays pipeable, and reject an empty --program handle.
Two independent reports converged on this fix: @roonnnnyyyyyy (#206) and
@flipcyde101 (#202).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* docs(changelog): record the four tooling bugfixes with reporter credits
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* fix(cbh,osint): review follow-ups — Q3 negation, Q1 markdown, CRLF, canonical handle
Adversarial review of the branch surfaced five real defects:
- Q3 _q3_scope_negated matched ANY line containing 'scope' plus a negation,
so 'Impact: unclear scope of data exposure' wrongly killed an in-scope
finding. Negation is now evaluated per line: strong phrases ('out of scope')
disavow anywhere; weak words ('unknown','unclear') only on a scope/asset/
target line (the key before the colon).
- Q3 negation list was space-only, so the common hyphenated 'out-of-scope'
slipped through. Hyphens are normalized to spaces before matching.
- Q1 required whitespace between method and path, missing the markdown a PoC
is usually written in (`GET /x`, **GET** /x, GET `/x`). The separator class
now allows backticks and bold/italic markers. The prose ceiling
('an attacker can get /admin') is marked, not closed — requiring HTTP/ would
reject the bare 'GET /path' PoC the gate must accept.
- parse_finding_metadata now also normalizes CRLF, so Windows findings (the
same platform as the BOM in #200) don't skip frontmatter.
- h1_reference --program queried the raw input handle; query_string is
case-sensitive while TeamLookup is not, so '--program Shopify' could return
nothing. lookup_program now returns the team record and main uses the
canonical handle.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Fixes#183. Fixes#185. BOM-less .ps1 files are decoded by Windows PowerShell
5.1 with the system ANSI code page, not UTF-8, so the em-dash (U+2014) and arrow
(U+2192) in hunt.ps1 / install.ps1 / install-community-skills.ps1 became 'â€"'
and broke parsing — every new PowerShell window threw parser errors and the hunt
function was never defined.
Replace the two non-ASCII characters with ASCII equivalents ('-' and '->'); the
scripts are now pure ASCII, so PS 5.1 parses them regardless of code page and no
BOM is needed. tests/test_ps1_ascii.py locks the invariant in on CI.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
The HackerOne MCP (#162) only installed into Claude Code; Burp wires into
OpenCode/Codex/Hermes/AntiGravity via setup_harness_mcp.py. This brings parity.
- setup_harness_mcp.py: parametrize the four writers by server name (default
"burp", so existing behavior/tests are unchanged); add hackerone_source()
(python3 + in-repo server path, carries HACKERONE_API_* env only if set);
add --burp/--hackerone selection (default burp). A burp-discovery miss now
warns and continues when hackerone is also requested, instead of aborting.
- install.sh / install.ps1: add --hackerone-mcp / -HackeroneMcp, passing the
server-selection flags through; both servers can be wired in one run.
- docs/multi-harness.md: HackerOne MCP section mirroring the Burp one.
- tests: test_mcp_hackerone_harness.py (source resolution + keyed wiring).
Co-authored-by: Sachin Sharma <sachin.lucideus@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
The payload example in skills/hunt-auth-bypass/SKILL.md carried a raw 0x00 byte
(offset 23277, line 359) where the visible text \x00 was intended. That single
byte makes the file binary to ripgrep and file(1), so repo-wide searches skip
the skill silently, while the loader, GitHub rendering, git diff and CI all stay
green - which is why it survived since c42e50d7 (2026-05-25).
- write the escape as visible text, so rg finds the file again and file(1)
reports UTF-8 text
- add a control-character check to scripts/lint_skills.py so the class cannot
come back; it reports line and byte offset of the offender
Verified: scripts/lint_skills.py -> 0 errors, 14 warnings (unchanged); the new
rule flags the pre-fix file as hunt-auth-bypass:359.
Phase 4b — the one-line flip. 4a backfilled every skill and shipped the validator
in warn mode; main now reports 0 grounding warnings, so grounding issues move from
warnings to errors: a skill missing `sources:` (or a hunt-* missing an integer
`report_count:`) now fails CI.
Verified: lint_skills.py still 0 errors on current main; removing a skill's
`sources:` now produces an ERROR and exit 1.
Co-authored-by: Sachin Sharma <elementalsoul@Sachins-MacBook-Pro.local>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Phase 4a. Grounding was declared in frontmatter (sources: / report_count:) but
lint_skills.py validated neither, so ~43 skill/field gaps passed CI clean.
Validator (scripts/lint_skills.py):
- every skill must declare `sources:`; hunt-* skills must also declare an integer
`report_count:` (0 allowed when sources justify — pattern-library / research-
derived skills). Gated behind GROUNDING_STRICT=False → emitted as WARNINGS this
PR so main can't break mid-backfill; Phase 4b flips it to errors.
Backfill (30 SKILL.md):
- 17 hunt-* got report_count. Only hunt-cors carries a real count (19 — its
disclosed-reports file states "built from 19 public bug bounty reports"); the
rest are 0, because their pattern-library files explicitly say "not a complete
enumeration" and no honest total exists. No counts were invented.
- 26 skills got `sources:` with truthful provenance tags (hackerone_public,
cve_database, owasp, portswigger_research, community, public_research,
operator_experience, etc.) — drawn from each pattern-library file's stated
provenance where one exists.
Verified: grounding warnings 43 -> 0 after backfill; 0 errors; all 83 SKILL.md
still valid YAML; stripping a skill's sources produces a WARNING (not error) in
this phase; scan_identifiers + check_doc_counts still green.
Co-authored-by: Sachin Sharma <elementalsoul@Sachins-MacBook-Pro.local>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Nothing exercised the installers, so a broken path reached users before (a harness
PR routed skills to a directory the target never read; the PowerShell side was
never machine-tested at all). This adds .github/workflows/install-smoke.yml:
- shell-lint: shellcheck (-S warning) + `bash -n` on install.sh,
install-community-skills.sh, hunt.sh. (Never runs on the .ps1 files — shellcheck
mis-parses PowerShell.)
- smoke: dry-run install into a throwaway $HOME with --no-shell; asserts >=80 skills
land; --help exits 0; an unknown flag exits non-zero; **regression-guards the
AntiGravity fix** (--antigravity must land skills in ~/.gemini/config/skills, and
the old wrong ~/.gemini/antigravity/skills path must NOT appear); --uninstall
removes the footprint.
- powershell-parse: AST-parses install.ps1, install-community-skills.ps1, hunt.ps1
on windows-latest (syntax only, no execution) — the check the AntiGravity PR lacked.
Two shellcheck fixes to make the shell job pass on current code:
- hunt.sh: add `# shellcheck shell=bash` (it's a sourced file, so SC2148 was a
false shebang complaint).
- install.sh: drop the unused local `sm` (SC2034).
Doc-count gating already exists (doc-count-check.yml); no change needed there.
Verified locally: shellcheck clean, both installs land 83 skills at the correct
paths, uninstall cleans up, leak-guard + doc-count still green.
Co-authored-by: Sachin Sharma <elementalsoul@Sachins-MacBook-Pro.local>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
The existing hashed-denylist scan lives in lint_skills.py and only covers
skills/**. The identifier leak that motivated this guard landed in README.md
and tests/ — files that linter never sees, and skill-lint.yml only triggers on
skills/** paths anyway. It also fails OPEN: a missing denylist prints a NOTE
and exits 0.
This closes both holes:
- scripts/scan_identifiers.py — standalone scanner reusing the same denylist
file and 1-/2-word shingle-hash logic, but over EVERY tracked text file
(git ls-files, minus binaries). Fails CLOSED: missing/empty denylist = exit 2.
- .github/workflows/leak-guard.yml — runs it (and its self-test) on every push
and PR with NO path filter. contents: read.
- .githooks/pre-commit — same scan locally before push (opt-in via
`git config core.hooksPath .githooks`).
- scripts/test_scan_identifiers.py — stdlib self-check: catch, clean,
case-insensitive, and fail-closed behaviors.
- scripts/.identifier-denylist.sha256 — added the single-word hash to
complement the existing two-word entry (both now covered).
- CONTRIBUTING.md — documents the guard, the hook, and how to ban a new
identifier without committing the plaintext.
Verified: whole-repo scan 0 matches / exit 0; self-test passes; missing denylist
exits 2; a planted identifier is blocked by both the scanner and the hook;
lint_skills.py still 0 errors. (The guard even caught a client name I'd left in
this scanner's own docstring — removed.)
Scope note: identifier-only by design. Repo-wide secret scanning is deferred —
it would false-positive on the synthetic AKIA test keys in docs/verification/,
which need allowlist work first. Secrets stay covered by lint_skills.py (skills)
and secret_scan.py.
Co-authored-by: Sachin Sharma <elementalsoul@Sachins-MacBook-Pro.local>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Adds Google AntiGravity as a 5th install target — skill routing to ~/.gemini/config/skills and Burp MCP wiring to ~/.gemini/config/mcp_config.json — across install.sh, install.ps1, setup_harness_mcp.py, docs, and the routing/banner SVGs.
Contributed by @re-code-sh. Skills path corrected during review from ~/.gemini/antigravity/skills (which AntiGravity does not read) to the docs-verified ~/.gemini/config/skills; detection tightened off bare ~/.gemini. Verified: bash -n, py_compile, check_doc_counts (0 errors), lint_skills (0 errors), and a full leak sweep of all 9 changed files (no client data, secrets, or internal paths).
The self-hosted star chart already auto-refreshes, but only weekly (Monday
cron), so the baked count lagged up to 7 days behind reality. Switch the cron
to daily (04:17 UTC) so it's never more than ~1 day stale. Still fully
self-hosted — no external service, same auto-commit-if-changed step.
Also harden fetch_stars(): it ignored the `gh` exit code and treated any empty
page as end-of-data, so a rate-limited/transient failure mid-pagination would
silently truncate the series and commit a chart with a LOWER count. Daily runs
multiply that exposure. Now a non-zero `gh api` exit aborts the run, leaving
the committed SVGs untouched rather than regressing the count.
README caption updated (weekly → daily) to match.
Co-authored-by: Sachin Sharma <elementalsoul@Sachins-MacBook-Pro.local>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
New `hunt-fintech-graphql` skill (money-movement GraphQL mutations, ledger/balance IDOR, decimal-precision abuse, idempotency-key replay, nested field-level KYC/PII authz, admin-override mass assignment; defers generic GraphQL to hunt-graphql). Adds scripts/check_doc_counts.py + doc-count-check.yml CI to guard skill/command counts against drift, and refreshes every doc count to disk truth (83 skills, 58 hunt-*, 15 commands).
Contributed by @prithvee07. Original PR title described only the doc edits; rewritten to reflect the full scope.
The chart had stopped rendering. Root cause is upstream, not our markup:
api.star-history.com returns HTTP 500 "timeout of 10000ms exceeded" for this
repo, and does so for a small repo in the same org too — so it is their service
degrading, not our star count. starchart.cc, the usual fallback, returns
"rate limited, please try again later" on every attempt.
Both are third parties in the README's render path, so either one failing
silently blanks the section. This removes that dependency.
- scripts/gen_star_history.py renders the chart from GitHub's own stargazers
API (starred_at timestamps, cumulative by day) to two committed SVGs.
- assets/star-history-{light,dark}.svg — self-contained, no external refs, so
they always load.
- README points at the committed assets via the existing <picture> pattern.
- .github/workflows/star-history.yml refreshes them weekly and on demand,
committing only when the chart actually changes.
Chart design: single series, so no legend — the title names it. Colours are
per-surface rather than one value reused: #c81e3c on light, the repo's own
#ff2d4f accent on dark, both checked against GitHub's real surfaces (#ffffff /
#0d1117) for lightness band, chroma floor and contrast. Endpoint is the only
labelled point. Grid and axes stay recessive; y-axis figures are tabular so
digits align.
No hover layer: GitHub strips scripts from README-embedded SVG, so the chart is
necessarily static. That is a platform constraint, not an omission.
Co-authored-by: Sachin Sharma <sachin.lucideus@gmail.com>
Every .sh installer now has a PowerShell counterpart so the bundle
installs natively on Windows without WSL:
- scripts/hunt.ps1 (port of hunt.sh)
- scripts/install.ps1 (port of install.sh)
- scripts/install-community-skills.ps1 (port of install-community-skills.sh)
Same behavior, same flags (hyphen-style: -All, -Agents, -Hermes,
-BurpMcp, -NoProfile, -Uninstall), same manifest-driven uninstall.
hunt.ps1 is dot-sourced from the PowerShell \$PROFILE (the Windows
equivalent of the .zshrc/.bashrc source line). BOM-free UTF-8 writes.
.gitattributes pins *.ps1 to LF alongside *.sh/*.py. Docs (README,
INSTALL, USAGE, multi-harness, SECURITY, index, credits, CHANGELOG)
updated to show both macOS/Linux and Windows paths. macOS/Linux
unchanged.
* fix(dx): harden install, package cbh as pipx-installable, fix broken commands
Addresses 6 P1 defects from a DX review (solo bug-bounty hunter persona):
- install: .gitattributes (eol=lf) + CRLF self-heal in install.sh; INSTALL uses bash form
- cli: package cbh as a real pip/pipx console-script (pyproject.toml + cbh/ package +
bundled cbh/data/skill_index.json fallback + scripts/gen_skill_index.py); scripts/cbh.py
kept as a clone shim; recon writes to ./recon when installed
- commands: add /scope backed by a new deterministic engine/scope.py CLI (was called
mandatory in /hunt but missing); reframe /token-scan, /intel, /surface so the skill
path is primary and missing helper scripts are clearly optional
- docs: install capability matrix (plugin vs clone vs pipx); reconcile the authorization
story in /hunt (don't ingest the SOW document != skip scope verification)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* feat(skills): consolidate recon skills as canonical (integration Phase 1)
BugHunter becomes the source of truth for the two recon skills shared with
Claude-OSINT (which now re-exports them).
- offensive-osint: port h1_reference.py (HackerOne hacktivity agent) + dashboard.py
(local recon console) + assets/ font from Claude-OSINT (CRLF->LF); documented in
references/helpers-and-automation.md sec 49-50 + SKILL.md router. references/ split kept;
OSINT's recent change was dashboard-only so no SKILL.md content delta.
- osint-methodology: keep BugHunter's expanded version (1703 vs 455 lines, supersedes
OSINT's); bump version 2.1 -> 2.3 to pass OSINT's 2.2.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix(dx): correct CRLF docs + scope.py footguns (post-verification)
A 20-agent adversarial verification found the install.sh CRLF self-heal was
non-functional (bash parse-aborts on the CRLF case statement before the guard
runs) and the docs over-promised it; plus two fail-safe scope.py footguns.
- install.sh: remove the dead self-heal block (.gitattributes is the real fix);
INSTALL.md now tells the truth (renormalize an existing CRLF checkout manually)
- engine/scope.py: keep bullets under nested ### sub-headings (was dropping in-scope
assets under default-deny); --in-scope/--out-of-scope are now repeatable flags so a
target placed after them is no longer swallowed
- commands/scope.md: inline example uses repeated --in-scope flags
- .gitignore: anchor scope.md -> /scope.md so it no longer shadows commands/scope.md
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* feat(skills): add triggers frontmatter to offensive-osint
offensive-osint lacked the `triggers:` field that osint-methodology already has
and that the sibling Claude-OSINT repo's frontmatter lint requires (>=5). Added the
127-entry recon trigger list so the skill is internally consistent and Claude-OSINT
can re-export it without CI failure.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* feat(install): install manifest + safe --uninstall + skip-identical (Phase 3)
Coexistence with the sister bundle Claude-OSINT: each install now records a manifest
of its footprint so uninstall removes only its own files and keeps any skill the other
bundle still owns (the two shared recon skills).
- install.sh: write ~/.claude/.skill-manifests/claude-bughunter.txt; --uninstall removes
tracked skills/commands/hunt.sh + rc line but keeps shared-owned skills; skip re-copying
a skill/command already present and identical (no last-installer-wins clobber)
- INSTALL.md: replace the unsafe rm -rf ~/.claude/skills advice with --uninstall
- README: document safe coexistence with Claude-OSINT
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* feat(cbh): recon->hunt manifest contract (integration Phase 4)
The data handoff between recon and hunt: cbh recon emits recon/<target>/manifest.json,
which cbh surface and the hunt scaffold consume. Turns the conceptual 'OSINT recons,
BugHunter hunts' into a real, tested contract.
- cbh recon: emit manifest.json (schema 1.0) -- assets + ranked_surface (P1/P2/Kill via
host heuristic + classify) + counts; secrets[]/identity_fabric{} left for the
offensive-osint skill's deeper probes to append (shared-container design)
- cbh surface <target>: new subcommand -- read the manifest, print the ranked surface
- hunt.sh: ingest a manifest (2nd arg / $HUNT_MANIFEST / ./recon/<target>/) to seed
scope.md (live hosts) + notes.md (ranked surface)
- docs/recon-manifest.md + recon-manifest.schema.json: the contract spec
- docs/cbh-cli.md, commands/surface.md: document the surface subcommand + manifest
Round-trip verified end-to-end (synthetic + a real 'cbh recon example.com').
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* feat(dx): P2 backlog — --no-shell flag, supply-chain trust section, feedback template
- install.sh: add --no-shell (don't touch shell rc; print the source line to add);
the default path now also echoes the exact line it appended (T2)
- SECURITY.md: 'Verifying what you install' supply-chain trust section — leans on the
existing skill-lint CI, with an explicit 'what this does NOT prove' disclaimer and
pin-to-reviewed-commit guidance, no malware-scanner theater (T13)
- add .github/ISSUE_TEMPLATE/dx_feedback.yml — low-friction 'skill didn't trigger /
first-hunt' DX feedback form (T14)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Brian Richter <richter83.star@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Previously --all unconditionally copied skills to ~/.agents and ~/.hermes regardless of
what was installed. Now --all probes for each harness (binary on PATH or its standard
config dir): Claude always; ~/.agents only if Codex is present (OpenCode reads ~/.claude
directly); ~/.hermes only if Hermes is present. With --burp-mcp it wires Burp only into
the detected harnesses, in each one's native config dialect. Prints a detection summary.
Explicit --agents/--hermes still force a path regardless of detection.
Verified end-to-end in a sandboxed HOME: detects all four, installs 71 skills to the
right paths; bash -n clean.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>