Lion Cipher Lab

Hunt rare process-to-domain pairs in Sysmon DNS events (Event ID 22)

Why it matters

A DNS server log tells you that some computer asked for a domain. It cannot tell you which program on that computer asked, and that is usually the whole question: a browser looking up a strange domain is a Tuesday, while rundll32.exe or a copy of svchost.exe sitting in C:\Users\Public looking up a never-before-seen domain is an intrusion. Sysmon's Event ID 22 records the process behind every lookup, cached or not. That makes a cheap and powerful hunt possible: count how many machines in your fleet have ever seen each (process, domain) pair, and read the rare ones. Done naively, the hunt…

What you'll learn

Steps in this lab

  1. What Event ID 22 knows that your DNS server does not
  2. Stacking in one paragraph: a hunt, not an alert
  3. Generate a week of DNS events from a 40-host fleet
  4. Stack it three ways and score each
  5. Read the three results like a hunter
  6. The honest miss: a phishing lookup ranked 345 of 345
  7. Blind spots: when a lookup never becomes an Event ID 22
  8. See a blind spot for yourself (optional, Windows with Sysmon)
  9. Run the same hunt on your own Sysmon data (optional)
  10. When to reach for this hunt, and how a pro does it better

Open the full interactive lab →