AWSSSOServiceRolePolicy
Last Modified
Mar 12, 2026
March 12, 2026 at 09:26 PM UTC
Version
v18
Total Versions
19
Created
Feb 11, 2025
Actions
36
Risk
MediumThe same capabilities in a scoped form, resource policy writes, reads across all data, or full access to a whole service. Read from this policy document alone: trust policies, boundaries and SCPs in your account still decide what actually succeeds. How this is assessed
- Medium
Can grant itself more permissions
Grants the actions of 2 documented escalation paths, but only on named resources or under a condition. Review that scope before trusting it.
- iam:PutRolePolicy: condition aws:PrincipalOrgMasterAccountId, on arn:aws:iam::*:role/aws-reserved/sso.amazonaws.com/*
- iam:AttachRolePolicy: condition aws:PrincipalOrgMasterAccountId, on arn:aws:iam::*:role/aws-reserved/sso.amazonaws.com/*
Use with caution: Check which roles, users or policies fall inside the scope shown above. Within it the escalation works as documented, so keep privileged principals out of it.
- Medium
Can take over other users or roles
Grants the actions of 3 documented escalation paths, but only on named resources or under a condition. Review that scope before trusting it.
- iam:UpdateAssumeRolePolicy: condition aws:PrincipalOrgMasterAccountId, on arn:aws:iam::*:role/aws-reserved/sso.amazonaws.com/*
- iam:AttachRolePolicy: condition aws:PrincipalOrgMasterAccountId, on arn:aws:iam::*:role/aws-reserved/sso.amazonaws.com/*
- iam:UpdateAssumeRolePolicy: condition aws:PrincipalOrgMasterAccountId, on arn:aws:iam::*:role/aws-reserved/sso.amazonaws.com/*
- iam:PutRolePolicy: condition aws:PrincipalOrgMasterAccountId, on arn:aws:iam::*:role/aws-reserved/sso.amazonaws.com/*
- iam:UpdateAssumeRolePolicy: condition aws:PrincipalOrgMasterAccountId, on arn:aws:iam::*:role/aws-reserved/sso.amazonaws.com/*
Use with caution: Check which roles, users or policies fall inside the scope shown above. Within it the escalation works as documented, so keep privileged principals out of it.
Policy Document
View on GitHub{
"PolicyVersion": {
"Document": {
"Version": "2012-10-17",
"Statement": [
{
"Sid": "IAMRoleProvisioningActions",
"Effect": "Allow",
"Action": [
"iam:AttachRolePolicy",
"iam:CreateRole",
"iam:PutRolePolicy",
"iam:UpdateRole",
"iam:UpdateRoleDescription",
"iam:UpdateAssumeRolePolicy",
"iam:PutRolePermissionsBoundary",
"iam:DeleteRolePermissionsBoundary"
],
"Resource": [
"arn:aws:iam::*:role/aws-reserved/sso.amazonaws.com/*"
],
"Condition": {
"StringNotEquals": {
"aws:PrincipalOrgMasterAccountId": "${aws:PrincipalAccount}"
}
}
},
{
"Sid": "IAMRoleReadActions",
"Effect": "Allow",
"Action": [
"iam:GetRole",
"iam:ListRoles"
],
"Resource": [
"*"
]
},
{
"Sid": "IAMRoleCleanupActions",
"Effect": "Allow",
"Action": [
"iam:DeleteRole",
"iam:DeleteRolePolicy",
"iam:DetachRolePolicy",
"iam:ListRolePolicies",
"iam:ListAttachedRolePolicies"
],
"Resource": [
"arn:aws:iam::*:role/aws-reserved/sso.amazonaws.com/*"
]
},
{
"Sid": "IAMSLRCleanupActions",
"Effect": "Allow",
"Action": [
"iam:DeleteServiceLinkedRole",
"iam:GetServiceLinkedRoleDeletionStatus",
"iam:DeleteRole",
"iam:GetRole"
],
"Resource": [
"arn:aws:iam::*:role/aws-service-role/sso.amazonaws.com/AWSServiceRoleForSSO"
]
},
{
"Sid": "IAMSAMLProviderCreationAction",
"Effect": "Allow",
"Action": [
"iam:CreateSAMLProvider"
],
"Resource": [
"arn:aws:iam::*:saml-provider/AWSSSO_*"
],
"Condition": {
"StringNotEquals": {
"aws:PrincipalOrgMasterAccountId": "${aws:PrincipalAccount}"
}
}
},
{
"Sid": "IAMSAMLProviderUpdateAction",
"Effect": "Allow",
"Action": [
"iam:UpdateSAMLProvider"
],
"Resource": [
"arn:aws:iam::*:saml-provider/AWSSSO_*"
]
},
{
"Sid": "IAMSAMLProviderCleanupActions",
"Effect": "Allow",
"Action": [
"iam:DeleteSAMLProvider",
"iam:GetSAMLProvider"
],
"Resource": [
"arn:aws:iam::*:saml-provider/AWSSSO_*"
]
},
{
"Effect": "Allow",
"Action": [
"organizations:DescribeAccount",
"organizations:DescribeOrganization",
"organizations:ListAccounts",
"organizations:ListDelegatedAdministrators",
"organizations:ListAWSServiceAccessForOrganization"
],
"Resource": [
"*"
]
},
{
"Sid": "AllowUnauthAppForDirectory",
"Effect": "Allow",
"Action": [
"ds:UnauthorizeApplication"
],
"Resource": [
"*"
]
},
{
"Sid": "AllowDescribeForDirectory",
"Effect": "Allow",
"Action": [
"ds:DescribeDirectories",
"ds:DescribeTrusts"
],
"Resource": [
"*"
]
},
{
"Sid": "AllowDescribeAndListOperationsOnIdentitySource",
"Effect": "Allow",
"Action": [
"identitystore:DescribeUser",
"identitystore:DescribeGroup",
"identitystore:ListGroups",
"identitystore:ListUsers"
],
"Resource": [
"*"
]
},
{
"Sid": "AllowDeleteSyncProfile",
"Effect": "Allow",
"Action": [
"identity-sync:DeleteSyncProfile"
],
"Resource": [
"arn:aws:identity-sync:*:*:profile/*"
]
}
]
},
"VersionId": "v18",
"IsDefaultVersion": true,
"CreateDate": "2025-02-11T18:37:06+00:00"
}
}Version History (22 recorded)
Raw historyAWSSSOServiceRolePolicy - Policy Version v18
No recorded action delta - this version predates the change index. View the raw diff.
Mar 12, 2026
85bcdd3Update detected
No recorded action delta - this version predates the change index. View the raw diff.
Feb 11, 2025
0e73edcUpdate detected
No recorded action delta - this version predates the change index. View the raw diff.
Sep 18, 2024
aafbae9Update detected
No recorded action delta - this version predates the change index. View the raw diff.
May 13, 2024
1b36617Update detected
No recorded action delta - this version predates the change index. View the raw diff.
Oct 20, 2022
3376095Update detected
No recorded action delta - this version predates the change index. View the raw diff.
Jun 28, 2022
ffc6d71Update detected
No recorded action delta - this version predates the change index. View the raw diff.
May 12, 2022
4575e56Update detected
No recorded action delta - this version predates the change index. View the raw diff.
May 3, 2022
270247bUpdate detected
No recorded action delta - this version predates the change index. View the raw diff.
Nov 19, 2020
1fd1b69Update detected
No recorded action delta - this version predates the change index. View the raw diff.
Oct 21, 2020
7ca1fdfUpdate detected
No recorded action delta - this version predates the change index. View the raw diff.
Aug 26, 2020
23cc8bbUpdate detected
No recorded action delta - this version predates the change index. View the raw diff.
Jul 25, 2020
96e6195Update detected
No recorded action delta - this version predates the change index. View the raw diff.
Jul 2, 2020
31b9515Update detected
No recorded action delta - this version predates the change index. View the raw diff.
Mar 12, 2020
eba32fbUpdate detected
No recorded action delta - this version predates the change index. View the raw diff.
Sep 16, 2019
49aa1d0Update detected
No recorded action delta - this version predates the change index. View the raw diff.
Sep 16, 2019
71619cfUpdate detected
No recorded action delta - this version predates the change index. View the raw diff.
Sep 16, 2019
8279033Update detected
No recorded action delta - this version predates the change index. View the raw diff.
Sep 1, 2019
180033e`2019-08-29`
No recorded action delta - this version predates the change index. View the raw diff.
Aug 29, 2019
5016d52I updated my CLI and it looks like it reordered everything and changed the white-space, so everything looks changed, but is not
No recorded action delta - this version predates the change index. View the raw diff.
Jul 12, 2019
9d2dff1