Elastic IP addresses (EIPs) in AWS are internet routable addresses available for use on cloud systems, by anyone. A common DNS mistake can leave them open for attackers to grab, which can lead to credential theft and worse. We demonstrated the attack is still possible in 2026, including finding real takeovers on US treasury domains, which were reported and fixed via a bug bounty program.
The cost to us for doing this was just $3 per valid takeover - what a bargain! We only covered less than 1% of the total IP space, so there are many more out there for attackers to grab. So, now is the time to review your DNS records and get those dangling records squashed ASAP.
As of the time of writing, the attack still works in practice, and though there are some controls to ban attackers abusing the system, there are sufficient gaps to make the attack practical, and at a reasonable cost.

Practical EIP takeover
To test how exploitable it is to claim the AWS host that a dangling DNS record points to, we needed to find a way to cycle through available EIPs with automation. The full EIP space is a maximum of ~80 million IP addresses (in practice, probably half that), and these are allocated at random, so you can’t simply claim the IP address that you want.
To do this, we’d need to repeatedly allocate and release Elastic IPs from AWS’s EC2 pool, and check each address against the DNS records in our scope.
Targets
We wanted to report any dangling records we found, so we built our target list from public bug bounty scopes.
Using the bbscope API, we pulled wildcard scope entries and passed them into subfinder to enumerate subdomains. We resolved the A records for each host and stored anything not in private or reserved ranges in a DynamoDB table for use later in our pipeline.
Claiming Addresses
By default, a new AWS account can hold five Elastic IPs per region. The loop works with five, but a higher quota means more addresses per cycle. Since Service Quotas automatically approves an increase to 25 Elastic IPs per region without a support case, we requested the increase in every region.
With the quota increased, we ran a Python script to claim addresses with each cycle following this flow:
- Allocate 25 Elastic IPs in the current region.
- Store each address, checking for duplicates.
- Look up each address in the database.
- Keep and log any address that matches a target’s A record.
- Release every address that didn’t match.
- Move to the next region and repeat.

In a single region, releasing and immediately allocating a new IP often returned the same address, suggesting AWS recycles recently released addresses first. Rotating through regions gave each pool time to move on, so by the time the tool returned to the original region, it would be allocated a fresh set of IPs.
In just 48 hours, we cycled through 450,000 unique IP addresses before AWS banned the account. This was enough to find 28 live EIP takeovers in the bug bounty scope. We had covered less than 1% of the total EIP space, and already had 28 high impact findings. A determined attacker using a wider scope than bug bounty and running the campaign for an extended period of time would likely find hundreds or even thousands of DNS records that could be hijacked.
The ban hammer
After 48 hours, our account received an abuse warning from Amazon with the action “Blocked the ability to allocate and associate Elastic IP in all regions”. This not only stopped us from allocating new IP addresses but also from using our existing matched ones. We wanted to report our findings to customers and bug bounty programs, so we needed to be able to host PoCs on these addresses as evidence the takeover was a success.
Fortunately (or unfortunately depending on how you look at it) AWS allows you to transfer Elastic IPs between accounts, so we created a new account in our testing organization and moved the matching IPs across. It worked without any issues, despite sitting in the same organization as the banned account. New accounts under an organization can be created without going through the verification process again, so an attacker who gets an account restricted could simply spin up another account and carry on. What was the point of the ban again?
We decided not to continue the full attack from the new account to avoid further abuse complaints, and instead decided to reach out to AWS with some suggestions that could make this attack less practical:
- Introduce a new quota on the number of Elastic IPs that can be allocated per month. Using this kind of hard cap rate limit (which could be set to some reasonable amount for large organizations), the attack would be much less likely to succeed.
- Apply abuse restrictions at the organization level instead of at the account level. This would force an attacker to create a whole new organization each time they’re banned, which is more effort.
AWS has since responded. They informed us that they have no plans to change anything here. More on their response in the disclosure section below.
Real takeovers we found
Across our limited target list of bug bounty targets, we were able to claim and control 28 EIPs which matched a live DNS record in the scope, with almost half belonging to government bodies. Bear in mind, we only ran the automation for 48 hours, and we would likely have found more, had we continued.
The most notable were five US Treasury subdomains pointing to addresses we now controlled:
- ftp.treasury.gov
- irssearch.treasury.gov
- pcp.treasury.gov
- rdgw.treasury.gov
- ww5.treasury.gov

We also got hits across a range of public bug bounty and vulnerability disclosure programs, including a university, two government bodies, a financial services company, and a large networking vendor. The rest belonged to Intruder customers, who we reported to directly.
Impact
Once an attacker holds the IP behind a dangling DNS record, they have full control over what that subdomain serves. US government websites tell visitors they can trust a site if its domain ends in .gov and it uses HTTPS - so if an attacker successfully takes over a domain, their site passes the test and users would trust it without question. The attacker can even pass a certificate authority’s domain validation and get a trusted TLS certificate for the domain to make it look completely legitimate.
This legitimacy could lead to phishing using a convincing real government domain to steal users credentials. The attacker could also host services on that domain to gather incoming information, and steal data (e.g. credentials) from any old automations that still point at it. That’s particularly dangerous, since those credentials could provide immediate access to other systems not related to the initial takeover.
A subdomain which has been taken over can also interact with cookies scoped to its parent domain. If treasury.gov sets cookies with Domain=treasury.gov, they are sent to every subdomain, including ones an attacker controls, which could enable session theft in other treasury.gov applications.
How practical is it?
AWS publishes 80 million IPv4 addresses for EC2, and our 450,000 allocated IPs cover 0.56% of that space. At our rate of about 9,400 IP addresses per hour, one account would take a year to cycle through every published address.
That’s slow for an attacker with one account. With multiple accounts, it comes down quickly. If bans really do apply only per account, as our experience suggests, 10 accounts could sweep the full space in around five weeks.
Realistically, the acquirable space is much smaller. Much of it is made up of auto-assigned public IPs or addresses held long-term by other customers, so a real sweep would take less time than these figures suggest.
An opportunistic attacker doesn’t need to cover the whole space to find something worth having. Even at 0.56% coverage, we landed 28 subdomains.
Targeting a specific organization narrows the search. An attacker would start by enumerating the target’s subdomains and identifying records that point to unused EC2 addresses. As AWS publishes the region of each range, they can look up exactly which region to search. For a target in eu-west-2, that’s around 2.2 million addresses rather than 80 million. However, when we allocated repeatedly in the same region, we saw a much higher duplicate rate, slowing the search. A targeted attacker therefore has a smaller haystack, but a slower way of searching it.
Responsible disclosure
All findings were reported through the relevant bug bounty and vulnerability disclosure programs, and affected Intruder customers were contacted directly. We also shared our observations on the abuse controls with AWS.
AWS confirmed with us that they don’t plan to make changes, as they see the takeover as depending on customer-side DNS records rather than an issue in their services. They also told us they treat rapid allocation and release as a policy violation and have controls against it. Whilst this is true, they could do more to prevent the issue in our opinion, and the vulnerability class remains open due to their position.
Timeline
- Enumerated Elastic IPs - 23rd August
- Submitted findings to bug bounty programs - 25th August
- Reached out to AWS - 8th October
- Received an initial response from AWS - 8th October
- Followed up with AWS - 10th November
- AWS confirmed no plans to fix - 17th November
- Post published - 24th November
.jpg)


