Researchers Took Over 28 Subdomains, Including Five on treasury.gov, by Claiming Released AWS Elastic IPs for About $3 Each. AWS Says It Won't Fix It. Here Is the DNS Audit I'd Run.
On November 24, 2026, Tom Steer at Intruder published research showing how his team took over 28 live subdomains by allocating AWS Elastic IPs until they landed on addresses that someone else had released but still pointed DNS at. Five were on treasury.gov. The cost worked out to about $3 per valid takeover, and AWS told them on November 17 that it had no plans to change anything.
I read this one twice, because it's the kind of bug I've personally created. Every time I've moved a side project off an EC2 box, I released the IP and moved on. I didn't always remember the A record.
How the attack works
An Elastic IP is a static public IPv4 address you rent from AWS. When you release it, it goes back into the regional pool and anyone can be handed it later. If your DNS still says app.example.com points to that address, whoever gets it next controls what app.example.com serves.
Intruder's approach was brute force with a budget. They pulled target domains from public bug bounty scopes with bbscope and subfinder, then used a Python script and DynamoDB to keep allocating and releasing Elastic IPs in the right regions until an address matched one of the targets' DNS records. AWS publishes which IP ranges belong to which region, so they knew where to look. Service Quotas automatically approves raising the Elastic IP limit to 25 per region without a support case, up from the default of 5.
In about 48 hours they cycled through 450,000 unique addresses before AWS banned the account. That's roughly 0.56% of the approximately 80 million EC2 IPv4 addresses AWS publishes, and it was enough for 28 matches. Almost half belonged to government bodies. The rest included a university, a financial services company, a large networking vendor, and some of Intruder's own customers.
Why a takeover is worse than a defacement
Once you control the IP, you control a real subdomain of a real domain. The researchers point out that .gov guidance tells people to trust .gov sites that use HTTPS, and an attacker on a taken-over subdomain can pass a certificate authority's domain validation and get a valid certificate. So the padlock shows up too.
For a small SaaS, the realistic damage is a phishing page on login.yourproduct.com, or a subdomain that's allowed by your cookie scope or your CORS rules. The first one costs you trust. The second one can cost you sessions.
What AWS said
According to Intruder's timeline, they contacted AWS on October 8, followed up on November 10, and heard on November 17 that AWS had no plans to fix it. AWS's position is that the takeover depends on customer-side DNS records, not a flaw in its services, and that rapid allocate-and-release cycling is a policy violation it has controls against. That's the control that banned Intruder's account after 48 hours. Intruder had suggested a monthly allocation cap and abuse limits at the organization level.
There's an awkward detail here. An AWS Security Blog post on subdomain takeover from June 2026 focuses on CNAME records and says resources like EC2 instances aren't subject to the tactic. Intruder's results say otherwise for A records. I wouldn't use that post as my checklist.
I think AWS is technically right and practically unhelpful. The DNS record is mine, so the cleanup is mine. But a $3 attack that only needs a scripted loop is the kind of thing a cap would make much more expensive.
The audit I'd run
This takes about twenty minutes if your DNS is in one place. The goal is a list of every A record that points at an AWS address you don't currently hold.
Start with the A records. If you use Route 53, this prints every A record value across your hosted zones:
for z in $(aws route53 list-hosted-zones --query 'HostedZones[].Id' --output text); do
aws route53 list-resource-record-sets --hosted-zone-id "$z" --output json \
| jq -r '.ResourceRecordSets[] | select(.Type=="A" and .ResourceRecords) | .Name + " " + .ResourceRecords[].Value'
done > a-records.txt
If your DNS lives at Cloudflare or your registrar, export the zone file and grep for A records instead. Same result.
Then list the Elastic IPs you actually hold, in every region:
for r in $(aws ec2 describe-regions --query 'Regions[].RegionName' --output text); do aws ec2 describe-addresses --region "$r" --query 'Addresses[].PublicIp' --output text done | tr '\t' '\n' > my-eips.txt
Any A record value that sits inside AWS's published ranges but isn't in my-eips.txt (or attached to an instance or load balancer you run) is a suspect. AWS publishes its ranges at ip-ranges.amazonaws.com/ip-ranges.json, and a few lines of Python with the ipaddress module will do the comparison. For a handful of records, I'd just check by hand.
Delete the dangling records. Don't repoint them to something "temporary."
The habit that prevents it
The order matters when you decommission something: remove or change the DNS record first, wait for the TTL to pass, then release the IP. Doing it the other way round is how the window opens.
If you released an address recently by mistake, AWS lets you try to recover a specific Elastic IP with allocate-address, but only if nobody else has been given it yet. I wouldn't count on that.
Where possible, I'd stop pointing A records at raw instance IPs at all. Route 53 alias records can target load balancers, CloudFront and several other AWS services, and they follow the resource instead of a fixed address. Note that an Elastic IP isn't a supported alias target, so this only helps if something like a load balancer or CloudFront sits in front. For a $5-a-month side project, putting it behind CloudFront or moving it to a host where DNS points at a hostname is often simpler.
One more cost note. AWS charges $0.005 per hour for every public IPv4 address, in use or idle, which is about $3.60 a month. Holding an Elastic IP you don't need just to keep it away from attackers is a bad trade compared with deleting the record.
The honest take
Intruder only scanned about half a percent of the pool and still found 28 live matches, and they say more were likely if they'd kept going. A real attacker doesn't need a bug bounty scope or a ban-free account. Given that AWS won't change anything, I'd assume someone is already running this loop slowly enough to stay under the radar.
I could be overestimating the risk for tiny projects: an attacker looking for big names won't care about staging.mysideproject.com. But the audit costs twenty minutes and the fix is a delete button. I'm running it on every zone I own this week, and adding "DNS first, then release" to my teardown checklist.
Author
Lukas
@lukcombinator