Loading...
Loading...
Incident response workup for a lead in hand — an alert, an IOC, or a /dnr-hunt finding. Scopes the lead across the logs, verdicts whether the attack succeeded, quantifies blast radius, confirms root cause in source with a local PoC, and writes a proposed (never executed) containment/remediation/recovery plan. Use when asked to "respond to this alert", "work this incident", "how bad is this", or "run dnr-respond". /dnr-hunt is the no-alert entry to the same track.
npx skill4agent add anthropics/defending-code-reference-harness dnr-respond/dnr-respond <lead> [--logs dir] [--repo path] [--fresh]$1INCIDENTS.jsonINC-2/dnr-hunt--logs/dnr-hunttargets/dnrcanary--repoapp/--fresh.dnr-respond-state/confirmed_exploitedsuspectedReadcatwcheadtailgrepawksortuniqpython3127.0.0.1/dnr-huntTARGET--logstargets/dnrcanarySCOPEINC-n/dnr-hunt{RUN}results/TARGET/<timestamp>/INCIDENTS.jsonls -1d results/TARGET/*/ | sort -r | while read d; do [ -f "$d/INCIDENTS.json" ] && echo "$d" && break; donerundirINC-nrundir/dnr-respondINCIDENTS.jsonINCIDENTS.jsonINC-nrundirpython3 .claude/skills/_lib/checkpoint.py rundir results/TARGET --state .dnr-respond-state --scope "SCOPE"--fresh$ARGUMENTSresults/TARGET/<timestamp>/{RUN}SCOPE/dnr-hunt{RUN}/.dnr-respond-state/{RUN}.dnr-respond-stateloadcompleteINCIDENTS.jsonRESPONSE-<lead>.mdpython3 .claude/skills/_lib/checkpoint.py load {RUN}/.dnr-respond-state--freshresetphase_done == Nphase0.jsonphaseN.json{RUN}/.dnr-respond-state/_chunk.tmpcheckpoint.py save {RUN}/.dnr-respond-state <N> <name> --from {RUN}/.dnr-respond-state/_chunk.tmpprogress.jsoncheckpoint.py done {RUN}/.dnr-respond-state 4--logsduwc -lhead -2INC-n{RUN}/INCIDENTS.jsonphase0.json{"lead": ..., "lead_type": ..., "entities": {"ips": [], "accounts": [], "routes": [], "windows": []}, "question": ..., "logs_dir": ..., "repo": ..., "files": [...]}phase1.json{"activity": [{"entity", "summary", "first_seen", "last_seen", "requests", "key_lines": [...]}], "expanded_entities": [...], "timeline": [...]}seed_commandruled_outphase2.json{"verdict": ..., "succeeded": bool, "discriminators": [...], "blast_radius": {"data": ..., "records": N, "distinct_victims": N, "window": ...}, "ongoing": bool, "last_activity": ...}/dnr-hunt--reposeed_commandapp_commandpython3 -c "...subprocess.Popen..."kill <pid>suspectedphase3.json{"root_cause": {"file", "function", "mechanism"}, "poc": {"command", "status", "response_excerpt"}, "negative_poc": {...}, "siblings_checked": [...]}{RUN}/RESPONSE.md{RUN}/RESPONSE-<lead>.mdRESPONSE-INC-2.mdRESPONSE.md/triage{RUN}/INCIDENTS.json/dnr-huntruled_outcheckpoint.py done {RUN}/.dnr-respond-state 4{RUN}{RUN}/triage INCIDENTS.json --repo <repo>/patch TRIAGE.json --repo <repo>python <target>/grade.py {RUN}/INCIDENTS.json