How Researchers Took Over US Treasury Subdomains with Forgotten DNS Records, and How to Check Yours

6 min read

On November 24, 2026, Tom Steer of Intruder published research describing how his team took over five US Treasury subdomains: ftp, irssearch, pcp, rdgw and ww5 under treasury.gov. They did not break into anything. They rented IP addresses from Amazon Web Services until they were handed addresses that old Treasury DNS records still pointed at.

The mistake behind it is common and easy to make: a server is shut down, its IP address goes back to the cloud provider, and the DNS record that pointed at it is never removed. This post explains how the takeover worked, why most dangling-record checks would not catch it, and how to look for the same problem in your own zones.

How the Takeover Worked

AWS lets a customer reserve a fixed public IPv4 address, called an Elastic IP, and attach it to a server. When the customer no longer needs it, they release it and it returns to Amazon's pool, where another customer can be given it.

If a DNS record still points at that address, whoever holds the address next receives the traffic for that hostname. Intruder automated the rest:

  • Allocate an Elastic IP, check whether any DNS record in their target list pointed at it, and release it if not.

  • Repeat. They cycled through 450,000 unique addresses in 48 hours, about 9,400 an hour, before AWS banned the account.

  • Keep any address that matched. They found 28 that matched live DNS records belonging to organisations in their bug bounty scope. Almost half belonged to government bodies, and five were the Treasury hostnames.

Intruder puts the cost at "$3 per valid takeover". That is the sweep's total cost divided by its successful matches, not the price of targeting one chosen subdomain. They also note that they covered less than 1% of the Elastic IP space.

With a matched address, they could serve any page they liked under the Treasury hostname. They used that to host proof-of-concept pages for their reports. In Intruder's words, this kind of mistake "can lead to credential theft and worse", because visitors and software trust the name.

Why the Fix Is Yours, Not the Cloud Provider's

Intruder reported the technique to AWS on October 8 and suggested a monthly cap on Elastic IP allocations and abuse restrictions applied across a whole organisation rather than per account. According to Intruder's account, AWS confirmed on November 17 that it had no plans to change anything, because it sees the takeover as depending on customer-side DNS records rather than a problem in its services. Intruder disagrees, and says the issue remains open.

Whichever side you take, the practical result is the same. Nothing at the provider stops someone from cycling through addresses, so the only reliable defence is to make sure none of your DNS records point at an address you have given back.

Why Most Dangling-Record Checks Would Miss This

Most writing about subdomain takeover, and most automated checks, focus on dangling CNAME records: an alias that points at a deleted cloud app or storage bucket. Those can be detected from the outside, because the alias target stops resolving.

An A record pointing at a released IP address gives no such signal. The address still exists and still routes somewhere. It just belongs to someone else now. From DNS alone, a record pointing at your own server and one pointing at a stranger's look exactly the same.

That includes DNS Spy. Our Dangling CNAME Detection check, part of the Security Center on the Enterprise plan, looks only at CNAME records and fails when a target does not resolve. It would not have flagged the Treasury records. We would rather say so than let you assume it would.

How to Check Your Own Zones

The check is a comparison between two lists: the addresses your DNS points at, and the addresses you actually hold.

  1. Export every A and AAAA record. Use your DNS provider's zone export, not a list of the hostnames you remember. The forgotten records are the ones that matter, and an ftp or rdgw host from years ago will not be on anyone's list.

  2. List the public addresses you hold. For AWS, that means the Elastic IPs and instance public IPs in every account and every region you use. For example, run aws ec2 describe-addresses once per region. Do the same for any other hosting provider in your records.

  3. Compare them. Any record pointing at a cloud address you do not hold is a candidate takeover. Remove it, or point it at something you control. If nobody can say what a hostname was for, that usually means it can go.

  4. Change the order you retire things in. Delete the DNS record first, then release the IP. Done the other way round, there is a window, sometimes years long, where your name points at an address anyone can be given.

Our knowledge base article on dangling DNS covers the other forms this takes, including records pointing into expired domains, and how to work the cleanup into your decommissioning process.

Where DNS Spy Helps, and Where It Doesn't

The hard part of step 1 is completeness. DNS provider sync imports the full record list from Cloudflare, DNSimple, DigitalOcean, Bunny DNS, Linode/Akamai, Vultr, GoDaddy, UltraDNS or Amazon Route 53 through a read-only connection, on every paid plan. That gives you a complete, current inventory of A and AAAA records to check against your cloud accounts, including hostnames nobody remembers. DNS Spy then alerts you when any of those records changes, so a new record pointing somewhere unexpected does not go unnoticed.

What it does not do today is know which IP addresses you hold at your cloud provider, so it cannot tell you on its own that an address has been released. The comparison in step 3 is still yours to run.

This is the second piece of research in a month about government DNS records pointing at things their owners no longer control. The first was a mistyped nameserver at the .gov registry. In both cases the fix was small once someone looked.

Credit goes to Tom Steer and Intruder for the research. Their write-up includes the full timeline and their proposals to AWS.

To get a complete inventory of your own records, start a DNS Spy trial and connect your DNS provider. Every A and AAAA record you publish will be in one list, ready to check against what you actually run.

Frequently asked questions

How were the US Treasury subdomains taken over?
Old DNS records under treasury.gov still pointed at AWS Elastic IP addresses that had been released back to Amazon's pool. Researchers at Intruder repeatedly allocated and released Elastic IPs until they were given addresses those records pointed at, then served their own proof-of-concept pages under the Treasury hostnames.
Is a dangling A record the same as a dangling CNAME?
Both point at something the owner no longer controls, but they are found differently. A dangling CNAME points at a name that no longer resolves, which is visible from outside. A dangling A record points at an address that still exists and now belongs to someone else, so it looks normal until you compare it with the addresses you hold.
How do I find dangling A records pointing at cloud IP addresses?
Export every A and AAAA record from your DNS provider, list every public IP address you hold at each cloud provider in every account and region, and compare the two. Any record pointing at a cloud address you do not hold should be removed or repointed.
How do I stop this happening when I retire a server?
Remove the DNS record before you release the IP address. If the address is released first, your hostname points at an address any other customer of that provider can be given. Make deleting the record a step in your decommissioning checklist, ahead of shutting the server down.

Keep reading

All articles

12 min read

Taking On a New Client's Domains: A First-Week DNS and Registrar Audit

Two domain takeovers in twelve days, and neither was something you could have found by reading a zone file. Both happened at the account that controls the zone. If you have just inherited a client's domains, here is the week-one audit that tells you who can change them, what state they are in, and whether you would hear about it.

12 min read

Spamhaus Now Wants a PTR Record and a Matching HELO on Every Sending IP

Spamhaus announced on October 21, 2026 that it is gradually rolling out enforcement of basic DNS requirements for sending IPs, starting in November 2026. None of the requirements are new ideas, but enforcement is new. Here is exactly what its guidelines ask for, the four lookups that tell you where you stand, and which parts live in DNS where you can monitor them.