AWSSystemsManagerJustInTimeAccessTokenPolicy
Last Modified
Mar 12, 2026
March 12, 2026 at 09:27 PM UTC
Version
v6
Total Versions
3
Created
Feb 12, 2026
Actions
14
Risk
HighAn unrestricted escalation path, identity administration, secret reads or the power to switch off security monitoring. Read from this policy document alone: trust policies, boundaries and SCPs in your account still decide what actually succeeds. How this is assessed
- High
Can take over existing resources that run as another role
Grants every action of 1 documented escalation path on any resource with no condition, and 1 more in a scoped form.
- ssm:SendCommand: condition aws:CalledViaFirst, on arn:aws:ec2:*:*:instance/*, arn:aws:ssm:*:*:managed-instance/*, arn:aws:ssm:*:*:document/AWSSSO-CreateSSOUser
Use with caution: List the roles attached to the functions, instances, pipelines or notebooks it can modify: the holder effectively has them too.
Policy Document
View on GitHub{
"PolicyVersion": {
"Document": {
"Version": "2012-10-17",
"Statement": [
{
"Sid": "SsmStartSession",
"Effect": "Allow",
"Action": [
"ssm:StartSession"
],
"Resource": [
"arn:aws:ec2:*:*:instance/*",
"arn:aws:ssm:*:*:managed-instance/*",
"arn:aws:ssm:*:*:document/SSM-SessionManagerRunShell"
]
},
{
"Sid": "TerminateAndResumeSessionAndOpenDataChannel",
"Effect": "Allow",
"Action": [
"ssm:TerminateSession",
"ssm:ResumeSession",
"ssmmessages:OpenDataChannel"
],
"Resource": "arn:aws:ssm:*:*:session/*"
},
{
"Sid": "GuiConnect",
"Effect": "Allow",
"Action": [
"ssm-guiconnect:CancelConnection",
"ssm-guiconnect:GetConnection",
"ssm-guiconnect:StartConnection"
],
"Resource": "*"
},
{
"Sid": "SessionManagerKmsPermission",
"Effect": "Allow",
"Action": [
"kms:GenerateDataKey"
],
"Resource": "arn:aws:kms:*:*:key/*",
"Condition": {
"StringEquals": {
"aws:ResourceTag/SystemsManagerJustInTimeNodeAccessManaged": "true"
}
}
},
{
"Sid": "RdpKmsPermission",
"Effect": "Allow",
"Action": [
"kms:CreateGrant"
],
"Resource": "arn:aws:kms:*:*:key/*",
"Condition": {
"StringEquals": {
"aws:ResourceTag/SystemsManagerJustInTimeNodeAccessManaged": "true"
},
"StringLike": {
"kms:ViaService": "ssm-guiconnect.*.amazonaws.com"
},
"Bool": {
"aws:ViaAWSService": "true"
}
}
},
{
"Sid": "RdpStartSession",
"Effect": "Allow",
"Action": [
"ssm:StartSession"
],
"Resource": [
"arn:aws:ec2:*:*:instance/*",
"arn:aws:ssm:*:*:managed-instance/*",
"arn:aws:ssm:*:*:document/AWS-StartPortForwardingSession"
],
"Condition": {
"StringEquals": {
"aws:CalledViaFirst": "ssm-guiconnect.amazonaws.com"
}
}
},
{
"Sid": "SsmRdpSsoSetup",
"Effect": "Allow",
"Action": [
"sso:ListDirectoryAssociations*",
"identitystore:DescribeUser",
"ssm:GetCommandInvocation"
],
"Resource": "*",
"Condition": {
"StringEquals": {
"aws:CalledViaFirst": "ssm-guiconnect.amazonaws.com"
}
}
},
{
"Sid": "SsmRdpSsoSetupSendCommand",
"Effect": "Allow",
"Action": [
"ssm:SendCommand"
],
"Resource": [
"arn:aws:ec2:*:*:instance/*",
"arn:aws:ssm:*:*:managed-instance/*",
"arn:aws:ssm:*:*:document/AWSSSO-CreateSSOUser"
],
"Condition": {
"StringEquals": {
"aws:CalledViaFirst": "ssm-guiconnect.amazonaws.com"
}
}
}
]
},
"VersionId": "v6",
"IsDefaultVersion": true,
"CreateDate": "2026-02-12T18:02:43+00:00"
}
}Version History (6 recorded)
Raw historyAWSSystemsManagerJustInTimeAccessTokenPolicy - Policy Version v6
No recorded action delta - this version predates the change index. View the raw diff.
Mar 12, 2026
86c0901AWSSystemsManagerJustInTimeAccessTokenPolicy - Policy Version v6
No recorded action delta - this version predates the change index. View the raw diff.
Feb 12, 2026
f1ddee7AWSSystemsManagerJustInTimeAccessTokenPolicy - Policy Version v4
No recorded action delta - this version predates the change index. View the raw diff.
Feb 12, 2026
5998bd3AWSSystemsManagerJustInTimeAccessTokenPolicy - Policy Version v2
No recorded action delta - this version predates the change index. View the raw diff.
Sep 26, 2025
a65abdfAWSSystemsManagerJustInTimeAccessTokenPolicy - Policy Version v1
No recorded action delta - this version predates the change index. View the raw diff.
Sep 25, 2025
480f4c8Update detected
No recorded action delta - this version predates the change index. View the raw diff.
Apr 17, 2025
eb7b885