dnr-hunt
Fungsinya
Skill ini menjalankan pencarian proaktif di log web dan aplikasi untuk mencari tanda kompromi. Skill ini membuat tebakan, memeriksanya terhadap log dan kode sumber, lalu menuliskan apa yang dikonfirmasi. Skill ini ditujukan untuk staf keamanan yang ingin mencari ancaman tanpa peringatan.
Kapan dipakai
- βSaat Anda ingin memeriksa log untuk mencari tanda serangan tanpa peringatan spesifik.
- βSaat seseorang meminta Anda menemukan kampanye atau memeriksa tanda kompromi.
- βSaat Anda memerlukan catatan tertulis tentang apa yang diperiksa dan apa yang dikonfirmasi.
Link skill
https://github.com/anthropics/defending-code-reference-harness/blob/main/.claude/skills/dnr-hunt/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βBisakah Anda memeriksa log web kami dan mencari tanda bahwa seseorang sedang menyerang situs ini?β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent mulai dengan dasar aktivitas normal, lalu menguji satu gagasan pada satu waktu terhadap log. Sebuah temuan dianggap nyata hanya setelah diperiksa di kode sumber dan dengan menjalankan tes.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Bisakah log saja membuktikan serangan berhasil?
Tidak. Log menunjukkan apa yang dicoba dan bagaimana aplikasi meresponsnya, sehingga skill ini juga memeriksa kode sumber dan menjalankan tes.
File apa yang dihasilkan?
Skill ini menulis file insiden dan laporan insiden tertulis.
Apakah ini memerlukan kode sumber?
Ya. Tanpa kode sumber, temuan paling jauh hanya mencapai status dicurigai, bukan dikonfirmasi.
Detail
Deskripsi asli dari pembuat
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.
Popularitas
- Bintang GitHub
- 7.7k
- Peringkat
- #13101
- Lisensi
- β
- Diperbarui
- 6/8/2026
Komentar
- β¦
Skill lain dari repositori ini
customize
7.7kMembantu agent Anda mengadaptasi pipeline AI pencari kerentanan ke jenis bug, bahasa, atau target baru, dengan menulis ulang bagian yang spesifik.
dnr-respond
7.7kMembantu agent Anda menangani satu peringatan atau indikator keamanan, dengan memeriksa apakah serangan berhasil dan seberapa jauh jangkauannya.
patch
7.7kMembantu agent Anda menyusun kandidat perbaikan kode untuk temuan keamanan yang sudah diverifikasi, disimpan sebagai diff untuk ditinjau seseorang.
quickstart
7.7kMemberi agent Anda panduan singkat untuk toolkit pemindaian keamanan dan menjawab pertanyaan tentang cara memakai alatnya.
Skill serupa
reverse-engineer-anything
422kMembantu agent Anda memeriksa aplikasi dan paket yang sudah dirilis untuk menjelaskan fitur, membandingkan versi, atau memandu pembangunan ulang dengan alat REA.
1password
394kMembantu agent Anda mengatur CLI 1Password, masuk, serta membaca atau menyisipkan rahasia tanpa menampilkan nilainya di chat.
healthcheck
394kMembantu agent Anda mengaudit komputer atau server OpenClaw dari risiko keamanan seperti SSH, firewall, pembaruan, dan cadangan, lalu menyarankan perbaikan aman.