mirror of
https://github.com/elementalsouls/Claude-BugHunter.git
synced 2026-11-24 20:30:23 +01:00
Governance fix (Security): the autopilot ledger (engine/memory.py) wrote host/url findings, negatives, and per-target rollups to the shared ~/.claude/bughunter/memory/ store on EVERY run, while its reads were already gated behind --use-memory. That asymmetry persisted target-identifying data by default. record_finding and record_run are now gated behind --use-memory too: a default run pools NOTHING target-identifying across engagements. Opt-in --use-memory preserves the ledger and /pickup exactly as before — no behaviour removed, no data relocated. Confirmed no other default-on reader breaks (/pickup, /remember, /autopilot docs updated to say recall is opt-in). New (Added): engine/attack_metrics.py + --use-metrics. A leak-proof, per-operator store of GENERIC COUNTERS ONLY — attempts/successes/cost keyed by tech-stack signature + vuln-class (+ generic technique) — that never stores a host, url, payload, or body (fail-closed allowlist). On a new target it ranks class suggestions by past hit-rate in arsenal.md; advisory only — never auto-fires, and scope + the corroborator + the 7-Q gate still apply. No engagement/host field exists, so cross-engagement leak is impossible by construction. Tests: engine/test_attack_metrics.py (8), engine/test_memory_write_gate.py (4). engine 103 OK, tests 129 OK, lint/doc-count/leak/skill_index clean. Docs: engine/README.md, USAGE.md, /pickup, /remember, /autopilot, .gitignore, CHANGELOG. Engine code only — no skill added, counts unchanged. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
26 lines
951 B
Markdown
26 lines
951 B
Markdown
---
|
|
name: remember
|
|
description: "Optional manual note on a target or the last confirmed finding. Capture is automatic during autopilot; this is for extra context. Usage: /remember"
|
|
---
|
|
|
|
# /remember
|
|
|
|
> **Capture is opt-in.** During an engine/autopilot run started with `--use-memory`,
|
|
> every confirmed finding is written to the ledger
|
|
> (`~/.claude/bughunter/memory/findings.jsonl`) with no action from you. **A default
|
|
> run (no `--use-memory`) persists nothing target-identifying across engagements** —
|
|
> that is the data-isolation default. `/remember` is only for adding an **optional
|
|
> manual note** — a technique detail or follow-up idea — that automatic capture would
|
|
> not include.
|
|
|
|
## Usage
|
|
|
|
```
|
|
/remember # then describe the note; it is appended to the target's rollup
|
|
```
|
|
|
|
## What It Is Not
|
|
|
|
This is no longer the primary way findings enter memory — the engine captures those
|
|
deterministically. Use it sparingly for human context.
|