[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EHT2R5NVWBP5XTXQYGT6XY":3,"skill-same:01M7EHT2R5NVWBP5XTXQYGT6XY":75},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":47,"commitSha":48,"skillDirectory":49,"forksCount":50,"repositoryHtmlUrl":51,"repositoryHomepageUrl":6,"ownerHtmlUrl":52,"ownerBlogUrl":6,"ownerDescription":53,"updatedAt":54,"install":55,"resources":68},"01M7EHT2R5NVWBP5XTXQYGT6XY","dnr-respond",null,"Incident response workup for a lead in hand — an alert, an IOC, or a \u002Fdnr-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\u002Fremediation\u002Frecovery plan. Use when asked to \"respond to this alert\", \"work this incident\", \"how bad is this\", or \"run dnr-respond\". \u002Fdnr-hunt is the no-alert entry to the same track.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fdnr-respond\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: dnr-respond\ndescription: Incident response workup for a lead in hand — an alert, an IOC,\n  or a \u002Fdnr-hunt finding. Scopes the lead across the logs, verdicts whether\n  the attack succeeded, quantifies blast radius, confirms root cause in\n  source with a local PoC, and writes a proposed (never executed)\n  containment\u002Fremediation\u002Frecovery plan. Use when asked to \"respond to this\n  alert\", \"work this incident\", \"how bad is this\", or \"run dnr-respond\".\n  \u002Fdnr-hunt is the no-alert entry to the same track.\nargument-hint: \"\u003Clead> [--logs dir] [--repo path] [--fresh]\"\nallowed-tools:\n  - Read\n  - Glob\n  - Grep\n  - Write\n  - Bash(rg:*)\n  - Bash(grep:*)\n  - Bash(awk:*)\n  - Bash(sed:*)\n  - Bash(sort:*)\n  - Bash(uniq:*)\n  - Bash(cut:*)\n  - Bash(head:*)\n  - Bash(tail:*)\n  - Bash(wc:*)\n  - Bash(ls:*)\n  - Bash(du:*)\n  - Bash(file:*)\n  - Bash(jq:*)\n  - Bash(python3:*)\n  - Bash(curl:*)\n  - Bash(kill:*)\n---\n\n# dnr-respond\n\nLead-in-hand incident response: take one concrete starting point and answer\nthe four questions an incident commander needs, in order — **what happened,\ndid it succeed, how far did it go, and what do we do about it.** The output\nis a verdict, a quantified blast radius, a root cause proven in source, and\na response plan that is *proposed, never executed*.\n\nInvoke with `\u002Fdnr-respond \u003Clead> [--logs dir] [--repo path] [--fresh]`.\n\n**The lead (`$1`) can be:**\n- an incident id from the hunt's `INCIDENTS.json` (e.g. `INC-2`) — the\n  `\u002Fdnr-hunt` handoff\n- an alert pasted from an alert queue (JSON line or prose)\n- an IOC: an IP, an account name, a route, a session identifier\n- free text (\"a customer says their address was quoted in a phishing email\")\n\n**Other arguments:**\n- `--logs` = logs directory or dnr target directory (same resolution as\n  `\u002Fdnr-hunt`; defaults to `targets\u002Fdnrcanary` if it exists, else cwd).\n- `--repo` = application source (defaults to the target's `app\u002F`).\n- `--fresh` = ignore any checkpoint in the run dir's `.dnr-respond-state\u002F`\n  and mint a new run dir.\n\n## Hard rules (shared with \u002Fdnr-hunt — the track's contract)\n\n1. **Log evidence alone never confirms a vulnerability.**\n   `confirmed_exploited` requires log evidence + the flaw in source + a PoC\n   fired locally this session. Otherwise the ceiling is `suspected`.\n2. **Query, don't read.** Never `Read` or `cat` a log file; `wc`\u002F`head`\u002F\n   `tail` to profile, `grep`\u002F`awk`\u002F`sort`\u002F`uniq`\u002F`python3` to interrogate.\n   Small files (alert queues, error logs under ~200 lines) may be read whole.\n3. **Propose, never execute.** No blocking, disabling, rotating, or config\n   changes — in any environment, including the demo app. The plan names\n   actions; humans execute them.\n4. **Local only.** PoCs fire at `127.0.0.1` against an instance you\n   started. Never touch a remote host.\n5. **Every number is a query result.** \"How many records\" and \"how many\n   customers\" get answered by pipelines run this session, never estimated.\n\n## Run directory and checkpointing\n\n**First action — establish the run directory**, the same way `\u002Fdnr-hunt`\ndoes, but as a *consumer*. Let `TARGET` be the basename of the resolved\n`--logs`\u002Ftarget path (default `targets\u002Fdnrcanary`) and `SCOPE` that path.\n\n- **Lead is `INC-n`** (the `\u002Fdnr-hunt` handoff, or a second lead from a hunt\n  you already started responding to): work the response into the investigation\n  that incident lives in. `{RUN}` is the newest `results\u002FTARGET\u002F\u003Ctimestamp>\u002F`\n  directory that contains an `INCIDENTS.json` — find it with Bash, e.g.\n  `ls -1d results\u002FTARGET\u002F*\u002F | sort -r | while read d; do [ -f \"$d\u002FINCIDENTS.json\" ] && echo \"$d\" && break; done`.\n  Do **not** call `rundir` for an `INC-n` lead — `rundir` mints a fresh empty\n  dir once a prior `\u002Fdnr-respond` in that dir has completed, which would strand\n  the incident's `INCIDENTS.json` in the old dir. Only if no run dir holds an\n  `INCIDENTS.json` (you were handed `INC-n` but never ran the hunt) fall through\n  to the `rundir` line below.\n- **Any other lead** (alert, IOC, free text): Bash\n  `python3 .claude\u002Fskills\u002F_lib\u002Fcheckpoint.py rundir results\u002FTARGET --state .dnr-respond-state --scope \"SCOPE\"`\n  (append `--fresh` if it's in `$ARGUMENTS`). This adopts the newest run dir for\n  the target if one exists, else mints a fresh `results\u002FTARGET\u002F\u003Ctimestamp>\u002F`.\n\nThat path is `{RUN}`; substitute the literal path everywhere below, and\ndouble-quote it (and `SCOPE`) in Bash.\n\nCheckpoint mechanics are identical to `\u002Fdnr-hunt`, state dir\n`{RUN}\u002F.dnr-respond-state\u002F`, phases 0–4. When `{RUN}` already holds a\n**completed** `.dnr-respond-state` from an earlier lead, `load` reports\n`complete` and the rules below reset it cleanly — a second lead enriches the\nsame `INCIDENTS.json` and writes its own `RESPONSE-\u003Clead>.md`. On start:\n`python3 .claude\u002Fskills\u002F_lib\u002Fcheckpoint.py load {RUN}\u002F.dnr-respond-state` —\nabsent\u002Fcomplete\u002F`--fresh` → `reset` and start at Phase 0; running with\n`phase_done == N` → read `phase0.json`…`phaseN.json`, resume at N+1. After\neach phase: Write payload to `{RUN}\u002F.dnr-respond-state\u002F_chunk.tmp`, then\n`checkpoint.py save {RUN}\u002F.dnr-respond-state \u003CN> \u003Cname> --from {RUN}\u002F.dnr-respond-state\u002F_chunk.tmp`.\nNever write `progress.json` directly; never pass payload via heredoc\u002Fstdin.\nAfter outputs: `checkpoint.py done {RUN}\u002F.dnr-respond-state 4`.\n\n## Phase 0 — Parse the lead, locate inputs\n\n1. Resolve `--logs` (dnr target config or bare directory) and inventory log\n   files (`du`, `wc -l`, `head -2` each — identify formats and field\n   positions). The corpus is expected to exist already — the target README\n   covers generating it.\n2. Parse the lead into starting entities:\n   - `INC-n` → read that entry from `{RUN}\u002FINCIDENTS.json` (the run dir\n     adopted above); its IPs, accounts, routes, and timeline rows are the\n     seed set.\n   - alert line → source IP, rule, path, timestamp.\n   - IOC → the entity itself.\n   - free text → extract the observables (who reported, what data, when);\n     the seed set may start as just a route or a table name.\n3. State the working question in one sentence (e.g. \"did 203.0.113.66's\n   activity against \u002Flogin succeed, and if not, what did?\"). Everything in\n   Phase 1 serves that question.\n\nCheckpoint `phase0.json`:\n`{\"lead\": ..., \"lead_type\": ..., \"entities\": {\"ips\": [], \"accounts\": [], \"routes\": [], \"windows\": []}, \"question\": ..., \"logs_dir\": ..., \"repo\": ..., \"files\": [...]}`\n\n## Phase 1 — Scope: pull everything the entities touched\n\nFor each seed entity, extract its complete activity, then expand one ring:\n\n- **Per IP:** every request — time-ordered, with route, status, size, UA,\n  and authenticated user. Summarize phases of behavior, don't paste\n  hundreds of lines.\n- **Per account:** every login (from which IPs), every authenticated\n  request. Compare against that account's historical pattern in the same\n  corpus — new IP, new UA, new volume, new hours are all signal. (A new\n  IP *alone* is baseline noise — users roam; combine it with volume,\n  cadence, or what the session did next before treating it as a lead.)\n- **Per route:** who else hit it the same way in the window? One attacker\n  found via an alert may not be the only one.\n- **Ring expansion (once):** entities discovered above join the set —\n  the account an IP logged into, the second IP that touched the same\n  account, the route a session pivoted to. Expand once, deliberately;\n  \u002Fdnr-hunt's open-ended loop is the tool when scope keeps growing.\n- **Correlate the error log and alert queue** rows for all entities into\n  one timeline.\n\nCheckpoint `phase1.json`:\n`{\"activity\": [{\"entity\", \"summary\", \"first_seen\", \"last_seen\", \"requests\", \"key_lines\": [...]}], \"expanded_entities\": [...], \"timeline\": [...]}`\n\n## Phase 2 — Verdict and blast radius\n\nAnswer the working question with evidence on both sides:\n\n- **Did it succeed?** Status codes alone don't answer this — a 401 wall\n  says no; 200s with anomalous sizes, error-then-success progressions, and\n  data-shaped responses say yes. State the verdict and the discriminating\n  evidence.\n- **Blast radius, quantified.** What data was reached: which\n  routes\u002Ftables, how many records, over what time span, belonging to how\n  many distinct users\u002Fcustomers. Each figure comes from a pipeline (count\n  the exfil-page sizes, count the distinct ids walked, join walked ids to\n  owners via the app's own data if available locally — running the\n  target's deterministic `seed_command` early, before Phase 3, is fine).\n- **Containment status check (read-only).** Is the activity ongoing at the\n  end of the corpus window, or did it stop? When was the last attacker\n  action?\n- If the verdict is \"did not succeed\", the workup doesn't end — say what\n  the attacker was *trying* and why it failed; that feeds the plan's\n  hardening section and the `ruled_out` record.\n\nCheckpoint `phase2.json`:\n`{\"verdict\": ..., \"succeeded\": bool, \"discriminators\": [...], \"blast_radius\": {\"data\": ..., \"records\": N, \"distinct_victims\": N, \"window\": ...}, \"ongoing\": bool, \"last_activity\": ...}`\n\n## Phase 3 — Root cause and PoC\n\nSame bar as `\u002Fdnr-hunt` Phase 3–4:\n\n1. Read the implicated handler(s) in `--repo`; name the flaw (or the\n   defense) at file\u002Ffunction precision; check sibling routes for the same\n   flaw class.\n2. Seed and start the app locally per target config: `seed_command` \u002F\n   `app_command` are target-relative — run them with the target\n   directory as cwd; launch in the background via a single command that\n   prints the PID (the same `python3 -c \"...subprocess.Popen...\"` pattern\n   \u002Fdnr-hunt Phase 4 shows, with the port override env var if the default\n   port is busy). Fire the **minimal** PoC, record command + response\n   excerpt, fire the negative PoC against defended routes, then\n   `kill \u003Cpid>` (never by port or pattern).\n3. No runnable app → verdict ceiling is `suspected`, stated explicitly.\n\nCheckpoint `phase3.json`:\n`{\"root_cause\": {\"file\", \"function\", \"mechanism\"}, \"poc\": {\"command\", \"status\", \"response_excerpt\"}, \"negative_poc\": {...}, \"siblings_checked\": [...]}`\n\n## Phase 4 — The response plan (PROPOSED, NEVER EXECUTED) and outputs\n\nWrite the plan to `{RUN}\u002FRESPONSE.md` — or `{RUN}\u002FRESPONSE-\u003Clead>.md` (e.g.\n`RESPONSE-INC-2.md`) if a `RESPONSE.md` from a different lead already\nexists in the run dir; never silently overwrite another incident's plan.\nSections, every action carrying **what \u002F why \u002F risk-if-wrong**:\n\n1. **Verdict & summary** — three sentences: what happened, did it succeed,\n   how far it went.\n2. **Timeline** — the merged entity timeline from Phase 1.\n3. **Containment (proposed)** — block\u002Fdeny candidates (IPs, sessions,\n   tokens), accounts to suspend, routes to rate-limit or disable. For each:\n   the evidence line that justifies it and what breaks if the call is wrong\n   (e.g. blocking a NAT IP locks out legitimate users behind it).\n4. **Eradication & remediation (proposed)** — the code fix, described at\n   file\u002Ffunction level, handed off as a `\u002Ftriage`-compatible vuln entry;\n   interim mitigations if the fix will take time.\n5. **Recovery (proposed)** — exactly which credentials rotate (the queried\n   list, not \"all users\"), which customers get notified (the distinct-victim\n   list from Phase 2), what monitoring confirms the attacker is out.\n6. **Detection engineering (proposed)** — the rules that would have caught\n   this earlier, derived from what you actually used to find it: the\n   discriminating queries from Phase 2 turned into alert logic (e.g.\n   error-rate per source on a route; sequential-id access cadence;\n   account-from-new-IP at volume). Note which existing alerts fired,\n   which were noise, and what that says about the queue.\n7. **Open questions** — what this corpus cannot answer (earlier history,\n   other log sources, whether stolen data was used elsewhere).\n\nThen update `{RUN}\u002FINCIDENTS.json` (same schema as `\u002Fdnr-hunt`; create it if\nabsent): add or enrich this incident — verdict, quantified impact, root\ncause, PoC, timeline. Extra keys are fine — graders match on content, not\nstructure. Negative outcomes go to `ruled_out`.\n\nMark complete (`checkpoint.py done {RUN}\u002F.dnr-respond-state 4`) and point the\nuser onward (substitute the literal `{RUN}` path):\n- for the fix, from inside `{RUN}`: `\u002Ftriage INCIDENTS.json --repo \u003Crepo>`\n  then `\u002Fpatch TRIAGE.json --repo \u003Crepo>` — both write to the directory\n  they're invoked from, so running them there lands the verdicts and\n  patches beside the incidents\n- on a dnr target: `python \u003Ctarget>\u002Fgrade.py {RUN}\u002FINCIDENTS.json` to\n  self-score (the user runs this)\n- a human reviews and executes (or rejects) each proposed action; nothing\n  in RESPONSE.md has been done\n\n## Customizing beyond the demo\n\n- Feed it your real alert queue one alert at a time — the lead parser\n  takes any JSON or prose alert; the method doesn't change.\n- Auth logs, CDN\u002FWAF exports, and EDR threat events slot into Phase 1 as\n  additional per-entity activity sources; keep the single merged timeline.\n- The Phase 4 plan template is the part most worth adapting to your org:\n  map containment to your actual controls (WAF rules, IdP session\n  revocation, feature flags) — still as proposals routed to the owning\n  team, never as actions the agent takes.\n","# dnr-respond\n\nLead-in-hand incident response: take one concrete starting point and answer\nthe four questions an incident commander needs, in order — **what happened,\ndid it succeed, how far did it go, and what do we do about it.** The output\nis a verdict, a quantified blast radius, a root cause proven in source, and\na response plan that is *proposed, never executed*.\n\nInvoke with `\u002Fdnr-respond \u003Clead> [--logs dir] [--repo path] [--fresh]`.\n\n**The lead (`$1`) can be:**\n- an incident id from the hunt's `INCIDENTS.json` (e.g. `INC-2`) — the\n  `\u002Fdnr-hunt` handoff\n- an alert pasted from an alert queue (JSON line or prose)\n- an IOC: an IP, an account name, a route, a session identifier\n- free text (\"a customer says their address was quoted in a phishing email\")\n\n**Other arguments:**\n- `--logs` = logs directory or dnr target directory (same resolution as\n  `\u002Fdnr-hunt`; defaults to `targets\u002Fdnrcanary` if it exists, else cwd).\n- `--repo` = application source (defaults to the target's `app\u002F`).\n- `--fresh` = ignore any checkpoint in the run dir's `.dnr-respond-state\u002F`\n  and mint a new run dir.\n\n## Hard rules (shared with \u002Fdnr-hunt — the track's contract)\n\n1. **Log evidence alone never confirms a vulnerability.**\n   `confirmed_exploited` requires log evidence + the flaw in source + a PoC\n   fired locally this session. Otherwise the ceiling is `suspected`.\n2. **Query, don't read.** Never `Read` or `cat` a log file; `wc`\u002F`head`\u002F\n   `tail` to profile, `grep`\u002F`awk`\u002F`sort`\u002F`uniq`\u002F`python3` to interrogate.\n   Small files (alert queues, error logs under ~200 lines) may be read whole.\n3. **Propose, never execute.** No blocking, disabling, rotating, or config\n   changes — in any environment, including the demo app. The plan names\n   actions; humans execute them.\n4. **Local only.** PoCs fire at `127.0.0.1` against an instance you\n   started. Never touch a remote host.\n5. **Every number is a query result.** \"How many records\" and \"how many\n   customers\" get answered by pipelines run this session, never estimated.\n\n## Run directory and checkpointing\n\n**First action — establish the run directory**, the same way `\u002Fdnr-hunt`\ndoes, but as a *consumer*. Let `TARGET` be the basename of the resolved\n`--logs`\u002Ftarget path (default `targets\u002Fdnrcanary`) and `SCOPE` that path.\n\n- **Lead is `INC-n`** (the `\u002Fdnr-hunt` handoff, or a second lead from a hunt\n  you already started responding to): work the response into the investigation\n  that incident lives in. `{RUN}` is the newest `results\u002FTARGET\u002F\u003Ctimestamp>\u002F`\n  directory that contains an `INCIDENTS.json` — find it with Bash, e.g.\n  `ls -1d results\u002FTARGET\u002F*\u002F | sort -r | while read d; do [ -f \"$d\u002FINCIDENTS.json\" ] && echo \"$d\" && break; done`.\n  Do **not** call `rundir` for an `INC-n` lead — `rundir` mints a fresh empty\n  dir once a prior `\u002Fdnr-respond` in that dir has completed, which would strand\n  the incident's `INCIDENTS.json` in the old dir. Only if no run dir holds an\n  `INCIDENTS.json` (you were handed `INC-n` but never ran the hunt) fall through\n  to the `rundir` line below.\n- **Any other lead** (alert, IOC, free text): Bash\n  `python3 .claude\u002Fskills\u002F_lib\u002Fcheckpoint.py rundir results\u002FTARGET --state .dnr-respond-state --scope \"SCOPE\"`\n  (append `--fresh` if it's in `$ARGUMENTS`). This adopts the newest run dir for\n  the target if one exists, else mints a fresh `results\u002FTARGET\u002F\u003Ctimestamp>\u002F`.\n\nThat path is `{RUN}`; substitute the literal path everywhere below, and\ndouble-quote it (and `SCOPE`) in Bash.\n\nCheckpoint mechanics are identical to `\u002Fdnr-hunt`, state dir\n`{RUN}\u002F.dnr-respond-state\u002F`, phases 0–4. When `{RUN}` already holds a\n**completed** `.dnr-respond-state` from an earlier lead, `load` reports\n`complete` and the rules below reset it cleanly — a second lead enriches the\nsame `INCIDENTS.json` and writes its own `RESPONSE-\u003Clead>.md`. On start:\n`python3 .claude\u002Fskills\u002F_lib\u002Fcheckpoint.py load {RUN}\u002F.dnr-respond-state` —\nabsent\u002Fcomplete\u002F`--fresh` → `reset` and start at Phase 0; running with\n`phase_done == N` → read `phase0.json`…`phaseN.json`, resume at N+1. After\neach phase: Write payload to `{RUN}\u002F.dnr-respond-state\u002F_chunk.tmp`, then\n`checkpoint.py save {RUN}\u002F.dnr-respond-state \u003CN> \u003Cname> --from {RUN}\u002F.dnr-respond-state\u002F_chunk.tmp`.\nNever write `progress.json` directly; never pass payload via heredoc\u002Fstdin.\nAfter outputs: `checkpoint.py done {RUN}\u002F.dnr-respond-state 4`.\n\n## Phase 0 — Parse the lead, locate inputs\n\n1. Resolve `--logs` (dnr target config or bare directory) and inventory log\n   files (`du`, `wc -l`, `head -2` each — identify formats and field\n   positions). The corpus is expected to exist already — the target README\n   covers generating it.\n2. Parse the lead into starting entities:\n   - `INC-n` → read that entry from `{RUN}\u002FINCIDENTS.json` (the run dir\n     adopted above); its IPs, accounts, routes, and timeline rows are the\n     seed set.\n   - alert line → source IP, rule, path, timestamp.\n   - IOC → the entity itself.\n   - free text → extract the observables (who reported, what data, when);\n     the seed set may start as just a route or a table name.\n3. State the working question in one sentence (e.g. \"did 203.0.113.66's\n   activity against \u002Flogin succeed, and if not, what did?\"). Everything in\n   Phase 1 serves that question.\n\nCheckpoint `phase0.json`:\n`{\"lead\": ..., \"lead_type\": ..., \"entities\": {\"ips\": [], \"accounts\": [], \"routes\": [], \"windows\": []}, \"question\": ..., \"logs_dir\": ..., \"repo\": ..., \"files\": [...]}`\n\n## Phase 1 — Scope: pull everything the entities touched\n\nFor each seed entity, extract its complete activity, then expand one ring:\n\n- **Per IP:** every request — time-ordered, with route, status, size, UA,\n  and authenticated user. Summarize phases of behavior, don't paste\n  hundreds of lines.\n- **Per account:** every login (from which IPs), every authenticated\n  request. Compare against that account's historical pattern in the same\n  corpus — new IP, new UA, new volume, new hours are all signal. (A new\n  IP *alone* is baseline noise — users roam; combine it with volume,\n  cadence, or what the session did next before treating it as a lead.)\n- **Per route:** who else hit it the same way in the window? One attacker\n  found via an alert may not be the only one.\n- **Ring expansion (once):** entities discovered above join the set —\n  the account an IP logged into, the second IP that touched the same\n  account, the route a session pivoted to. Expand once, deliberately;\n  \u002Fdnr-hunt's open-ended loop is the tool when scope keeps growing.\n- **Correlate the error log and alert queue** rows for all entities into\n  one timeline.\n\nCheckpoint `phase1.json`:\n`{\"activity\": [{\"entity\", \"summary\", \"first_seen\", \"last_seen\", \"requests\", \"key_lines\": [...]}], \"expanded_entities\": [...], \"timeline\": [...]}`\n\n## Phase 2 — Verdict and blast radius\n\nAnswer the working question with evidence on both sides:\n\n- **Did it succeed?** Status codes alone don't answer this — a 401 wall\n  says no; 200s with anomalous sizes, error-then-success progressions, and\n  data-shaped responses say yes. State the verdict and the discriminating\n  evidence.\n- **Blast radius, quantified.** What data was reached: which\n  routes\u002Ftables, how many records, over what time span, belonging to how\n  many distinct users\u002Fcustomers. Each figure comes from a pipeline (count\n  the exfil-page sizes, count the distinct ids walked, join walked ids to\n  owners via the app's own data if available locally — running the\n  target's deterministic `seed_command` early, before Phase 3, is fine).\n- **Containment status check (read-only).** Is the activity ongoing at the\n  end of the corpus window, or did it stop? When was the last attacker\n  action?\n- If the verdict is \"did not succeed\", the workup doesn't end — say what\n  the attacker was *trying* and why it failed; that feeds the plan's\n  hardening section and the `ruled_out` record.\n\nCheckpoint `phase2.json`:\n`{\"verdict\": ..., \"succeeded\": bool, \"discriminators\": [...], \"blast_radius\": {\"data\": ..., \"records\": N, \"distinct_victims\": N, \"window\": ...}, \"ongoing\": bool, \"last_activity\": ...}`\n\n## Phase 3 — Root cause and PoC\n\nSame bar as `\u002Fdnr-hunt` Phase 3–4:\n\n1. Read the implicated handler(s) in `--repo`; name the flaw (or the\n   defense) at file\u002Ffunction precision; check sibling routes for the same\n   flaw class.\n2. Seed and start the app locally per target config: `seed_command` \u002F\n   `app_command` are target-relative — run them with the target\n   directory as cwd; launch in the background via a single command that\n   prints the PID (the same `python3 -c \"...subprocess.Popen...\"` pattern\n   \u002Fdnr-hunt Phase 4 shows, with the port override env var if the default\n   port is busy). Fire the **minimal** PoC, record command + response\n   excerpt, fire the negative PoC against defended routes, then\n   `kill \u003Cpid>` (never by port or pattern).\n3. No runnable app → verdict ceiling is `suspected`, stated explicitly.\n\nCheckpoint `phase3.json`:\n`{\"root_cause\": {\"file\", \"function\", \"mechanism\"}, \"poc\": {\"command\", \"status\", \"response_excerpt\"}, \"negative_poc\": {...}, \"siblings_checked\": [...]}`\n\n## Phase 4 — The response plan (PROPOSED, NEVER EXECUTED) and outputs\n\nWrite the plan to `{RUN}\u002FRESPONSE.md` — or `{RUN}\u002FRESPONSE-\u003Clead>.md` (e.g.\n`RESPONSE-INC-2.md`) if a `RESPONSE.md` from a different lead already\nexists in the run dir; never silently overwrite another incident's plan.\nSections, every action carrying **what \u002F why \u002F risk-if-wrong**:\n\n1. **Verdict & summary** — three sentences: what happened, did it succeed,\n   how far it went.\n2. **Timeline** — the merged entity timeline from Phase 1.\n3. **Containment (proposed)** — block\u002Fdeny candidates (IPs, sessions,\n   tokens), accounts to suspend, routes to rate-limit or disable. For each:\n   the evidence line that justifies it and what breaks if the call is wrong\n   (e.g. blocking a NAT IP locks out legitimate users behind it).\n4. **Eradication & remediation (proposed)** — the code fix, described at\n   file\u002Ffunction level, handed off as a `\u002Ftriage`-compatible vuln entry;\n   interim mitigations if the fix will take time.\n5. **Recovery (proposed)** — exactly which credentials rotate (the queried\n   list, not \"all users\"), which customers get notified (the distinct-victim\n   list from Phase 2), what monitoring confirms the attacker is out.\n6. **Detection engineering (proposed)** — the rules that would have caught\n   this earlier, derived from what you actually used to find it: the\n   discriminating queries from Phase 2 turned into alert logic (e.g.\n   error-rate per source on a route; sequential-id access cadence;\n   account-from-new-IP at volume). Note which existing alerts fired,\n   which were noise, and what that says about the queue.\n7. **Open questions** — what this corpus cannot answer (earlier history,\n   other log sources, whether stolen data was used elsewhere).\n\nThen update `{RUN}\u002FINCIDENTS.json` (same schema as `\u002Fdnr-hunt`; create it if\nabsent): add or enrich this incident — verdict, quantified impact, root\ncause, PoC, timeline. Extra keys are fine — graders match on content, not\nstructure. Negative outcomes go to `ruled_out`.\n\nMark complete (`checkpoint.py done {RUN}\u002F.dnr-respond-state 4`) and point the\nuser onward (substitute the literal `{RUN}` path):\n- for the fix, from inside `{RUN}`: `\u002Ftriage INCIDENTS.json --repo \u003Crepo>`\n  then `\u002Fpatch TRIAGE.json --repo \u003Crepo>` — both write to the directory\n  they're invoked from, so running them there lands the verdicts and\n  patches beside the incidents\n- on a dnr target: `python \u003Ctarget>\u002Fgrade.py {RUN}\u002FINCIDENTS.json` to\n  self-score (the user runs this)\n- a human reviews and executes (or rejects) each proposed action; nothing\n  in RESPONSE.md has been done\n\n## Customizing beyond the demo\n\n- Feed it your real alert queue one alert at a time — the lead parser\n  takes any JSON or prose alert; the method doesn't change.\n- Auth logs, CDN\u002FWAF exports, and EDR threat events slot into Phase 1 as\n  additional per-entity activity sources; keep the single merged timeline.\n- The Phase 4 plan template is the part most worth adapting to your org:\n  map containment to your actual controls (WAF rules, IdP session\n  revocation, feature flags) — still as proposals routed to the owning\n  team, never as actions the agent takes.\n",{"name":5,"description":7,"allowed-tools":24,"argument-hint":46},[25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],"Read","Glob","Grep","Write","Bash(rg:*)","Bash(grep:*)","Bash(awk:*)","Bash(sed:*)","Bash(sort:*)","Bash(uniq:*)","Bash(cut:*)","Bash(head:*)","Bash(tail:*)","Bash(wc:*)","Bash(ls:*)","Bash(du:*)","Bash(file:*)","Bash(jq:*)","Bash(python3:*)","Bash(curl:*)","Bash(kill:*)","\u003Clead> [--logs dir] [--repo path] [--fresh]","main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","04-安全渗透\u002Fdnr-respond",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":56,"prompt":66,"zipAvailable":67},[57,60,63],{"tool":58,"command":59},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill dnr-respond",{"tool":61,"command":62},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill dnr-respond",{"tool":64,"command":65},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill dnr-respond","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fdnr-respond\u002FSKILL.md",true,[69],{"path":70,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":73,"sourceHtmlUrl":74},"README.md","REFERENCE","参考文档",2960,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fdnr-respond\u002FREADME.md",[76,84,89,96,103,110],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":83},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":85,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":83},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":83},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":83},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":83},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":83},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]