dnr-respond
Skill này làm gì
Skill này hướng dẫn việc ứng phó với một manh mối bảo mật cụ thể, như một cảnh báo, một địa chỉ đáng ngờ hoặc một phát hiện từ đợt săn tìm. Nó kiểm tra log, mã nguồn và một bài kiểm thử cục bộ, rồi đề xuất các bước ngăn chặn và sửa lỗi. Skill dành cho người ứng phó sự cố bảo mật.
Khi nào nên dùng
- ✓Khi bạn có một cảnh báo bảo mật và cần biết cuộc tấn công có thành công không.
- ✓Khi bạn muốn đo xem một cuộc tấn công đã ảnh hưởng đến bao nhiêu người dùng hoặc hệ thống.
- ✓Khi bạn cần một kế hoạch ứng phó được đề xuất mà agent không tự thực hiện.
Liên kết skill
https://github.com/anthropics/defending-code-reference-harness/blob/main/.claude/skills/dnr-respond/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể kiểm tra xem cảnh báo đăng nhập đáng ngờ này có dẫn đến một cuộc tấn công thành công không, và nó đã lan rộng đến đâu?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent tìm manh mối trong log, quyết định cuộc tấn công có thành công không, kiểm tra nguyên nhân gốc trong mã nguồn, rồi viết một kế hoạch để bạn xem xét trước khi thực hiện bất cứ việc gì.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Agent có tự sửa vấn đề không?
Không. Kế hoạch chỉ được đề xuất và agent không bao giờ tự thực hiện.
Manh mối có thể là gì?
Có thể là mã sự cố, một cảnh báo đã dán vào, một địa chỉ, tên tài khoản hoặc mô tả ngắn.
Có giống skill săn tìm không?
Nó dùng cùng quy tắc, nhưng bắt đầu từ một manh mối đã biết thay vì tìm kiếm khi không có cảnh báo.
Chi tiết
Mô tả gốc của tác giả
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.
Độ phổ biến
- Sao GitHub
- 7.7k
- Vị trí xếp hạng
- #13102
- Giấy phép
- —
- Cập nhật
- 6/8/2026
Bình luận
- …
Thêm skill từ kho mã này
customize
7.7kGiúp agent của bạn điều chỉnh một pipeline tìm lỗ hổng bảo mật bằng AI cho loại lỗi, ngôn ngữ hoặc mục tiêu mới, bằng cách viết lại các phần đặc thù.
dnr-hunt
7.7kGiúp agent của bạn săn tìm trong log web khi chưa có cảnh báo nào, tìm dấu hiệu tấn công và ghi lại các sự cố phát hiện được.
patch
7.7kGiúp agent của bạn soạn các bản sửa code đề xuất cho những phát hiện bảo mật đã xác minh, lưu dưới dạng diff để người xem xét.
quickstart
7.7kCho agent của bạn một hướng dẫn ngắn về bộ công cụ quét bảo mật và trả lời các câu hỏi về cách dùng những công cụ đó.
Skill tương tự
reverse-engineer-anything
422kGiúp agent của bạn xem bên trong các app và package đã phát hành để giải thích tính năng, so sánh phiên bản hoặc hướng dẫn dựng lại bằng công cụ REA.
1password
394kGiúp agent của bạn cài đặt CLI của 1Password, đăng nhập, và đọc hoặc đưa thông tin bí mật vào mà không in giá trị ra cuộc trò chuyện.
healthcheck
394kGiúp agent của bạn rà soát bảo mật máy tính hoặc máy chủ đang chạy OpenClaw, như SSH, tường lửa, cập nhật và sao lưu, rồi đề xuất cách sửa an toàn.