AWSSDMPServiceRolePolicy
Last Modified
Aug 10, 2026
August 10, 2026 at 11:03 PM UTC
Version
v2
Total Versions
2
Created
Aug 10, 2026
Actions
33
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:ResourceAccount, aws:ResourceTag/CreatedBy, iam:PermissionsBoundary, on arn:aws:iam::*:role/SDMP-*
- iam:AttachRolePolicy: condition aws:ResourceAccount, aws:ResourceTag/CreatedBy, iam:PermissionsBoundary, on arn:aws:iam::*:role/SDMP-*
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": "ManageServiceLinkedChannel",
"Effect": "Allow",
"Action": [
"cloudtrail:CreateServiceLinkedChannel",
"cloudtrail:GetServiceLinkedChannel",
"cloudtrail:UpdateServiceLinkedChannel",
"cloudtrail:DeleteServiceLinkedChannel"
],
"Resource": "arn:aws:cloudtrail:*:*:channel/aws-service-channel/sdmp/*",
"Condition": {
"StringEquals": {
"aws:ResourceAccount": "${aws:PrincipalAccount}"
}
}
},
{
"Sid": "AllowListOperations",
"Effect": "Allow",
"Action": [
"cloudtrail:ListServiceLinkedChannels",
"iam:ListPolicies",
"iam:ListPolicyTags",
"iam:ListRoles",
"account:ListRegions"
],
"Resource": "*"
},
{
"Sid": "CreateRoleWithConditions",
"Effect": "Allow",
"Action": [
"iam:AttachRolePolicy",
"iam:CreateRole",
"iam:PutRolePolicy"
],
"Resource": "arn:aws:iam::*:role/SDMP-*",
"Condition": {
"ArnEquals": {
"iam:PermissionsBoundary": "arn:aws:iam::aws:policy/AWSDenyAll"
},
"StringEquals": {
"aws:ResourceAccount": "${aws:PrincipalAccount}"
},
"StringLike": {
"aws:ResourceTag/CreatedBy": "arn:aws:iam::*:role/SDMPServiceRole*"
}
}
},
{
"Sid": "AllowSDMPRoleTagging",
"Effect": "Allow",
"Action": "iam:TagRole",
"Resource": "arn:aws:iam::*:role/SDMP-*",
"Condition": {
"ForAllValues:StringEquals": {
"aws:TagKeys": [
"CreatedBy"
]
}
}
},
{
"Sid": "AttachAWSDenyAll",
"Effect": "Allow",
"Action": "iam:AttachRolePolicy",
"Resource": "arn:aws:iam::*:role/SDMP-*",
"Condition": {
"ArnEquals": {
"iam:PolicyARN": "arn:aws:iam::aws:policy/AWSDenyAll"
},
"StringLike": {
"aws:ResourceTag/CreatedBy": "arn:aws:iam::*:role/SDMPServiceRole*"
},
"StringEquals": {
"aws:ResourceAccount": "${aws:PrincipalAccount}"
}
}
},
{
"Sid": "ReadSDMPRoles",
"Effect": "Allow",
"Action": [
"iam:GetRole",
"iam:GetRolePolicy",
"iam:ListRoleTags",
"iam:ListRolePolicies",
"iam:ListAttachedRolePolicies"
],
"Resource": [
"arn:aws:iam::*:role/SDMP-*",
"arn:aws:iam::*:role/SDMPServiceRole*",
"arn:aws:iam::*:role/aws-service-role/sdmp.amazonaws.com/AWSServiceRoleForSDMP"
]
},
{
"Sid": "ReadSDMPPolicies",
"Effect": "Allow",
"Action": [
"iam:GetPolicy",
"iam:GetPolicyVersion",
"iam:ListPolicyVersions"
],
"Resource": [
"arn:aws:iam::*:policy/SDMP*"
]
},
{
"Sid": "AllowSecurityServiceVerification",
"Effect": "Allow",
"Action": [
"guardduty:ListDetectors",
"guardduty:GetDetector",
"macie2:GetMacieSession",
"config:DescribeConfigurationRecorders",
"config:DescribeConfigurationRecorderStatus",
"securityhub:DescribeHub",
"securityhub:ListFindingAggregators",
"inspector2:BatchGetAccountStatus",
"detective:ListGraphs",
"cloudtrail:DescribeTrails",
"cloudtrail:GetTrailStatus"
],
"Resource": "*"
}
]
},
"VersionId": "v2",
"IsDefaultVersion": true,
"CreateDate": "2026-08-10T22:27:25+00:00"
}
}Version History (2 recorded)
Raw historyscope changed, no action added or removed
32 actions added