dnr-respond
O que ela faz
Esta skill orienta a resposta a uma pista de segurança específica, como um alerta, um endereço suspeito ou um achado de uma busca. Ele verifica os logs, o código-fonte e um teste local, e depois propõe passos para conter e corrigir o problema. É para quem responde a incidentes de segurança.
Quando usar
- ✓Quando você tem um alerta de segurança e precisa saber se o ataque teve sucesso.
- ✓Quando você quer medir quantos usuários ou sistemas um ataque atingiu.
- ✓Quando você precisa de um plano de resposta proposto, sem que o agente o execute.
Link da skill
https://github.com/anthropics/defending-code-reference-harness/blob/main/.claude/skills/dnr-respond/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Pode verificar se este alerta de login suspeito levou a um ataque bem-sucedido, e até onde ele se espalhou?”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
O agente procura a pista nos logs, decide se o ataque teve sucesso, verifica a causa raiz no código-fonte e escreve um plano que você revisa antes de qualquer ação.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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
Perguntas frequentes
O agente corrige o problema sozinho?
Não. O plano é apenas proposto e nunca é executado pelo agente.
O que pode ser a pista?
Pode ser um ID de incidente, um alerta colado, um endereço, um nome de conta ou uma breve descrição.
É o mesmo que a skill de busca?
Usa as mesmas regras, mas parte de uma única pista conhecida, em vez de procurar sem nenhum alerta.
Detalhes
Descrição original do autor
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.
Popularidade
- Estrelas no GitHub
- 7,7 mil
- Posição no ranking
- #13102
- Licença
- —
- Atualizada em
- 06/08/2026
Comentários
- …
Mais skills deste repositório
customize
7,7 milAjuda seu agente a adaptar um pipeline de busca de vulnerabilidades com IA para um novo tipo de falha, linguagem ou alvo, reescrevendo as partes específicas.
dnr-hunt
7,7 milAjuda seu agente a vasculhar logs da web sem nenhum alerta em mãos, procurando sinais de ataque e registrando os incidentes que encontrar.
patch
7,7 milAjuda seu agente a rascunhar correções de código candidatas para achados de segurança verificados, salvas como diffs para uma pessoa revisar.
quickstart
7,7 milDá ao seu agente um guia curto sobre um conjunto de ferramentas de varredura de segurança e responde a perguntas sobre como usar essas ferramentas.
Skills parecidas
reverse-engineer-anything
422 milAjuda seu agente a analisar apps e pacotes já publicados para explicar recursos, comparar versões ou orientar uma reconstrução, usando a ferramenta REA.
1password
394 milAjuda seu agente a configurar a CLI do 1Password, fazer login e ler ou injetar segredos sem imprimir seus valores no chat.
healthcheck
394 milAjuda seu agente a auditar o computador ou servidor que roda o OpenClaw em busca de riscos como SSH, firewall, atualizações e backups, com correções seguras.