During a retail SOC review, an AWS identity finding flags a non-administrative application service role because it holds permission to attach managed policies to IAM roles, even though its current read-only data policy appears harmless. The role has effective iam:AttachRolePolicy permission on its own ARN, can attach AdministratorAccess, and no boundary, SCP or other deny prevents the resulting privileges. Why is this a potential privilege-escalation risk?
Select an answer to reveal the explanation.
Short Explanation
Think of a quiet clerk who happens to hold the master key to the badge printer. Even if your application role only has read access today, the trap is ignoring permissions that let it rewrite its own authority.
Full Explanation
Cloud Infrastructure Entitlement Management evaluates effective escalation paths rather than just currently attached data policies. Because the role can attach broader policies to itself and escalate to administrative privileges, anyone who compromises that workload can grant the role full control over the cloud account. The permission automatically grants unauthenticated external users direct read access to storage buckets is incorrect because IAM policy-attachment rights govern identity permissions rather than making storage bucket policies public. The permission disables cloud audit logging whenever the application role requests temporary credentials is incorrect because attaching policies does not turn off control-plane logging services. The permission forces all compute instances in the account to accept inbound administrative traffic is incorrect because IAM entitlement permissions do not alter network security group rules. Caveat: even if a boundary or organization guardrail limits maximum permissions, leaving policy-modification rights on a workload role violates least privilege and complicates audits. Operational check: inspect the role's attached and inline policies in CIEM, remove policy-attachment actions from the workload role, and confirm the escalation finding clears after the next identity scan.
Prefer to study offline? Printable PDF study book + test engine ($7.50, unofficial). These questions stay free here.