Lion Cipher Lab

Find dangling DNS records before someone takes them over

Why it matters

Every company creates and deletes cloud resources constantly: a marketing site on Azure App Service for a three-week campaign, an S3 bucket for a product launch, a Heroku app for a status page. The DNS record that pointed promo.yourcompany.com at that resource usually outlives it, because the person who deleted the app did not own the DNS zone. That leftover record is called DANGLING, and on many providers the abandoned name can be registered by anyone. Once an attacker claims it, your subdomain serves their content: a convincing phishing page on your real domain, a script that reads cookies…

What you'll learn

Steps in this lab

  1. What a dangling record is, and why someone else can claim it
  2. How this differs from the neighbouring DNS and attack-surface labs
  3. Generate the zone, the inventory, and the lookup results
  4. Write the auditor: one naive mode, one inventory-join mode
  5. Measure the BEFORE: the NXDOMAIN check finds 2 of 9
  6. Run the join: 8 of 9 found, and the inventory's own errors
  7. Refresh the inventory, then remediate the zone and the process
  8. Triage by exploitability, without skipping any
  9. Honest negatives: where this auditor is still blind
  10. When to use this, and how a pro runs it

Open the full interactive lab →