LockerGnomeTech news and nostalgia for today's technology professionals
Subscribe

Search

Security

Researchers Claimed Five Treasury.gov Subdomains for $3 Each by Cycling AWS Elastic IPs, and AWS Says It Won't Change Anything

Intruder kept its matched addresses after AWS banned the account by moving them to a sibling account, and the only fix on offer is a DNS cleanup step that customers have to remember.

A tintype-style portrait of a man in a waistcoat at a wooden pigeonhole cabinet, pulling one address card while another card still hangs in a different slot.
Illustration: LockerGnome

Intruder’s researchers wanted to know whether you can still grab the AWS machine that a forgotten DNS record points to. In 2026, you can. The method is to rent public addresses, check them against a list of DNS records, and hand back the ones that don’t match.

The pool is big. Intruder puts the Elastic IP space at a maximum of about 80 million addresses, allocated at random, so nobody gets to ask for the one they want. The team had to cycle, which meant allocating and releasing over and over while checking each address against the DNS records in scope.

The target list came from public bug bounty scopes. They pulled wildcard entries with the bbscope API, enumerated subdomains with subfinder, resolved the A records and stored anything outside private and reserved ranges in a DynamoDB table.

A new AWS account holds five Elastic IPs per region by default. Service Quotas approves an increase to 25 per region automatically, without a support case, so the researchers requested it in every region. Then a Python script ran the same loop: allocate 25, store each address while checking for duplicates, look each one up in the database, keep any that matches a target’s A record, release the rest and move to the next region.

The region hop matters. In a single region, releasing an address and immediately allocating another often returned the same one, which Intruder reads as AWS recycling recently released addresses first. Rotating through regions let each pool move on, so a fresh set was waiting when the script came back around.

In 48 hours the script saw 450,000 unique addresses, about 9,400 an hour, roughly 0.56% of the published space. It found 28 live takeovers. Almost half belonged to government bodies. The headline five were ftp.treasury.gov, irssearch.treasury.gov, pcp.treasury.gov, rdgw.treasury.gov and ww5.treasury.gov. Others included a university, a financial services company and a large networking vendor, and the remainder belonged to Intruder’s own customers. The Treasury findings were reported and fixed through a bug bounty program. The cost, in Intruder’s words, was “just $3 per valid takeover - what a bargain!”

After 48 hours AWS sent an abuse warning with the action “Blocked the ability to allocate and associate Elastic IP in all regions.” That froze the matched addresses too, and the team needed them to host proof-of-concept pages for the reports. AWS lets you transfer Elastic IPs between accounts, so they opened a new account in the same testing organization and moved the matches across. In their words: “It worked without any issues, despite sitting in the same organization as the banned account.” New accounts under an organization skip verification, so an attacker with a restricted account can open another and carry on. Elastic IPs live up to the name: the ban stretched right around them.

Intruder stopped there to avoid more abuse complaints and sent AWS two suggestions: a monthly cap on Elastic IP allocations, and abuse restrictions applied per organization instead of per account. AWS answered on October 8, and on November 17 confirmed it has no plans to change anything. It sees the takeover as depending on customer-side DNS records, and says it treats rapid allocation and release as a policy violation with controls against it. Intruder’s reply: “the vulnerability class remains open due to their position.”

The impact is what a .gov name implies. A site on a taken-over subdomain passes the HTTPS and .gov check visitors are told to rely on, and the attacker can pass a certificate authority’s domain validation to get a trusted certificate. If a parent domain sets cookies with Domain=treasury.gov, every subdomain receives them, including one an attacker controls.

Intruder’s own math keeps this from being a one-account stunt. One account would need about a year to sweep every published address, but if bans really apply per account, 10 accounts could do it in around five weeks. Targeting one organization shrinks the search: AWS publishes the region of each range, and eu-west-2 holds around 2.2 million addresses. Repeated allocation in one region produced many more duplicates, so the haystack is smaller but slower to search.

Intruder says AWS’s position is that rapid cycling is already a policy violation, which makes the ban the control. The control lasted 48 hours and a second account. Expect the attack to stay cheap while Service Quotas keeps approving 25 addresses per region on request and bans stay per account. That is a forecast from the mechanism, not something AWS has said. The same logic points at attackers using wider scopes than bug bounty lists, which Intruder says would likely find hundreds or thousands of hijackable records.

Five hostnames. Three dollars each.

More Security

Every Security story →