dnr-respond
यह क्या करती है
यह स्किल एक खास सुरक्षा सुराग, जैसे अलर्ट, संदिग्ध पता या खोज का नतीजा, पर प्रतिक्रिया देने का मार्गदर्शन करती है। यह लॉग, सोर्स कोड और स्थानीय टेस्ट जाँचती है, फिर समस्या रोकने और ठीक करने के कदम सुझाती है। यह सुरक्षा प्रतिक्रिया देने वालों के लिए है।
कब इस्तेमाल करें
- ✓जब आपके पास एक सुरक्षा अलर्ट है और जानना है कि हमला सफल हुआ या नहीं।
- ✓जब आप मापना चाहते हैं कि हमला कितने यूज़र या सिस्टम तक पहुंचा।
- ✓जब आपको एजेंट से योजना लागू करवाए बिना प्रस्तावित प्रतिक्रिया योजना चाहिए।
Skill का लिंक
https://github.com/anthropics/defending-code-reference-harness/blob/main/.claude/skills/dnr-respond/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“क्या आप जाँच सकते हैं कि यह संदिग्ध लॉगिन अलर्ट किसी सफल हमले तक ले गया, और वह कितना फैला?”
हर हफ़्ते 5 नई skills, 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, चिपकाया गया अलर्ट, कोई पता, खाते का नाम या छोटा विवरण हो सकता है।
क्या यह hunt स्किल जैसा ही है?
यह उन्हीं नियमों का उपयोग करती है, पर यह एक ज्ञात सुराग से शुरू होती है, बिना अलर्ट के खोज से नहीं।
जानकारी
लेखक का मूल विवरण
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
- लाइसेंस
- —
- अपडेट की गई
- 6/8/2026
कमेंट
- …
इस repository की और skills
customize
7.7kयह आपके एजेंट को AI से सुरक्षा कमज़ोरी खोजने वाली पाइपलाइन को नए बग प्रकार, भाषा या लक्ष्य के लिए ढालने में मदद करती है, खास हिस्से दोबारा लिखकर।
dnr-hunt
7.7kयह आपके एजेंट को बिना किसी अलर्ट के वेब लॉग में हमले के संकेत खोजने और मिली घटनाओं का लिखित विवरण बनाने में मदद करती है।
patch
7.7kयह आपके एजेंट को जाँचे गए सुरक्षा निष्कर्षों के लिए कोड सुधार के ड्राफ़्ट बनाने में मदद करती है, जिन्हें समीक्षा के लिए diff के रूप में सहेजा जाता है।
quickstart
7.7kयह आपके एजेंट को सुरक्षा स्कैनिंग टूलकिट का छोटा परिचय देती है और उसके टूल इस्तेमाल करने के सवालों के जवाब देती है।
मिलती-जुलती skills
reverse-engineer-anything
422kयह आपके एजेंट को REA टूल से शिप हुई ऐप्स और पैकेज को अंदर से समझने, वर्ज़न की तुलना करने या दोबारा बनाने में मदद करती है।
1password
394kयह आपके एजेंट को 1Password CLI सेट करने, साइन इन करने और सीक्रेट्स की वैल्यू चैट में छापे बिना उन्हें पढ़ने या इस्तेमाल करने में मदद करती है।
healthcheck
394kयह आपके एजेंट को उस कंप्यूटर या सर्वर का सुरक्षा ऑडिट करने देती है जिस पर OpenClaw चलता है, जिसमें SSH, firewall, अपडेट और बैकअप शामिल हैं, और फिर सुरक्षित सुधार सुझाती है।