SQSUnlockQueuePolicy

Last Modified

Mar 12, 2026

March 12, 2026 at 09:28 PM UTC

Version

v1

Total Versions

1

Created

Nov 6, 2024

Actions

9

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

    Flagged by AWS IAM Access Analyzer

    AWS's own policy validation raises 1 security warning: STRING_LIKE_OPERATOR_WITH_ARN_CONDITION_KEYS.

    • Use the operator type ARN, String instead of operator string for the condition key aws:PrincipalArn.

    Use with caution: Read AWS's finding and the documentation it links to.

IAM Access Analyzer (1)

  • Security warning / STRING_LIKE_OPERATOR_WITH_ARN_CONDITION_KEYS

    Use the operator type ARN, String instead of operator string for the condition key aws:PrincipalArn. AWS docs

Policy Document

View on GitHub
{
  "PolicyVersion": {
    "Document": {
      "Version": "2012-10-17",
      "Statement": [
        {
          "Sid": "DenyAllOtherActionsOnAnyResource",
          "Effect": "Deny",
          "NotAction": [
            "sqs:SetQueueAttributes",
            "sqs:GetQueueAttributes",
            "sqs:ListQueues",
            "sqs:GetQueueUrl"
          ],
          "Resource": "*"
        },
        {
          "Sid": "DenyGettingQueueAttributesOnNonOwnQueue",
          "Effect": "Deny",
          "Action": [
            "sqs:GetQueueAttributes"
          ],
          "Resource": "arn:aws:sqs:*:*:*",
          "Condition": {
            "StringNotEqualsIfExists": {
              "aws:ResourceAccount": [
                "${aws:PrincipalAccount}"
              ]
            }
          }
        },
        {
          "Sid": "DenyActionsForNonRootUser",
          "Effect": "Deny",
          "Action": [
            "sqs:SetQueueAttributes",
            "sqs:GetQueueAttributes",
            "sqs:ListQueues",
            "sqs:GetQueueUrl"
          ],
          "Resource": "*",
          "Condition": {
            "StringNotLike": {
              "aws:PrincipalArn": "arn:aws:iam::*:root"
            }
          }
        }
      ]
    },
    "VersionId": "v1",
    "IsDefaultVersion": true,
    "CreateDate": "2024-11-06T21:51:02+00:00"
  }
}

Version History (2 recorded)

Raw history
v1updated

scope changed, no action added or removed

a5efde9

Update detected

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

Nov 15, 2024

4f952e0