Interview Prep/AWS/IAM Best Practices

How do you prevent IAM privilege escalation paths?

AdvancedProductionIAM Best Practices
Answer

Know the classic paths: iam:CreatePolicyVersion with set-as-default, iam:AttachUserPolicy/AttachRolePolicy, iam:UpdateAssumeRolePolicy, iam:PassRole plus a compute service, lambda:UpdateFunctionCode on a privileged function, iam:CreateAccessKey on another user, and sts:AssumeRole into a broader role. Mitigate with boundaries on delegated admins, SCPs denying modification of protected roles (path /platform/), Access Analyzer findings, and periodic scans with tools like PMapper or Cloudsplaining.

aws All AWS questions Roadmap: AWS core services

More on IAM Best Practices