ECScape: The Amazon ECS Vulnerability That Lets Attackers Steal AWS Credentials from Neighboring Containers
A vulnerability in Amazon ECS on EC2 allows a low-privilege container to steal IAM credentials from other containers on the same instance by abusing an undocumented internal ECS protocol. An attacker could then use those credentials to move laterally, escalate privileges, or compromise cloud infrastructure depending on the IAM role.
That’s basically what ECScape is all about — a newly discovered vulnerability in Amazon ECS (Elastic Container Service) that’s making serious waves in the security world.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely an undocumented internal ECS protocol that does not properly enforce isolation between containers on the same EC2 instance.
Impact
An attacker could steal IAM credentials from neighbouring containers and use them to move laterally, escalate privileges, or compromise cloud infrastructure, though the impact depends on the permissions of the stolen IAM role.
What the attacker needed
Amazon ECS on EC2 (not Fargate); multiple tasks with different IAM roles on same host; task-to-task communication not locked down
The fix
AWS has not issued a public fix; users should switch to Fargate, minimise IAM roles, avoid mixing privileged and low-trust tasks on one host, and monitor with CloudTrail or GuardDuty.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Containers are like lightweight virtual machines that run applications. They are supposed to be isolated from each other, so one container cannot access another's data. This bug breaks that isolation: a container with low permissions can trick the system into giving it the login credentials (IAM credentials) that belong to a neighbouring container with higher permissions.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.