AWSQuickSetupJITNADeploymentRolePolicy

Last Modified

Sep 7, 2026

September 7, 2026 at 01:04 PM UTC

Version

v4

Total Versions

2

Created

Sep 7, 2026

Actions

33

Risk

Medium

The 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 1 documented escalation path, but only on named resources or under a condition. Review that scope before trusting it.

    • iam-009iam:AttachRolePolicyscoped
      • iam:AttachRolePolicy: condition iam:PolicyARN, on arn:aws:iam::*:role/AWS-QuickSetup-EnableJITNA-*

    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 launch resources that run as a more privileged role

    Grants the actions of 2 documented escalation paths, but only on named resources or under a condition. Review that scope before trusting it.

    • cloudformation-001iam:PassRole + cloudformation:CreateStackscoped
      • iam:PassRole: condition iam:AssociatedResourceARN, iam:PassedToService, iam:ResourceTag/QuickSetupDocument, on arn:aws:iam::*:role/AWS-QuickSetup-EnableJITNA-*
      • cloudformation:CreateStack: on arn:aws:cloudformation:*:*:stack/StackSet-AWS-QuickSetup-JITNA-*
    • cloudformation-005cloudformation:CreateChangeSet + cloudformation:ExecuteChangeSetscoped
      • cloudformation:CreateChangeSet: on arn:aws:cloudformation:*:*:stack/StackSet-AWS-QuickSetup-JITNA-*
      • cloudformation:ExecuteChangeSet: on arn:aws:cloudformation:*:*:stack/StackSet-AWS-QuickSetup-JITNA-*

    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 existing resources that run as another role

    Grants the actions of 1 documented escalation path, but only on named resources or under a condition. Review that scope before trusting it.

    • cloudformation-002cloudformation:UpdateStackscoped
      • cloudformation:UpdateStack: on arn:aws:cloudformation:*:*:stack/StackSet-AWS-QuickSetup-JITNA-*

    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": [
        {
          "Effect": "Allow",
          "Action": [
            "cloudformation:DescribeStacks",
            "cloudformation:DescribeStackDriftDetectionStatus",
            "cloudformation:ListStacks"
          ],
          "Resource": [
            "*"
          ]
        },
        {
          "Effect": "Allow",
          "Action": [
            "cloudformation:CreateStack",
            "cloudformation:UpdateStack",
            "cloudformation:DeleteStack",
            "cloudformation:CreateChangeSet",
            "cloudformation:DeleteChangeSet",
            "cloudformation:ExecuteChangeSet",
            "cloudformation:DescribeChangeSet",
            "cloudformation:DescribeStackResourceDrifts",
            "cloudformation:DetectStackDrift",
            "cloudformation:DetectStackResourceDrift",
            "cloudformation:DescribeStackEvents"
          ],
          "Resource": [
            "arn:aws:cloudformation:*:*:stack/StackSet-AWS-QuickSetup-JITNA-*"
          ]
        },
        {
          "Effect": "Allow",
          "Action": [
            "cloudformation:TagResource",
            "cloudformation:UntagResource"
          ],
          "Resource": [
            "arn:aws:cloudformation:*:*:stack/StackSet-AWS-QuickSetup-JITNA-*"
          ],
          "Condition": {
            "StringEquals": {
              "cloudformation:CreateAction": [
                "CreateStack",
                "UpdateStack",
                "CreateChangeSet",
                "ExecuteChangeSet"
              ]
            }
          }
        },
        {
          "Effect": "Allow",
          "Action": [
            "ssm:CreateAssociation",
            "ssm:UpdateAssociation",
            "ssm:DeleteAssociation",
            "ssm:DescribeAssociation",
            "ssm:GetDocument",
            "ssm:DescribeDocument"
          ],
          "Condition": {
            "ForAnyValue:StringEquals": {
              "aws:CalledVia": [
                "cloudformation.amazonaws.com"
              ]
            }
          },
          "Resource": [
            "arn:aws:ssm:*::document/AWSQuickSetupType-SetupJITNAResources",
            "arn:aws:ssm:*::document/AWSQuickSetupType-PropagateJustInTimeNodeAccessPolicies",
            "arn:aws:ssm:*:*:association/*"
          ]
        },
        {
          "Effect": "Allow",
          "Action": [
            "iam:CreateRole",
            "iam:TagRole"
          ],
          "Condition": {
            "ForAnyValue:StringLike": {
              "aws:TagKeys": [
                "QuickSetup*"
              ]
            },
            "StringEquals": {
              "aws:CalledViaLast": [
                "cloudformation.amazonaws.com"
              ],
              "aws:ResourceTag/QuickSetupDocument": [
                "AWSQuickSetupType-JITNA"
              ],
              "aws:RequestTag/QuickSetupDocument": [
                "AWSQuickSetupType-JITNA"
              ]
            }
          },
          "Resource": [
            "arn:aws:iam::*:role/AWS-QuickSetup-EnableJITNA-*"
          ]
        },
        {
          "Effect": "Allow",
          "Action": [
            "iam:GetRole",
            "iam:DeleteRole",
            "iam:GetRolePolicy",
            "iam:ListAttachedRolePolicies",
            "iam:ListRolePolicies",
            "iam:ListRoleTags"
          ],
          "Condition": {
            "ForAnyValue:StringEquals": {
              "aws:CalledVia": [
                "cloudformation.amazonaws.com"
              ]
            }
          },
          "Resource": [
            "arn:aws:iam::*:role/AWS-QuickSetup-EnableJITNA-*"
          ]
        },
        {
          "Effect": "Allow",
          "Action": [
            "iam:AttachRolePolicy",
            "iam:DetachRolePolicy"
          ],
          "Condition": {
            "ArnEquals": {
              "iam:PolicyARN": [
                "arn:aws:iam::*:policy/AWSQuickSetupManageJITNAResourcesExecutionPolicy"
              ]
            }
          },
          "Resource": [
            "arn:aws:iam::*:role/AWS-QuickSetup-EnableJITNA-*"
          ]
        },
        {
          "Effect": "Allow",
          "Action": [
            "iam:PassRole"
          ],
          "Resource": [
            "arn:aws:iam::*:role/AWS-QuickSetup-EnableJITNA-*"
          ],
          "Condition": {
            "StringEquals": {
              "iam:PassedToService": "ssm.amazonaws.com",
              "iam:ResourceTag/QuickSetupDocument": "AWSQuickSetupType-JITNA"
            },
            "ArnLike": {
              "iam:AssociatedResourceARN": [
                "arn:aws:ssm:*::document/AWSQuickSetupType-SetupJITNAResources",
                "arn:aws:ssm:*:*:association/*"
              ]
            }
          }
        }
      ]
    },
    "VersionId": "v4",
    "IsDefaultVersion": true,
    "CreateDate": "2026-09-07T12:27:08+00:00"
  }
}

Version History (5 recorded)

Raw history
v4updated

2 actions added

5d81119

AWSQuickSetupJITNADeploymentRolePolicy - Policy Version v3

No recorded action delta - this version predates the change index. View the raw diff.

Mar 12, 2026

35f051a

AWSQuickSetupJITNADeploymentRolePolicy - Policy Version v3

No recorded action delta - this version predates the change index. View the raw diff.

Feb 12, 2026

99a9b36

AWSQuickSetupJITNADeploymentRolePolicy - Policy Version v2

No recorded action delta - this version predates the change index. View the raw diff.

Feb 12, 2026

fbea5d3

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Apr 17, 2025

107f152