How it works
IAM Identity Center gives workforce users access to AWS accounts through three objects. A permission set is a template of policies and a session duration. An account assignment joins a principal (a user or a group from the identity store), a permission set and a target account. Provisioning turns the permission set into an IAM role named AWSReservedSSO_<name>_<id> in that account, which the user reaches through the AWS access portal or aws sso login.
The service is administered from the Organizations management account or from a delegated administrator account, and it writes roles into every member account. Whoever controls it controls identity and access management for the whole organization. An attacker who lands on a principal with sso and identitystore write permissions has four moves, from loud to quiet:
- New permission set. Create a set with
AdministratorAccessand assign it to a principal the attacker controls. - Policy added to an existing set. Attach a managed policy or write an inline policy on a set the attacker's user already holds. After provisioning, the change applies in every account where the set exists.
- New account assignment. Assign an existing administrator permission set to the attacker's user or group in more accounts.
- Identity store membership. Add the attacker's user to a group that already holds administrator assignments. No permission set or assignment changes at all. Where the directory allows it, the attacker can also create a new user for this.
None of these creates an IAM user, an access key or a foreign trust in any member account. The resulting access is a workforce sign-in.
Two limits apply. The delegated administrator account can't manage access to the management account or change permission sets provisioned there. And when users and groups are synchronized from an external identity provider, a change made by hand in Identity Center can be overwritten by the next synchronization, so the lasting version of the membership move is made in the upstream directory.
Prerequisites
- Credentials for a principal in the management account or the delegated administrator account with the needed actions:
sso:CreatePermissionSet,sso:AttachManagedPolicyToPermissionSet,sso:PutInlinePolicyToPermissionSet,sso:CreateAccountAssignment,sso:ProvisionPermissionSet, and for the directory movesidentitystore:CreateUserandidentitystore:CreateGroupMembership. Creating assignments also makes Identity Center manage IAM roles in the target accounts on the caller's behalf. - An Identity Center user the attacker can sign in as: one whose credentials they already hold, or a new one. A user created through the API has no password. It can sign in only after an administrator shares a one-time password, or through a verification email when the "Send email OTP" setting is enabled.
- For the group move: a group that already holds useful assignments.
Attack steps
For authorized security testing and lab use only. Run these steps against systems you own or have written permission to assess.
1. Enumerate the instance
aws sso-admin list-instances
# Returns InstanceArn (arn:aws:sso:::instance/ssoins-EXAMPLE) and IdentityStoreId (d-1234567890)
aws sso-admin list-permission-sets \
--instance-arn arn:aws:sso:::instance/ssoins-EXAMPLE
aws identitystore list-users --identity-store-id d-1234567890
aws identitystore list-groups --identity-store-id d-1234567890
# Who holds a permission set in an account
aws sso-admin list-account-assignments \
--instance-arn arn:aws:sso:::instance/ssoins-EXAMPLE \
--account-id 111122223333 \
--permission-set-arn arn:aws:sso:::permissionSet/ssoins-EXAMPLE/ps-EXAMPLE
2. Join a group that is already assigned
The quietest move changes one membership:
aws identitystore create-group-membership \
--identity-store-id d-1234567890 \
--group-id 00000000-0000-0000-0000-000000000000 \
--member-id UserId=11111111-1111-1111-1111-111111111111
If no usable user exists, create one first. Give it an email address the attacker reads, because the password setup goes there:
aws identitystore create-user \
--identity-store-id d-1234567890 \
--user-name svc-audit \
--display-name "Audit Service" \
--name "GivenName=Audit,FamilyName=Service" \
--emails "Type=work,Value=alice@example.com"
3. Create a permission set and assign it
aws sso-admin create-permission-set \
--instance-arn arn:aws:sso:::instance/ssoins-EXAMPLE \
--name PlatformSupport \
--session-duration PT12H
aws sso-admin attach-managed-policy-to-permission-set \
--instance-arn arn:aws:sso:::instance/ssoins-EXAMPLE \
--permission-set-arn arn:aws:sso:::permissionSet/ssoins-EXAMPLE/ps-EXAMPLE \
--managed-policy-arn arn:aws:iam::aws:policy/AdministratorAccess
aws sso-admin create-account-assignment \
--instance-arn arn:aws:sso:::instance/ssoins-EXAMPLE \
--target-id 111122223333 \
--target-type AWS_ACCOUNT \
--permission-set-arn arn:aws:sso:::permissionSet/ssoins-EXAMPLE/ps-EXAMPLE \
--principal-type USER \
--principal-id 11111111-1111-1111-1111-111111111111
# The call is asynchronous: check that it reached SUCCEEDED
aws sso-admin describe-account-assignment-creation-status \
--instance-arn arn:aws:sso:::instance/ssoins-EXAMPLE \
--account-assignment-creation-request-id 22222222-2222-2222-2222-222222222222
Repeat the assignment for each target account. A group as principal (--principal-type GROUP) hides the beneficiary one step further.
4. Widen a permission set the attacker already holds
aws sso-admin put-inline-policy-to-permission-set \
--instance-arn arn:aws:sso:::instance/ssoins-EXAMPLE \
--permission-set-arn arn:aws:sso:::permissionSet/ssoins-EXAMPLE/ps-EXAMPLE \
--inline-policy '{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Action":"*","Resource":"*"}]}'
# Push the change to every account where the set is provisioned
aws sso-admin provision-permission-set \
--instance-arn arn:aws:sso:::instance/ssoins-EXAMPLE \
--permission-set-arn arn:aws:sso:::permissionSet/ssoins-EXAMPLE/ps-EXAMPLE \
--target-type ALL_PROVISIONED_ACCOUNTS
5. Sign in and use the access
aws configure sso --profile target-admin
aws sso login --profile target-admin
aws sts get-caller-identity --profile target-admin
The caller identity is an assumed-role session of AWSReservedSSO_PlatformSupport_<id> in the target account, named after the Identity Center user.
Impact
Administrator access to as many accounts of the organization as the attacker assigns, including production, security tooling and log archive accounts. This is privilege escalation from one administrative role in one account to the whole organization, and it is persistence that survives the cleanup of IAM credentials everywhere: the access lives in the identity store and the assignment table.
The permission set route also changes what other people can do. A policy added to a widely assigned set gives every holder the new rights, which creates overprivileged access at scale and hides the attacker among them.
OPSEC and artifacts
- Every change is a CloudTrail management event in the account where Identity Center is administered. Permission set and assignment calls are under
sso.amazonaws.com, with the permission set, principal ID and target account inrequestParameters. - Directory changes have two sources. API calls such as
CreateUserandCreateGroupMembershipappear underidentitystore.amazonaws.com. The same actions in the console appear undersso-directory.amazonaws.com, partly with other names such asAddMemberToGroup. A hunt that covers one source misses the other. - The group move avoids the events most rules watch. No
CreateAccountAssignment, no permission set change: one membership event, and the group's existing assignments do the rest. - Operators reuse what exists. A permission set named like the others, a user named like a service identity, and an assignment to a group instead of a user. The principal is still recorded by ID, and a user created by hand in a directory that is otherwise synchronized from an external provider stands out.
- Member accounts see the role, not the cause. In the target account the provisioning appears as IAM role and policy changes made by the Identity Center service, and later activity as sessions of
AWSReservedSSO_...roles. The reason is only in the administering account's trail. - Sign-in and credential delivery are logged. Identity Center records the workforce sign-in, and the portal's
GetRoleCredentialscall records which account and role were selected. Sessions can carryuserIdentity.onBehalfOfwith the identity store user ID. - Assignment calls are asynchronous.
IN_PROGRESSin the response is not completion. A failed request leaves an event but no access.
Detection
Detection is straightforward where the events are collected, because these calls are rare and administrative.
- Permission set and assignment changes. The permission set rules cover CreateAccountAssignment, CreatePermissionSet, PutInlinePolicyToPermissionSet, AttachManagedPolicyToPermissionSet and ProvisionPermissionSet.
- Users, groups and memberships. The Identity Center user and group rules read both event sources, including CreateGroupMembership and the console's AddMemberToGroup.
- Changes to the ground rules. A swapped identity source or weakened MFA settings often come before or after the access grant.
- First use. The first
GetRoleCredentialsor the first session of a newAWSReservedSSO_role in a sensitive account, from a new address.
-- Athena, CloudTrail table: Identity Center entitlement and directory changes
SELECT
eventtime,
eventsource,
eventname,
useridentity.arn AS actor,
sourceipaddress,
requestparameters,
errorcode
FROM cloudtrail_logs
WHERE eventtime >= '2026-11-01T00:00:00Z'
AND (
(eventsource = 'sso.amazonaws.com' AND eventname IN (
'CreateAccountAssignment', 'DeleteAccountAssignment',
'CreatePermissionSet', 'ProvisionPermissionSet',
'PutInlinePolicyToPermissionSet',
'AttachManagedPolicyToPermissionSet',
'AttachCustomerManagedPolicyReferenceToPermissionSet'))
OR (eventsource IN ('identitystore.amazonaws.com', 'sso-directory.amazonaws.com')
AND eventname IN ('CreateUser', 'CreateGroup',
'CreateGroupMembership', 'AddMemberToGroup'))
)
ORDER BY eventtime
Separate the actor from the beneficiary: useridentity is who made the change, and the principal ID in the request is who gained access. Resolve group principals to their members at the time of the event, not today.
Mitigation
- Shrink the set of Identity Center administrators. Only a few named roles in the management or delegated administrator account should hold
sso:*andidentitystore:*write actions. The IAM Identity Center guide covers the setup, including delegated administration. - Use a delegated administrator account for daily work, so routine administration can't touch access to the management account, and keep the management account's own permission sets separate.
- Manage entitlements as code. Create permission sets and assignments only from a reviewed pipeline, and alert on every change that the pipeline's role didn't make.
- Keep the directory authoritative upstream. Synchronize users and groups from the identity provider, forbid hand-made users and groups in Identity Center, and protect the upstream groups that map to administrator assignments as Tier 0.
- Leave "Send email OTP" off unless API-created users are part of the process, so a user created by an attacker can't set its own password.
- Require MFA for every sign-in, with phishing-resistant authenticators for administrators, and keep session durations short on privileged permission sets.
- Add a guardrail in the accounts. A service control policy can't stop Identity Center from provisioning, but permissions boundaries on permission sets and SCPs on sensitive actions limit what a rogue administrator set can do in production.
- Review regularly. Export all assignments, expand groups to users, and compare against the approved list. Include policy content of each permission set, because a widened set looks unchanged in an assignment review.
- After an incident, remove the assignment and the membership, then revoke the sessions of the affected
AWSReservedSSO_roles in each account. Deleting an assignment stops new sign-ins, while credentials that were already delivered stay valid until they expire.
Detection rules for this attack
Log events to collect
FAQ
Why is an inline policy change worse than a new account assignment?
An assignment gives one principal one permission set in one account. A policy added to an existing permission set changes the role in every account where the set is provisioned, for every user and group assigned to it. An attacker who already holds a modest permission set can widen it and gain those rights everywhere at once.
Does a new assignment take effect immediately?
CreateAccountAssignment is asynchronous. It returns a status of IN_PROGRESS and a request ID, and the role is created in the target account when the request reaches SUCCEEDED. A changed permission set reaches the accounts only after ProvisionPermissionSet runs.
Can the delegated administrator account take over the management account this way?
Not directly. AWS documents that the delegated administrator account can't manage user or group access to the management account and can't modify permission sets that are provisioned there. It can still grant administrator access to every other account in the organization.
Which CloudTrail event sources do I have to search?
sso.amazonaws.com for permission sets and assignments, and both identitystore.amazonaws.com and sso-directory.amazonaws.com for users, groups and memberships, because API calls and console actions use different sources and partly different event names. SCIM provisioning appears under identitystore-scim.amazonaws.com.
References
- Permission sets (IAM Identity Center User Guide)
- CreateAccountAssignment (IAM Identity Center API reference)
- Logging IAM Identity Center API calls with AWS CloudTrail (IAM Identity Center User Guide)
- Email one-time password to users created with API or CLI (IAM Identity Center User Guide)
- Getting started with AWS IAM Identity Center delegated administration (AWS Security Blog)
- Account Manipulation: Additional Cloud Roles, T1098.003 (MITRE ATT&CK)
- sso-admin (AWS CLI command reference)
Techniques, tactics and threat groups: MITRE ATT&CK® Enterprise v20.1. © The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation. Last updated 2026-11-29.