S3UnlockBucketPolicy

Last Modified

Mar 12, 2026

March 12, 2026 at 09:28 PM UTC

Version

v1

Total Versions

1

Created

Nov 6, 2024

Actions

8

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": [
            "s3:DeleteBucketPolicy",
            "s3:PutBucketPolicy",
            "s3:GetBucketPolicy",
            "s3:ListAllMyBuckets"
          ],
          "Resource": "*"
        },
        {
          "Sid": "DenyManagingBucketPolicyForNonRootCallers",
          "Effect": "Deny",
          "Action": [
            "s3:DeleteBucketPolicy",
            "s3:PutBucketPolicy",
            "s3:GetBucketPolicy",
            "s3:ListAllMyBuckets"
          ],
          "Resource": "*",
          "Condition": {
            "StringNotLike": {
              "aws:PrincipalArn": "arn:aws:iam::*:root"
            }
          }
        }
      ]
    },
    "VersionId": "v1",
    "IsDefaultVersion": true,
    "CreateDate": "2024-11-06T21:55:56+00:00"
  }
}

Version History (2 recorded)

Raw history
v1updated

scope changed, no action added or removed

4568cc9

Update detected

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

Nov 15, 2024

4f952e0