Cybersecurity researchers have taken control of five US Treasury subdomains for about $3 each — not by hacking the Treasury, but by claiming the Amazon cloud addresses the domains still pointed to after the servers behind them were switched off.
The researchers, from security firm Intruder, published their findings on Tuesday. The five subdomains were ftp.treasury.gov, irssearch.treasury.gov, pcp.treasury.gov, rdgw.treasury.gov and ww5.treasury.gov. All five were reported through bug bounty programmes and have since been fixed; Intruder says no government data was stolen or accessed.
The flaw is known as a dangling DNS record. When an organisation retires a cloud server, its DNS records can still point visitors to the server's old IP address. If the cloud provider hands that address to another customer, the new holder can serve whatever they like under the original subdomain — in this case, a genuine .gov address.
A 48-hour sweep that found 28 takeovers
To test how practical the attack is, Intruder built a script that repeatedly allocated and released Amazon Elastic IP addresses, checking each against the DNS records of organisations in public bug bounty scopes. In just 48 hours it cycled through 450,000 unique IP addresses — less than 1% of the roughly 80 million addresses Amazon publishes for its cloud service — and found 28 live takeovers. Almost half belonged to government bodies.
Amazon banned the researchers' account after two days, blocking it from allocating new Elastic IPs. But the ban applied only to that one account: the team simply created a new account inside the same Amazon organisation, transferred the matched addresses across, and carried on. Intruder estimates ten accounts working together could sweep the full address space in around five weeks — and a targeted attacker would need far less, since Amazon publishes which region each address range belongs to.
Why a .gov takeover is so dangerous
Once an attacker holds the IP address behind a dangling record, they control everything the subdomain serves. US government websites tell visitors to trust a site if its address ends in .gov and it uses HTTPS — so a hijacked subdomain passes both checks, and the attacker can even pass a certificate authority's domain validation to get a trusted TLS certificate, making the fake site look completely legitimate.
That opens the door to phishing under a real government domain. Old automated systems may also still be sending login details to the abandoned addresses, and cookies set for the parent treasury.gov domain are sent to every subdomain — including one an attacker controls — which could enable session theft in other Treasury applications.
AWS says it will not change anything
Intruder suggested two fixes: a monthly cap on how many Elastic IPs an account can allocate, and abuse restrictions applied at the organisation level rather than per account. Amazon confirmed on November 17 that it has no plans to make either change, saying the takeover depends on customer-side DNS records rather than an issue in its services. It told the researchers it treats rapid allocation and release as a policy violation and already has controls against it — though Intruder notes those controls did not stop the sweep.
The researchers first mapped the vulnerable addresses on August 23 and submitted their findings on August 25. Their advice is blunt: review your DNS records now and delete any that point to cloud addresses you no longer control. At the rate they found matches, a determined attacker running the same sweep longer and wider would likely find hundreds or even thousands more.
By Hamza Faisal



