Lion Cipher Lab

Detect DNS-over-HTTPS command-and-control tunneling

Why it matters

DNS tunneling is one of the most abused covert channels there is, and the classic detection reads the DNS query names out of a log. DNS-over-HTTPS breaks that detection on purpose: it hides the query inside an ordinary-looking HTTPS session to a resolver like Cloudflare or Google, so your dns.log is blind and the whole lab you did on dns.log stops working. Attackers know this — DoH-based C2 is a growing technique precisely because it inherits DNS tunneling's 'always allowed out' advantage while shedding its biggest weakness (visible queries). A SOC that can only hunt plaintext DNS has a hole…

What you'll learn

Steps in this lab

  1. What DoH is, and why it blinds DNS-query detection
  2. When to reach for which angle — and when NOT to bother
  3. Generate benign DoH on your own box — safely
  4. Angle A — destination intelligence and the SNI in ssl.log
  5. Angle A in practice — hunt ssl.log for DoH from the wrong hosts
  6. Angle B — behavioral beacon reasoning over conn.log
  7. Angle C — the canary domain and killing app-level DoH
  8. Measure it — run the detection against benign browsing
  9. The failure modes — where each angle breaks
  10. The judgment — pull the three angles together

Open the full interactive lab →