AWS_ADD_MEMBER
Summary
Forestall ACL Alias
AWS_ADD_MEMBER
Edge Type
Attack Path
Affected Object Types
IAM Users, IAM Groups
Exploitation Certainty
Certain
AWS IAM Action / Condition
iam:AddUserToGroup on the target IAM group
Description
AWS_ADD_MEMBER is the ability to add an IAM user to an IAM group, picking up every permission the group carries through managed and inline policies.
An attacker who controls a low-privilege user can:
Add themselves (or another compromised user) to a privileged group.
Inherit
AdministratorAccess,PowerUserAccess, or any other broad policies attached to that group.Use those permissions to exfiltrate data, plant backdoors, or escalate further.
Unlike AWS_CREATE_ACCESS_KEY (credential theft) or AWS_UPDATE_LOGIN_PROFILE (console takeover), this edge grants permissions without touching credentials. Credential-layer detection misses it.
See also AWS_IN_GROUP for the resulting membership relationship.
Identification
AWS CLI
Check whether a principal has iam:AddUserToGroup on a specific group:
List all groups and their attached policies to find high-value targets:
Enumerate current members of a group:
AWS Console
Open IAM -> User groups -> select a privileged group.
Open the Users tab to review current members.
Review who holds policies with
iam:AddUserToGrouppermissions by checking Permissions on candidate users/roles.
Exploitation
Add the attacker-controlled user to a privileged group:
Verify group membership was applied:
The user now has all permissions from the group's policies. Changes take effect immediately, with no session restart needed.
Mitigation
Restrict
iam:AddUserToGroupto a dedicated IAM administration role with MFA enforcement.Apply SCPs to prevent unrestricted group membership changes outside approved pipelines.
Regularly audit IAM group memberships, especially for groups with
AdministratorAccessor wide-scope policies.Prefer temporary role assumption (STS) over group-based long-lived permissions for elevated tasks.
Use AWS IAM Identity Center permission sets rather than IAM groups where possible.
Detection
Monitor CloudTrail for group membership changes:
Event source:
iam.amazonaws.comEvent name:
AddUserToGroup
Example lookup:
Key investigation signals:
The added user is the same as the caller (self-escalation).
The target group has policies with
*actions orAdministratorAccess.Event occurs outside normal provisioning windows or CI/CD pipelines.
Followed closely by
CreateAccessKeyorAssumeRolecalls from the same user.
References
Last updated
Was this helpful?