dnr-hunt
Qué hace
Esta skill hace una búsqueda proactiva en registros web y de aplicaciones en busca de indicios de compromiso. Formula hipótesis, las contrasta con los registros y con el código fuente, y documenta lo que confirma. Es para personal de seguridad que quiere buscar amenazas sin una alerta.
Cuándo usarla
- ✓Cuando quieres revisar registros en busca de indicios de ataque sin una alerta concreta.
- ✓Cuando alguien te pide buscar una campaña o comprobar indicios de compromiso.
- ✓Cuando necesitas un registro escrito de lo que se revisó y de lo que se confirmó.
Link de la skill
https://github.com/anthropics/defending-code-reference-harness/blob/main/.claude/skills/dnr-hunt/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“¿Puedes revisar nuestros registros web y buscar indicios de que alguien ha estado atacando el sitio?”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente empieza con una línea base de actividad normal y después contrasta una idea cada vez con los registros. Un hallazgo solo cuenta como real cuando se comprueba en el código fuente y mediante una prueba.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
dnr-hunt
Proactive threat hunt: logs and source in, incidents out. You start with no alert — the question is "is there anything in here that shouldn't be?" The method is the deliverable as much as the findings: baseline first, then hypothesis → query → pivot, every step in writing, every suspicion confirmed in source and by detonation before it's called real.
Invoke with /dnr-hunt [target-or-logs-dir] [--repo path] [--fresh].
Arguments:
$1= a dnr target directory (containsconfig.yamlwithkind: dnr, e.g.targets/dnrcanary), or a bare directory of log files. Defaults totargets/dnrcanaryif it exists, else cwd.--repo= source tree of the application that produced the logs. For a dnr target this defaults to itsapp/directory. Without source, no finding can rise abovesuspected(see the hard rules).--fresh= ignore any checkpoint in the run dir's.dnr-hunt-state/and mint a new run dir.
Hard rules (these are the skill — do not relax them)
- Log evidence alone never confirms a vulnerability. Logs show that
something was attempted and how the app responded — they cannot show
the code is vulnerable. The verdict ladder:
confirmed_exploitedrequires all three: log evidence, the flaw identified in source (file + function), and a PoC you fired against a local instance in this session.suspected= log evidence (with or without a source read), but no fired PoC.attempted_not_vulnerable= attack traffic observed, but the source shows the defense and the PoC (if fired) bounces. Field teams have watched verifier agents "confirm" findings by reading observability logs and reporting what they said — the cheapest path to satisfying the criterion. The PoC fires or it doesn't; that can't be talked past.
- Query, don't read. Log files are deliberately bigger than any
context window. Never
Reada log file; nevercatone. Profile withwc/du/head/tail, then interrogate withgrep/rg/awk/sort/uniqpipelines (orpython3for anything stateful). Alert queues and error logs are usually small — check size first; under ~200 lines they may be read whole (the never-read rule targets the multi-MB corpus files, not these). - Propose, never execute. No blocking, no account disabling, no
credential rotation, no config changes — not even on the demo app.
Response actions belong in
/dnr-respond's plan, as proposals. - Local only. PoCs fire at
127.0.0.1against an app instance you started. Never send traffic to a remote host, no matter what the logs contain. - Every number is a query result. Row counts, request counts, time
spans, affected-customer counts — each one comes from a pipeline you ran
this session, quoted in the ledger. Never estimate from memory.
Pipelines over the logs and queries against the app's own
deterministically-seeded database both count (run the target's
seed_commandwhen you need owner-level joins).
Run directory and checkpointing (runs before Phase 0 and after every phase)
First action of every run — establish the run directory. Let TARGET be
the basename of the resolved target/logs path ($1, or targets/dnrcanary by
default), and SCOPE that resolved path. Bash:
python3 .claude/skills/_lib/checkpoint.py rundir results/TARGET --state .dnr-hunt-state --scope "SCOPE"
Append --fresh to that command if --fresh is in $ARGUMENTS. --scope
stamps the run dir so two targets that share a basename never share runs. The
command prints one path — the newest run dir this hunt can still use (its own
run mid-flight, or one another dnr skill opened for this target, so the whole
investigation accretes in one place) or a freshly minted
results/TARGET/<timestamp>/ (UTC, same format as the vuln-pipeline, so lexical
sort is chronological). That path is {RUN} — every {RUN}/... below means
substituting this literal path; double-quote it (and SCOPE) in Bash, since
paths may contain spaces. All outputs and state live under {RUN}.
Phase state persists to {RUN}/.dnr-hunt-state/ so an interrupted hunt resumes
without re-running sweeps. All checkpoint I/O goes through
python3 .claude/skills/_lib/checkpoint.py (atomic writes, JSON-validated).
Never use the Write tool for progress.json directly. Never pass payload
via heredoc or stdin — log-derived strings could collide with the heredoc
delimit
Preguntas frecuentes
¿Pueden los registros probar por sí solos que un ataque tuvo éxito?
No. Los registros muestran qué se intentó y cómo respondió la aplicación, así que la skill también comprueba el código fuente y ejecuta una prueba.
¿Qué archivos produce?
Escribe un archivo de incidentes y un informe escrito del incidente.
¿Necesita el código fuente?
Sí. Sin el código fuente, un hallazgo como mucho queda como sospechoso y no como confirmado.
Detalles
Descripción original del autor
Proactive threat hunt over web/application logs — no alert in hand. Profiles the corpus, runs a hypothesis-driven hunt loop with a mandatory written ledger, confirms suspects in source, detonates a local PoC, and writes INCIDENTS.json + INCIDENT_REPORT.md. Use when asked to "hunt the logs", "find the campaign", "look for signs of compromise", or "run dnr-hunt". The no-alert entry to the detection & response track; /dnr-respond is the lead-in-hand entry.
Popularidad
- Estrellas en GitHub
- 7,7 mil
- Posición en el ranking
- #13101
- Licencia
- —
- Actualizada
- 6/8/2026
Comentarios
- …
Más skills de este repositorio
customize
7,7 milAyuda a tu agente a adaptar una canalización de IA para encontrar vulnerabilidades a un nuevo tipo de fallo, lenguaje u objetivo, reescribiendo solo las partes específicas.
dnr-respond
7,7 milAyuda a tu agente a analizar una alerta o un indicador de seguridad, comprobando si el ataque tuvo éxito y hasta dónde llegó.
patch
7,7 milAyuda a tu agente a redactar correcciones de código candidatas para hallazgos de seguridad verificados, guardadas como diferencias para que una persona las revise.
quickstart
7,7 milOfrece a tu agente una guía breve de una herramienta de análisis de seguridad y responde a preguntas sobre cómo usar sus herramientas.
Skills parecidas
reverse-engineer-anything
422 milAyuda a tu agente a revisar apps y paquetes ya publicados para explicar sus funciones, comparar versiones o guiar una reconstrucción, usando la herramienta REA.
1password
394 milAyuda a tu agente a instalar la CLI de 1Password, iniciar sesión y leer o inyectar secretos sin imprimir sus valores en el chat.
healthcheck
394 milAyuda a tu agente a auditar el ordenador o servidor que ejecuta OpenClaw en busca de riesgos de seguridad, como SSH, cortafuegos, actualizaciones y copias de seguridad, y después sugerir arreglos seguros.