mirror of
https://github.com/elementalsouls/Claude-BugHunter.git
synced 2026-11-24 20:30:23 +01:00
* 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>
3.0 KiB
3.0 KiB
Recon → Hunt Manifest
manifest.json is the data contract between the recon phase
(Claude-OSINT · offensive-osint ·
cbh recon) and the hunt phase (Claude-BugHunter · hunt · cbh surface · /hunt).
One file, written to recon/<target>/manifest.json, that the hunt side ingests so recon
output flows straight into the engagement instead of being re-typed.
JSON Schema: recon-manifest.schema.json.
Producers — who writes it
The manifest is a shared container; each producer fills the parts it discovers:
| Producer | Fills |
|---|---|
cbh recon <target> |
target, generated_at, counts, assets, ranked_surface |
offensive-osint skill — secret_scan.py |
appends secrets[] |
offensive-osint skill — identity-fabric probes |
fills identity_fabric{} |
A producer that doesn't discover a section leaves it empty ([] / {}) — never absent.
Consumers — who reads it
| Consumer | Uses |
|---|---|
cbh surface <target> |
prints the ranked P1 / P2 / Kill surface from ranked_surface |
hunt <target> [manifest.json] |
seeds scope.md (live hosts) + notes.md (ranked surface) |
/hunt, /surface slash commands |
same data, LLM-driven |
hunt resolves the manifest from: 2nd arg → $HUNT_MANIFEST → ./recon/<target>/manifest.json.
Schema (v1.0)
| Field | Type | Notes |
|---|---|---|
schema_version |
string | "1.0" |
target |
string | root domain |
generated_at |
string | UTC ISO-8601 |
producers |
string[] | e.g. ["cbh-recon/2.1.0"] |
counts |
object | {subdomains, resolved, live} |
assets |
object[] | {host, ips[], url, status, server, title, tech[], source} (url/status null for DNS-only) |
ranked_surface |
object[] | {url, host, bug_classes[], priority, rationale} · priority ∈ P1/P2/KILL |
secrets |
object[] | {pattern, severity, category, source} — from secret_scan.py |
identity_fabric |
object | {idp, tenant, domains[], ...} — from identity-fabric probes |
Example
{
"schema_version": "1.0",
"target": "acme.com",
"generated_at": "2026-06-25T12:00:00+00:00",
"producers": ["cbh-recon/2.1.0"],
"counts": { "subdomains": 47, "resolved": 31, "live": 12 },
"assets": [
{ "host": "api.acme.com", "ips": ["1.2.3.4"], "url": "https://api.acme.com",
"status": 200, "server": "nginx", "title": "API", "tech": [], "source": "crtsh+httpx" }
],
"ranked_surface": [
{ "url": "https://api.acme.com", "host": "api.acme.com",
"bug_classes": ["hunt-api-misconfig", "hunt-idor"], "priority": "P1",
"rationale": "high-value surface (api/auth/admin/non-prod)" }
],
"secrets": [],
"identity_fabric": {}
}
Round-trip
cbh recon acme.com # → recon/acme.com/manifest.json (producer)
cbh surface acme.com # ranked P1/P2/Kill (consumer)
hunt acme.com recon/acme.com/manifest.json # seeds scope.md + notes.md (consumer)