Back to all lessons
Awareness Lessons
last week

Dangling DNS Records Let Researchers Hijack Five US Treasury Subdomains for $3 Each

Written by AI from the linked story. Not reviewed by an editor. How this works

Cybersecurity researchers were able to take control of five official US Treasury subdomains by exploiting 'dangling' DNS records — entries that still pointed to AWS Elastic IP addresses that had since been released and reassigned to new customers. By claiming those IP addresses for roughly $3 each, the researchers could serve arbitrary content under legitimate .gov domains complete with valid HTTPS certificates, making them ideal for phishing or credential harvesting. The root cause was a failure to clean up obsolete DNS records when cloud infrastructure was decommissioned, a configuration hygiene problem that left a persistent and low-cost attack surface. This matters because trust in government domains is exceptionally high, meaning victims are unlikely to question the legitimacy of content served there, and because AWS explicitly places responsibility for DNS cleanup on the customer rather than enforcing organizational-level guardrails.

Tactical Insight

Immediate actions

  • Audit all external DNS records and immediately remove or update any entries pointing to decommissioned or unowned cloud IP addresses.
  • Implement a decommissioning checklist that requires DNS record removal as a mandatory step before releasing any cloud resource.

Long-term improvements

  • Maintain a continuously updated asset inventory that links every DNS record to its corresponding live infrastructure resource.
  • Establish automated scanning to detect dangling DNS records across all managed zones on a recurring basis.
  • Adopt a cloud resource lifecycle policy that ties DNS record ownership to provisioned assets and triggers alerts on orphaned entries.

Detection measures

  • Monitor DNS zones for changes and alert on any record pointing to IP space not currently allocated to your organization.
  • Subscribe to certificate transparency logs to detect unexpected TLS certificates issued for your domains.

Back this up with a control

All controls and vendors

Training helps people spot this. These controls make the attack fail even on the day someone does not.