Course contentsShow
← Security
Lesson 1760 of 3,05235. Cloud Security - IAMFree lesson

Group and User Management Escalation

Adding users to privileged groups or modifying user permissions to escalate access within the IAM hierarchy.

Group and User Management Escalation

What you'll learn: How attackers abuse IAM group and user management permissions to escalate privileges by adding themselves to privileged groups or modifying user permissions.

The Core Vulnerability

Group and user management escalation exploits permissions that allow one principal to modify other identities within the IAM hierarchy. If you can add yourself (or a controlled identity) to a privileged group, or directly attach powerful policies to your own user, you've effectively escalated your privileges without needing those permissions initially.

Think of it like building security: if you have keys to the "security office" where new access badges are created, you can print yourself an admin badge even if you started as a regular employee.

Common Escalation Paths

Group Addition: An attacker with iam:AddUserToGroup can add themselves to an administrative group like "Administrators" or "SecurityAuditors," instantly inheriting all group-attached policies. This is especially dangerous when groups have broad, powerful permissions.

Policy Attachment: With permissions like iam:AttachUserPolicy or iam:PutUserPolicy, an attacker can directly attach managed policies (including AdministratorAccess) to their own user account or create inline policies granting elevated access.

Permission Modification: Even subtler permissions like iam:UpdateAssumeRolePolicy allow modification of trust relationships, potentially letting an attacker assume roles they shouldn't have access to.

Why This Works

These attacks succeed because organizations often grant "user management" permissions broadly, assuming they're administrative but not security-critical. In reality, the ability to modify identity permissions is equivalent to having those permissions yourself—just one API call away.

Key Takeaway: Permissions that modify group memberships, attach policies, or update user permissions are privilege escalation vectors; restrict iam:AddUserToGroup, iam:AttachUserPolicy, and similar permissions as tightly as admin credentials themselves.