7 of 50 in All Controls
aws

Enforce S3 Block Public Access at Organization Level

IDAWS-DATA-001
Severity
critical
Automation
Auto
Category
data-protection
Enforcementmandatory
Complexity / Impact
low(disruptive impact)
Cloud Scopeaws:root
Environments
all
Target Resources
S3
Services
s3aws-organizationsservice-control-policiesconfig
Tags
data-protections3storagepreventativelanding-zone
Frameworks
CIS AWSNIST 800-53SOC 2PCI DSS
Governance
(quarterly)
Created
2026-05-03
Last Updated
2026-05-30

Specification & Description

Enforce S3 Block Public Access across all Landing Zone accounts using a multi-layered governance strategy: the primary control utilizes the native AWS Organizations S3 Policy type applied globally from the Management account, backed by an SCP to prevent local tampering of bucket/account settings, and continuous AWS Config tracking.

Technical Specifications

S3 Block Public Access operates across three distinct governance layers that must be aligned:

1. Organizations-level S3 Policy Type (Primary Control)

AWS Organizations supports a dedicated "S3 Policy" resource type. When enabled and configured on the Organization Root via the Management account, it globally overrides and enforces S3 Block Public Access across all underlying member accounts, buckets, and objects natively.

The four settings and what each prevents:

SettingEffect
BlockPublicAclsRejects PUT requests that include a public ACL; ignores public ACLs on existing objects
IgnorePublicAclsIgnores all public ACLs on buckets and objects, even if already set
BlockPublicPolicyRejects bucket policies that grant public access
RestrictPublicBucketsRestricts access to buckets with public policies to only AWS services and authorized users

All four must be enabled. Enabling only a subset leaves exploitable gaps - for example, enabling BlockPublicPolicy without IgnorePublicAcls still allows public access via legacy ACLs.

2. SCP Guardrail - Prevent Local Bypass (Defense in Depth)

While the Organizations S3 Policy type acts as an absolute override, an SCP is applied to member accounts to block unauthorized local attempts to drop account-level or bucket-level configurations, preventing intentional or accidental local drift.

3. AWS Config - Continuous Drift Detection

The s3-account-level-public-access-blocks-periodic managed Config rule evaluates member accounts on a periodic schedule, ensuring local resource structures remain aligned and visible to compliance frameworks.

Security Rationale

Publicly exposed S3 storage is a primary vehicle for enterprise data breaches. Relying on individual account administrators to maintain local S3 blocks creates scaling risks. Utilizing the native AWS Organizations S3 Policy type provides an absolute central override that cannot be altered or bypassed at the individual member account or bucket level, while an SCP prevents local state changes.

Business & Security Impact

Without this centralized policy, any member account team can inadvertently expose automated backups, log archives, or sensitive data delivery pipelines. Enforcing this policy globally blocks all public S3 endpoints across the entire multi-account footprint.

Compliance Framework Mappings (4)

Regulatory baselines and industry standards mapped to this control specification.

Beta
Framework / StandardMapped Requirements & ControlsControls
CIS AWS Foundations Benchmark v3.0CIS AWS
2.1.4
1
NIST 800-53 Rev 5NIST 800-53
AC-3SC-7
2
SOC 2SOC 2
CC6.1
1
PCI DSS v4.0PCI DSS
1.3.2
1

* Compliance framework mappings are provided for informational architectural reference. Always verify control alignment against your organization's formal audit requirements.

Automated Detection & Rule Logic

Detection Engine: aws-api • Automated: Yes

Two detection layers run in parallel. The AWS Config managed rule s3-account-level-public-access-blocks-periodic evaluates each account periodically and marks it NON_COMPLIANT if any of the four settings is disabled or missing entirely. The CLI commands below provide on-demand multi-account verification. Any account returning false for a setting, or missing the configuration block altogether, is flagged for immediate remediation.

Verify Block Public Accessbash
# Verify Block Public Access settings for a specific account
aws s3control get-public-access-block \
  --account-id <ACCOUNT_ID> \
  --query 'PublicAccessBlockConfiguration'

# Check all active accounts in the organization for non-compliant settings
for account_id in $(aws organizations list-accounts \
  --query 'Accounts[?Status==`ACTIVE`].Id' \
  --output text); do
  
  result=$(aws s3control get-public-access-block \
    --account-id "$account_id" \
    --query 'PublicAccessBlockConfiguration' \
    --output json 2>&1)
  
  # Catch accounts that have NO configuration block configured at all
  if echo "$result" | grep -q "NoSuchPublicAccessBlockConfiguration"; then
    echo "NON_COMPLIANT: $account_id - configuration is missing."
  # Catch accounts where a setting is explicitly set to false
  elif echo "$result" | grep -q "false"; then
    echo "NON_COMPLIANT: $account_id - $result"
  else
    echo "COMPLIANT: $account_id - $result"
  fi
done

# List Config non-compliant accounts for the managed rule
aws configservice get-compliance-details-by-config-rule \
  --config-rule-name s3-account-level-public-access-blocks-periodic \
  --compliance-types NON_COMPLIANT \
  --query 'EvaluationResults[].EvaluationResultIdentifier.EvaluationResultQualifier.ResourceId'

Remediation Guide & Automation

Enable the S3 Policy Type in AWS Organizations, apply the global block payload, deploy the protective SCP to the organization root to prevent local modification attempts, and verify tracking with AWS Config.

Step-by-Step Instructions

  1. Enable the S3 Policy feature flag inside your AWS Organizations Management account.
  2. Attach the AWS Organizations S3 Policy payload to the Organization Root OU.
  3. Attach the protective SCP to the root OU to prevent API modification commands against bucket or account blocks.
  4. Deploy the AWS Config rule `s3-account-level-public-access-blocks-periodic` to track continuous compliance.
S3 Policy Payloadjson
# AWS Organizations S3 Policy Type
# Attach directly to the Organization Root via Management Account
{
  "s3_attributes": {
    "public_access_block_configuration": {
      "@@assign": "all"
    }
  }
}
Prevent disabling S3 Block Public Accessother
# SCP: Prevent member accounts from disabling S3 Block Public Access
# Attach to the organization root or all workload OUs.
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "DenyDisablingS3BlockPublicAccess",
      "Effect": "Deny",
      "Action": [
        "s3:PutAccountPublicAccessBlock",
        "s3:PutBucketPublicAccessBlock"
      ],
      "Resource": "*",
      "Condition": {
        "ArnNotLike": {
          "aws:PrincipalArn": [
            "arn:aws:iam::*:role/LandingZoneAdminRole"
          ]
        }
      }
    }
  ]
}

We value your privacy

We use analytics cookies to understand how visitors interact with our site and to improve the user experience. You can choose to accept or decline these cookies.