What are common IAM privilege-escalation paths?
AdvancedConceptSecrets Management and Identity
Answer
Permissions that let a principal grant itself more: iam:CreatePolicyVersion, iam:AttachUserPolicy, iam:PassRole combined with ec2:RunInstances or lambda:CreateFunction (run something with a stronger role), iam:UpdateAssumeRolePolicy, sts:AssumeRole into admin roles, and lambda:UpdateFunctionCode on a privileged function.
Detect with Access Analyzer, Prowler or PMapper-style graph tools, restrict iam:PassRole to specific roles and services, and use permission boundaries for delegated admins.
More on Secrets Management and Identity
Why is hard-coding secrets or putting them in environment variables a problem?BeginnerWhat does HashiCorp Vault provide?BeginnerExplain Vault's seal/unseal process.IntermediateWhat are Vault dynamic secrets and why are they better than static ones?IntermediateHow do Kubernetes workloads authenticate to Vault?AdvancedWhat is AWS Secrets Manager and how does it compare with SSM Parameter Store?Beginner