0:00
–:––
React at 0:00
Black Hat USA 2025

ECS-cape – Hijacking IAM Privileges in Amazon ECS

Naor Haziz, Sweet SecurityCloud Security

When and where

Day
Wed 6 Aug 2025
Time
13:30 to 14:10 PDT
Room
Jasmine A & E, Level 3

Speaker

  • Naor HazizSweet Security

    Naor Haziz is a security researcher and low-level developer at Sweet Security with over seven years of experience in vulnerability research, exploit development, and system internals. He holds a degree in Computer Science and previously served as an officer in the IDF Intelligence Corps, leading a team focused on Windows and Linux security. At Sweet Security, he develops the company's security sensor, designing and implementing high-performance detection capabilities for cloud environments. His work combines low-level development and cloud security research to improve monitoring, threat detection, and defense mechanisms, ensuring robust protection for modern cloud infrastructures against evolving security threats.

Abstract

Amazon Elastic Container Service (ECS) is a popular container orchestration service that relies on IAM roles for fine-grained access control. Our research uncovered a critical privilege escalation vulnerability that allows a low-privileged task running on an ECS instance to hijack the IAM privileges of higher-privileged containers on the same EC2 machine. This talk will unveil the details of this previously undisclosed vulnerability, dubbed ECS-cape, which exploits an undocumented ECS protocol to escalate privileges. By taking advantage of shared infrastructure in containerized environments, attackers can use this technique to gain unauthorized access to cloud resources. We will demonstrate ECS-cape live, showcasing how an attacker can leverage this flaw to escalate privileges. The session will also cover practical defense strategies, detailing why co-locating high-privilege and low-privilege workloads on the same ECS instance is risky and how organizations can architect their cloud environments to mitigate this attack vector. Attendees will leave with a clear understanding of how to detect, mitigate, and prevent similar privilege escalation risks in their cloud infrastructure.

What you'll get from it

Amazon ECS uses IAM roles to control what each container can reach. Naor Haziz found a flaw, ECS-cape, that lets a low-privileged task take the IAM privileges of more powerful containers on the same EC2 machine, through an undocumented ECS protocol. He demonstrates it live and explains why mixing high and low-privilege workloads on one instance is risky. You'll also get practical ways to design your AWS setup to detect, mitigate and prevent this kind of escalation. It's for anyone running containers on AWS.

Did you find what you came for?