Cloud IAM Privilege Escalation
Chaining overly permissive policies (PassRole, AssumeRole, PutUserPolicy) into full account control.
Key Techniques: Enumerating caller identity, inspecting inline/managed policy JSON, and exploiting trust policies.
Modern enterprise breaches happen across cloud IAM boundaries, Kubernetes clusters, CI/CD pipelines, and Active Directory forests. Cloud & Infrastructure CTFs mirror real corporate environments where misconfigured trust relationships replace traditional single-service exploits.
Chaining overly permissive policies (PassRole, AssumeRole, PutUserPolicy) into full account control.
Key Techniques: Enumerating caller identity, inspecting inline/managed policy JSON, and exploiting trust policies.
Abusing IMDSv1 via SSRF, public S3 buckets, presigned URL leaks, and exposed CI secrets.
Key Techniques: Querying 169.254.169.254 role credentials, checking bucket ACLs, and auditing Terraform state files.
Escaping privileged containers or escalating Kubernetes ServiceAccount RBAC permissions.
Key Techniques: Mounted docker.sock abuse, hostPath volume mounts, CAP_SYS_ADMIN escapes, and kubectl auth can-i auditing.
Navigating Kerberos, ACL misconfigurations, and certificate templates to reach Domain Admin.
Key Techniques: AS-REP Roasting, Kerberoasting, BloodHound graph analysis, Pass-the-Hash, and ADCS ESC1-ESC8.
Always establish identity first: who am I (aws sts get-caller-identity, kubectl auth can-i --list, whoami /all)?
Map trust boundaries and graph paths—BloodHound for AD, ScoutSuite/Pacu for AWS, and RBAC graphs for Kubernetes.
Check environment variables, mounted secrets (/var/run/secrets), and CI/CD build logs for credentials.
Trace least-privilege violations where read+write on an automation resource grants code execution under a higher role.
{
"Effect": "Allow",
"Action": ["iam:PassRole", "lambda:CreateFunction", "lambda:InvokeFunction"],
"Resource": "*"
}Combining iam:PassRole with compute creation allows escalating to any assumable admin role.
| Challenge / Track | Platform | Level | Focus |
|---|---|---|---|
| CloudGoat & Flaws.cloud | Rhino Security / flaws.cloud | Beginner | Hands-on AWS misconfiguration and IAM labs |
| Kubernetes Goat | Madhu Akula (Open Source) | Intermediate | Interactive Kubernetes cluster security scenarios |
| Active Directory Pro Labs | Hack The Box | Advanced | Multi-host enterprise AD pivoting and Kerberos attacks |
Enforce IMDSv2, eliminate wildcard IAM actions/resources, run containers rootless with seccomp/read-only rootfs, and tier Active Directory administrative privileges with phishing-resistant MFA.