← Back to BLACKWIRE EMBER BUREAU DNS TAKEOVER Screenshot of a compromised US Treasury subdomain pointing to an attacker‑controlled AWS Elastic IP.

Five US Treasury subdomains were redirected to attacker‑owned Elastic IPs after a cheap DNS hijack.

US TREASURY SUBDOMAINS HIJACKED VIA $3 AWS EIP TAKEOVERS

*A simple DNS misconfiguration let researchers claim AWS Elastic IPs for $3 each, exposing five US Treasury subdomains. The attack, demonstrated in 48 hours, shows a cheap, scalable path for credential theft and broader sabotage.*

By EMBER Bureau - BLACKWIRE  |  November 25, 2026, 09:01 CET  |  AWS Elastic IP, DNS takeover, US Treasury, subdomain hijack, cloud security

A team of security researchers proved that a cheap DNS oversight can hand over control of US Treasury subdomains for the price of a coffee. By exploiting dangling DNS records that pointed to unassigned AWS Elastic IPs, they claimed each address for just $3 and redirected five Treasury sites to servers they owned. The experiment ran for 48 hours, cycling through 450,000 unique IPs before Amazon blocked the account.

The speed and cost of the operation expose a glaring gap in cloud‑based DNS management. With less than 1% of the total EIP space examined, the researchers estimate that a determined adversary could hijack hundreds, if not thousands, of subdomains across the public internet. Immediate remediation—auditing and removing dangling records—is now a critical priority for any organization that relies on AWS.

What DNS mistake made the takeover possible?

Elastic IP addresses (EIPs) in AWS are publicly routable and can be allocated by anyone. When a DNS A record points to an EIP that is no longer attached to a live instance, the record becomes "dangling". Attackers can claim the free EIP, then control the subdomain that resolves to it. The researchers found that many public bug‑bounty scopes still contained such dangling records, including those belonging to government bodies. By cycling through the AWS pool and matching each allocated address against a database of DNS records, they identified live targets. The vulnerability requires only a misconfigured DNS entry; no privileged access or zero‑day exploit is needed.

How did the researchers automate the EIP claim process?

The team built a pipeline that first harvested wildcard scope entries via the bbscope API, then used subfinder to enumerate subdomains. Resolved A records outside private ranges were stored in DynamoDB. With AWS Service Quotas automatically raising the per‑region limit to 25 EIPs, a Python script allocated 25 addresses per region, checked each against the database, logged matches, and released non‑matches. The loop repeated across all regions, exploiting AWS's tendency to recycle recently released addresses. In 48 hours the script cycled through 450,000 unique IPs before AWS blocked further allocations. This automation turned a manual hunt into a high‑speed, low‑cost operation.

We controlled five US Treasury subdomains for just $3 each – a bargain that should alarm every security team.

What was the impact on US Treasury sites?

Among the 28 live EIP takeovers discovered, five belonged to US Treasury subdomains: ftp.treasury.gov, irssearch.treasury.gov, pcp.treasury.gov, rdgw.treasury.gov, and ww5.treasury.gov. Controlling the underlying IP gave the attackers full authority over the content served at each subdomain. While the report does not detail specific data exfiltrated, full control of a government subdomain can enable credential theft, phishing, or the distribution of malicious payloads. The findings were reported through a bug‑bounty program and patched, but the ease of acquisition—$3 per takeover—highlights a systemic risk for any organization with dangling DNS records.

What defenses did AWS propose and how effective are they?

The researchers suggested two mitigations: a monthly quota cap on Elastic IP allocations and organization‑level abuse restrictions. AWS responded that it has no plans to change its current policies. The existing per‑region limit (default five, auto‑approved to 25) remains unchanged, and bans are applied at the account level, not the organization. Because new accounts can be spun up within the same organization without fresh verification, an attacker can bypass a ban by creating a fresh account. Without the proposed caps, the attack remains cheap and scalable, leaving the underlying DNS hygiene issue unresolved.

Frequently asked questions

How much did each successful EIP takeover cost?

Each successful takeover cost the researchers $3 per Elastic IP address.

How many US Treasury subdomains were compromised in the test?

The researchers controlled five US Treasury subdomains: ftp.treasury.gov, irssearch.treasury.gov, pcp.treasury.gov, rdgw.treasury.gov, and ww5.treasury.gov.

How long did it take to find 28 live EIP takeovers?

The team cycled through 450,000 unique IP addresses and identified 28 live takeovers within 48 hours before AWS blocked the account.

The takeaways are stark: a single misconfigured DNS entry can hand over a government subdomain for pennies, and AWS's current safeguards are insufficient to stop a determined attacker. Organizations must audit their DNS zones, purge dangling records, and push cloud providers for stricter allocation limits. Until those changes arrive, the cheap path to subdomain hijack remains open, and the stakes—national security, financial data, and public trust—are too high to ignore.

Sources: Hacker News article, Intruder.io research report (Taking over US Treasury subdomains for $3 each).