Lion Cipher Lab

Find and fix dangling DNS records before a subdomain takeover

Why it matters

Companies spin cloud services up and tear them down constantly: an S3 bucket for a launch, a GitHub Pages site for docs, a Heroku app for a status page, an Azure app for a three-week campaign. The CNAME that pointed promo.company.com at that service usually outlives it, because the person who deleted the service did not own the DNS zone. That leftover record is DANGLING, and on many providers anyone can re-register the released service name and then serve their own content on your real subdomain: a phishing page that passes a glance at the URL, a script that reads cookies scoped to your…

What you'll learn

Steps in this lab

  1. What a dangling CNAME is, and why a stranger can claim it
  2. Why the outside view needs a different tool from the inventory lab
  3. Build the surface: records, a stub resolver, and a fingerprint table
  4. Write the detector: a naive mode and a fingerprint mode
  5. Measure the BEFORE: the naive NXDOMAIN check finds 2 of 10
  6. Run the pipeline: 9 of 10 found, and the two it gets wrong
  7. Two traps: the wildcard that hides everything, and the record you cannot claim
  8. Remediate, then prove zero remain
  9. The judgment: when to fingerprint, and how a pro keeps it fixed

Open the full interactive lab →