dnr-respond
What it does
This skill guides a response to one specific security lead, such as an alert, a suspicious address or a finding from a hunt. It checks the logs, the source code and a local test, then proposes steps to contain and fix the problem. It is for security responders.
When to use it
- βWhen you have one security alert and need to know whether the attack succeeded.
- βWhen you want to measure how many users or systems an attack reached.
- βWhen you need a proposed response plan without the agent carrying it out.
Skill link
https://github.com/anthropics/defending-code-reference-harness/blob/main/.claude/skills/dnr-respond/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βCan you check whether this suspicious login alert led to a successful attack, and how far it spread?β
5 new skills a week. 1 minute to read.
How it works
The agent searches the logs for the lead, decides whether the attack succeeded, checks the root cause in the source, and writes a plan that you review before anything is done.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
dnr-respond
Lead-in-hand incident response: take one concrete starting point and answer the four questions an incident commander needs, in order β what happened, did it succeed, how far did it go, and what do we do about it. The output is a verdict, a quantified blast radius, a root cause proven in source, and a response plan that is proposed, never executed.
Invoke with /dnr-respond <lead> [--logs dir] [--repo path] [--fresh].
The lead ($1) can be:
- an incident id from the hunt's
INCIDENTS.json(e.g.INC-2) β the/dnr-hunthandoff - an alert pasted from an alert queue (JSON line or prose)
- an IOC: an IP, an account name, a route, a session identifier
- free text ("a customer says their address was quoted in a phishing email")
Other arguments:
--logs= logs directory or dnr target directory (same resolution as/dnr-hunt; defaults totargets/dnrcanaryif it exists, else cwd).--repo= application source (defaults to the target'sapp/).--fresh= ignore any checkpoint in the run dir's.dnr-respond-state/and mint a new run dir.
Hard rules (shared with /dnr-hunt β the track's contract)
- Log evidence alone never confirms a vulnerability.
confirmed_exploitedrequires log evidence + the flaw in source + a PoC fired locally this session. Otherwise the ceiling issuspected. - Query, don't read. Never
Readorcata log file;wc/head/tailto profile,grep/awk/sort/uniq/python3to interrogate. Small files (alert queues, error logs under ~200 lines) may be read whole. - Propose, never execute. No blocking, disabling, rotating, or config changes β in any environment, including the demo app. The plan names actions; humans execute them.
- Local only. PoCs fire at
127.0.0.1against an instance you started. Never touch a remote host. - Every number is a query result. "How many records" and "how many customers" get answered by pipelines run this session, never estimated.
Run directory and checkpointing
First action β establish the run directory, the same way /dnr-hunt
does, but as a consumer. Let TARGET be the basename of the resolved
--logs/target path (default targets/dnrcanary) and SCOPE that path.
- Lead is
INC-n(the/dnr-hunthandoff, or a second lead from a hunt you already started responding to): work the response into the investigation that incident lives in.{RUN}is the newestresults/TARGET/<timestamp>/directory that contains anINCIDENTS.jsonβ find it with Bash, e.g.ls -1d results/TARGET/*/ | sort -r | while read d; do [ -f "$d/INCIDENTS.json" ] && echo "$d" && break; done. Do not callrundirfor anINC-nlead βrundirmints a fresh empty dir once a prior/dnr-respondin that dir has completed, which would strand the incident'sINCIDENTS.jsonin the old dir. Only if no run dir holds anINCIDENTS.json(you were handedINC-nbut never ran the hunt) fall through to therundirline below. - Any other lead (alert, IOC, free text): Bash
python3 .claude/skills/_lib/checkpoint.py rundir results/TARGET --state .dnr-respond-state --scope "SCOPE"(append--freshif it's in$ARGUMENTS). This adopts the newest run dir for the target if one exists, else mints a freshresults/TARGET/<timestamp>/.
That path is {RUN}; substitute the literal path everywhere below, and
double-quote it (and SCOPE) in Bash.
Checkpoint mechanics are identical to /dnr-hunt, state dir
{RUN}/.dnr-respond-state/, phases 0β4. When {RUN} already holds a
completed .dnr-respond-state from an earlier lead, load reports
complete and the rules below reset it cleanly β a second lead enriches the
same INCIDENTS.json and writes its own RESPONSE-<lead>.md. On start:
python3 .claude/skills/_lib/checkpoint.py load {RUN}/.dnr-respond-state β
absent/complete/--fresh β reset and start at Phase 0; running with
phase_done == N β read phase0.jsonβ¦phaseN.json, resume at N+1. After
each phase: Write payload to {RUN}/.dnr-respond-state/_chunk.tmp, then
checkpoint.py save {RUN}/.dnr-respond-state <N> <name> --from {RUN}/.dnr-respond-state/_chunk.tmp.
Never write progress.json directly; never pass payload via heredoc/stdin.
After outputs: checkpoint.py done {RUN}/.dnr-respond-state 4.
Phase 0 β Parse the lead, locate inputs
- Resolve
--logs(dnr target config or bare directory) and inventory log fil
FAQ
Does the agent fix the problem itself?
No. The plan is only proposed and is never carried out by the agent.
What can the lead be?
It can be an incident ID, a pasted alert, an address, an account name or a short description.
Is this the same as the hunt skill?
It uses the same rules, but it starts from one known lead instead of searching with no alert.
Details
Original description by the author
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.
Popularity
- GitHub stars
- 7.7k
- Ranking position
- #13102
- License
- β
- Updated
- 8/6/2026
Comments
- β¦
More skills from this repository
customize
7.7kHelps your agent adapt an AI vulnerability-finding pipeline to a new bug type, language or target, by rewriting the parts that are specific.
dnr-hunt
7.7kHelps your agent hunt through web logs with no alert in hand, looking for signs of attack and writing up any incidents it finds.
patch
7.7kHelps your agent draft candidate code fixes for verified security findings, saved as diffs for a person to review.
quickstart
7.7kGives your agent a short guide to a security scanning toolkit and answers questions about how to use its tools.
Similar skills
reverse-engineer-anything
422kHelps your agent look inside shipped apps and packages to explain features, compare versions, or guide a rebuild, using the REA tool.
1password
394kHelps your agent set up the 1Password CLI, sign in, and read or inject secrets without printing their values into chat.
healthcheck
394kHelps your agent audit the computer or server that runs OpenClaw for security risks, such as SSH, firewall, updates, and backups, then suggest safe fixes.