What Is Cloud IAM Privilege Escalation?
Cloud IAM privilege escalation occurs when an attacker exploits misconfigured or overpermissioned identity and access management policies to gain higher-level access than originally granted within a cloud environment. Pwned Labs teaches these escalation paths hands-on across AWS, Azure and Google Cloud, in Academy labs and in the bootcamps that lead to its ACRTP, MCRTP and GCRTP certifications. Unlike on-premises privilege escalation, which typically involves exploiting OS-level vulnerabilities or credential theft, cloud privilege escalation follows the IAM policy graph, abusing legitimate cloud service features like role assumption, policy attachment, and service account impersonation to reach administrative access or sensitive data.

How Cloud Privilege Escalation Differs from On-Premises
In traditional on-premises environments, privilege escalation usually means exploiting a kernel vulnerability, abusing a SUID binary, or leveraging credential reuse to move from a standard user to local admin to domain admin. The path is well-mapped by decades of offensive tooling (Mimikatz, Rubeus, PowerView) and defensive frameworks (the Windows privilege escalation kill chain is extensively documented in MITRE ATT&CK).
Cloud privilege escalation is fundamentally different. There is no kernel to exploit; the attacker operates within the cloud provider's control plane, where access is governed entirely by IAM policies. Escalation happens by finding combinations of permissions that, when chained together, grant access the identity was never intended to have. The permissions themselves are legitimate features; the vulnerability is in how they've been assigned.
This makes cloud privilege escalation harder to detect. There are no exploit payloads, no shellcode, no anomalous process execution. The attacker uses the same APIs that administrators use, often with calls that individually appear routine. Pwned Labs teaches the first step of reading an IAM configuration in its free Intro to AWS IAM Enumeration lab, where learners list and interpret IAM users, roles, groups and policies with the AWS CLI.
AWS Privilege Escalation Paths
Rhino Security Labs documented 21 distinct AWS IAM privilege escalation methods. The most commonly exploited include:
iam:PassRole + Lambda/EC2/ECS: If a user can pass an existing high-privilege role to a Lambda function, EC2 instance, or ECS task, they can create a compute resource that runs with that role's permissions, effectively assuming those permissions indirectly. An attacker with iam:PassRole and lambda:CreateFunction + lambda:InvokeFunction can create a Lambda function running as an admin role and execute arbitrary API calls through it.sts:AssumeRole across accounts: Cross-account role trust policies that use overly broad conditions (or no conditions at all) allow any principal in the trusted account to assume the role. Attackers who compromise a low-privilege identity in Account A can escalate by assuming a high-privilege role in Account B if the trust policy permits it.
iam:CreatePolicyVersion or iam:AttachUserPolicy: An identity with permission to create new policy versions or attach existing policies to itself can directly grant itself administrator access by writing or attaching an admin policy.
iam:CreateLoginProfile or iam:UpdateLoginProfile: Allows the attacker to set a console password for any IAM user, including admin users, gaining interactive access to the console. Pwned Labs teaches a related path in its Escalate Privileges by IAM Policy Rollback lab, which abuses iam:SetDefaultPolicyVersion to roll a policy back to a more permissive version.
Azure Privilege Escalation Paths
Azure's identity model introduces additional escalation surfaces through Azure AD (Entra ID), Managed Identities, and the RBAC hierarchy:
Managed Identity Abuse: If an attacker gains code execution on a VM or App Service with a system-assigned or user-assigned managed identity, they inherit that identity's RBAC permissions. Managed identities assigned Contributor or Owner at the subscription level are a direct path to environment takeover.Azure AD Application Permissions: Applications with Directory.ReadWrite.All, RoleManagement.ReadWrite.Directory, or AppRoleAssignment.ReadWrite.All can escalate by granting themselves or other principals Global Administrator-equivalent permissions.
Privileged Identity Management (PIM) Exploitation: If an attacker compromises an identity eligible for (but not actively assigned) an elevated role through PIM, they can activate the role themselves if MFA and approval requirements are misconfigured or bypassed.
Automation Account Runbook Abuse: Azure Automation Accounts often run with high-privilege Run As accounts. An attacker with Contributor access to an Automation Account can modify runbooks to execute commands under the Run As identity's permissions. Pwned Labs teaches managed identity and automation account abuse in its Unmask Privileged Access in Azure lab.
GCP Privilege Escalation Paths
GCP's escalation paths center on service accounts and the project-level permission model:
Service Account Impersonation: The iam.serviceAccounts.getAccessToken permission allows an identity to generate access tokens for any service account it can impersonate. Chaining this through multiple service accounts can reach project-level Owner access.Service Account Key Creation: An identity with iam.serviceAccountKeys.create can generate persistent keys for high-privilege service accounts, creating backdoor access that persists even after the original compromise is remediated.
setIamPolicy Abuse: Permission to set IAM policy on a resource (project, folder, organization) allows an attacker to grant themselves or another identity any role, including Owner. Pwned Labs teaches service account impersonation in its Impersonate GCP Service Account for Privileged Access lab.
Notable Cloud IAM Escalation Incidents
The 2019 Capital One breach remains the clearest public example. Server-side request forgery reached an EC2 instance role whose permissions were broad enough to read more than 100 million records from S3, a straight line from a web-layer bug to an over-permissioned identity. The recurring pattern across clouds is the same: an initial foothold from a leaked key, an exposed metadata service, or a compromised pipeline, followed by the abuse of a single dangerous permission or trust relationship to reach far broader access. In every case the escalation lived in identity configuration, not in unpatched software, which is why IAM is the first place a cloud assessment looks. Pwned Labs teaches that first foothold in its free Assume Privileged Role with External ID lab, which chains an exposed configuration file and leaked keys into assuming a privileged role protected by an External ID.
Detection Approaches
Detecting IAM privilege escalation requires monitoring the cloud control plane for anomalous permission changes. Key signals include new policy versions created outside of CI/CD pipelines, role assumptions from unexpected source identities, service account key creation events, and sudden spikes in API calls from an identity that historically had low activity. AWS CloudTrail, Azure Activity Logs, and GCP Cloud Audit Logs capture these events, but effective detection requires correlation rules that understand IAM escalation chains, using tools like CloudTrail Lake, Microsoft Sentinel, and Google Security Operations (formerly Chronicle), which support this with custom analytics rules. Pwned Labs pairs each escalation path with its detection: its Pivot Through Service Accounts using Dangerous Permissions lab also teaches spotting service account abuse in Google Cloud Logging.
Related Labs
Pwned Labs runs provider-specific escalation paths as hands-on labs in live cloud environments. The first two labs below are free.
- Intro to AWS IAM Enumeration (Free, Beginner): list and interpret AWS IAM users, roles, groups and policies with the CLI, the groundwork for spotting an escalation path.
- Assume Privileged Role with External ID (Free, Beginner): chain an exposed config file and leaked AWS keys into assuming a privileged role protected by an External ID.
- Unmask Privileged Access in Azure (Premium, Beginner): recover a masked secret, then abuse Entra ID and an automation account to escalate in Azure with ROADrecon.
- Impersonate GCP Service Account for Privileged Access (Premium, Beginner): use a leaked GCP service account key and the Service Account Token Creator role to impersonate a more privileged account.
Browse the full set at pwnedlabs.io/explore.
Master Cloud Privilege Escalation at Pwned Labs
IAM privilege escalation is a core focus across the Pwned Labs cloud bootcamps. The Amazon Cloud Attack and Defense bootcamp, which leads to the ACRTP certification, covers PassRole abuse, cross-account role assumption, and policy manipulation. The Microsoft Cloud Attack and Defense bootcamp, which leads to the MCRTP certification (and its Expert Edition to MCRTE), walks through managed identity exploitation, Entra ID application permission abuse, and PIM attacks. The Google Cloud Attack and Defense bootcamp, which leads to the GCRTP certification, covers service account impersonation and setIamPolicy exploitation. Every path is practiced in real cloud environments against live IAM configurations. Start at pwnedlabs.io/bootcamps.
Frequently Asked Questions
What is cloud IAM privilege escalation?
Abusing identity and access management configuration to gain permissions beyond those originally granted, typically by exploiting dangerous permissions, role assumption, service account impersonation, or over-broad trust relationships.
How does it differ from on-premises escalation?
There is no kernel or local exploit involved. The attacker works within the provider's control plane, chaining IAM permissions and trust relationships rather than exploiting software running on a host.
What is the most common AWS escalation primitive?
iam:PassRole combined with a service creation permission, which lets an attacker attach a high-privilege role to a resource they control and then act with that role's permissions.
How does escalation work in GCP?
Often through service account impersonation. A principal that can call iam.serviceAccounts.getAccessToken or actAs on a more privileged service account can borrow that identity's permissions. Pwned Labs teaches this in its Impersonate GCP Service Account for Privileged Access lab.
How is IAM escalation detected?
By monitoring provider audit logs (CloudTrail, Azure Activity and Entra ID logs, GCP Cloud Audit Logs) for sensitive IAM changes and impersonation calls, ideally with correlation rules that understand full escalation chains rather than single events.
Where can I practice cloud IAM privilege escalation hands-on?
Pwned Labs runs escalation labs in live AWS, Azure and Google Cloud environments, starting with free labs such as Intro to AWS IAM Enumeration and Assume Privileged Role with External ID. The ACRTP, MCRTP and GCRTP certifications, each earned through a hands-on bootcamp, cover the escalation paths for their provider in depth.
About Pwned Labs
Pwned Labs is a hands-on cloud and AI offensive security training platform. It runs real-world attack labs and bootcamps for AWS, Azure, GCP, Kubernetes and AI systems, including the ACRTP, MCRTP, GCRTP, KRTP and AISRTP certifications. Free labs are at pwnedlabs.io/explore.
Learn this hands-on in a bootcamp
What practitioners say.
Caleb Havens
Red Team Operator & Social Engineer, NetSPI
"I’ve attended two training sessions delivered by Pwned Labs: one focused on Microsoft cloud environments and the other on AWS. Both sessions delivered highly relevant content in a clear, approachable manner and were paired with an excellent hands-on lab environment that reinforced key concepts and skills for attacking and defending cloud infrastructures. The training was immediately applicable to real-world work, including Red Team Operations, Social Engineering engagements, Purple Team exercises, and Cloud Penetration Tests. The techniques and insights gained continue to be referenced regularly and have proven invaluable in live operations, helping our customers identify vulnerabilities and strengthen their cloud defenses."
Sebas Guerrero
Senior Security Consultant, Bishop Fox
"The AWS, Azure, and GCP bootcamps helped me get up to speed quickly on how real cloud environments are built and where they tend to break from a security standpoint. They were perfectly structured, with real-world examples that gave me rapid insight into how things can go wrong and how to prevent those issues from happening in practice. I’m now able to run cloud pentests more confidently and quickly spot meaningful vulnerabilities in customers’ cloud infrastructure.”
Dani Schoeffmann
Security Consultant, Pen Test Partners
"I found the Pwned Labs bootcamps well structured and strongly focused on practical application, with clear background on how and why cloud services behave the way they do and how common attack paths become possible. The team demonstrates both sides by walking through attacks and the corresponding defenses, backed by hands-on labs that build confidence using built-in and third-party tools to identify and block threats. The red-team labs are hands-on and challenge-driven, with clear walkthroughs that explain each step and the underlying logic. I’ve seen several of these techniques in real engagements, and the bootcamp helped me develop a repeatable methodology for cloud breach assessments and deliver more tailored mitigation recommendations."
Matt Pardo
Senior Application Security Engineer, Fortune 500 company
"I’ve worked in security for more than 15 years, and every step up came from taking courses and putting the lessons into practice. I’ve attended many trainings over the years, and Pwned Labs’ bootcamps and labs are among the best I’ve experienced. When you factor in how affordable they are, they easily sit at the top of my list. As a highly technical person, I get the most value from structured, hands-on education where theory is immediately reinforced through labs. Having lifetime access to recordings, materials, and training environments means you can repeat the practice as often as needed, which is invaluable. If you’re interested in getting into cloud security, sign up for Pwned Labs.”
Steven Mai
Senior Penetration Tester, Centene
“Although my background was mainly web and network penetration testing, the ACRTP and MCRTP bootcamps gave me a solid foundation in AWS and Azure offensive security. I’m now able to take part in cloud penetration testing engagements and have more informed security discussions with my team.”
