Lion Cipher Lab

Pivot on passive DNS to map adversary infrastructure (and prune the shared-hosting trap)

Why it matters

You get handed one indicator -- a single malicious domain from an alert or a report -- and the obvious move is to look up the IP it points to right now. That tells you almost nothing, because a live DNS lookup is a single snapshot: one domain, one current IP. The adversary rotates IPs, fronts behind a CDN, and spins up a dozen sibling domains you never saw because they were never in your alert. PASSIVE DNS (pDNS) is how investigators get the history a live lookup throws away: a pDNS sensor passively records which name resolved to which IP, with the first time and last time it saw each pairing…

What you'll learn

Steps in this lab

  1. What passive DNS is -- every term, defined once
  2. When you'd reach for this -- and what it is NOT (dig, fast-flux, ASN)
  3. Build the passive-DNS store from seeded data
  4. Write the pivot tool -- two indexes, two pivots
  5. Measure the BEFORE: naive lookup vs the full pivot
  6. The correction: prune the shared-hosting trap
  7. Honest negatives -- where a pivot lies, and what to do about it
  8. What you built -- and the reflex to keep

Open the full interactive lab →