dnr-respond
하는 일
이 스킬은 경보, 의심스러운 주소, 탐색에서 나온 발견 사항처럼 특정 보안 단서 하나에 대한 대응을 안내합니다. 로그, 소스 코드, 로컬 테스트를 확인한 뒤 문제를 억제하고 해결할 단계를 제안합니다. 보안 대응 담당자를 위한 스킬입니다.
사용하는 경우
- ✓보안 경보가 하나 있고 공격이 성공했는지 알아야 할 때.
- ✓공격이 영향을 준 사용자나 시스템의 수를 측정하고 싶을 때.
- ✓에이전트가 직접 실행하지 않고 대응 계획만 필요할 때.
스킬 링크
https://github.com/anthropics/defending-code-reference-harness/blob/main/.claude/skills/dnr-respond/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 의심스러운 로그인 경보가 실제 공격으로 이어졌는지, 그리고 얼마나 퍼졌는지 확인해 주실 수 있나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 로그에서 단서를 찾고 공격이 성공했는지 판단합니다. 소스에서 근본 원인을 확인한 뒤, 사용자가 검토할 수 있는 계획을 작성하고 그 전에는 아무것도 실행하지 않습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
자주 묻는 질문
에이전트가 직접 문제를 고치나요?
아니요. 계획은 제안만 되며, 에이전트가 직접 실행하지 않습니다.
단서는 무엇일 수 있나요?
사건 ID, 붙여 넣은 경보, 주소, 계정 이름 또는 짧은 설명일 수 있습니다.
탐색 스킬과 같은 것인가요?
같은 규칙을 사용하지만, 경보 없이 검색하는 대신 알려진 단서 하나에서 시작합니다.
상세 정보
작성자의 원본 설명
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.
인기도
- GitHub 스타
- 7.7k
- 순위
- #13102
- 라이선스
- —
- 업데이트
- 2026. 8. 6.
댓글
- …
이 저장소의 다른 스킬
customize
7.7k에이전트가 AI 취약점 탐지 파이프라인에서 대상에 특화된 부분만 새 버그 유형, 언어, 대상에 맞게 고치도록 돕습니다.
dnr-hunt
7.7k에이전트가 경보 없이 웹 로그에서 공격의 흔적을 찾고, 발견한 사건을 정리하도록 돕습니다.
patch
7.7k에이전트가 검증된 보안 발견 사항의 코드 수정안을 diff 파일로 작성해, 사람이 검토할 수 있게 돕습니다.
quickstart
7.7k에이전트가 보안 스캔 도구 모음을 짧게 소개하고, 도구 사용법에 대한 질문에 답하도록 돕습니다.