cloudsecuritymonitoring.devWhat to watch in each cloud

Public S3 bucket: what makes a bucket public, and how to close it

An S3 bucket is public when its bucket policy or ACL grants everyone access and S3 Block Public Access doesn't stop it.

For S3 bucket security, start with one call: aws s3api get-bucket-policy-status answers IsPublic. Turning all four settings on for the account blocks public access to every bucket in it.

Published December 4, 2026 · Updated December 4, 2026. Read from Amazon S3, CloudTrail and CloudFront documentation on December 4, 2026.

Which settings make an S3 bucket public?

Three decide it: the bucket policy and the ACLs can grant public access, and S3 Block Public Access can override both. S3 treats an ACL as public if it grants any permission to the AllUsers or AuthenticatedUsers groups.

S3 assumes a bucket policy is public until it proves otherwise. It counts as non-public only if it grants access to fixed values with no wildcard: a named AWS principal, an aws:SourceIp range no wider than /8 for IPv4 or /32 for IPv6 (private ranges aside), or keys such as aws:SourceArn, aws:SourceVpc, aws:SourceVpce or aws:SourceAccount. AWS's own example of a public statement:

{ "Principal": "*", "Resource": "*", "Action": "s3:PutObject", "Effect": "Allow" }

New buckets are private. AWS turned on Block Public Access and turned off ACLs for every new bucket from April 2023, however it is created; buckets made before then kept their settings (AWS notice, December 2022).

What do the 4 Block Public Access settings do?

Each closes one way in, and all four together close the bucket. S3 applies the most restrictive mix of the organization, account, bucket and access point settings.

SettingWhat it doesWhat it leaves alone
BlockPublicAclsFails PutBucketAcl, PutObjectAcl and PutObject calls that carry a public ACLACLs already in place
IgnorePublicAclsS3 ignores every public ACL on the bucket and its objectsNew public ACLs can still be written
BlockPublicPolicyFails PutBucketPolicy if the policy allows public accessA public policy already in place
RestrictPublicBucketsA bucket with a public policy serves only AWS service principals and the owner's accountThe policy as written

From Amazon S3's Block Public Access page, read December 4, 2026.

AWS recommends BlockPublicPolicy at the account level: anyone allowed to edit a bucket policy could otherwise write one that turns the bucket's own setting off. At the organization level, AWS Organizations applies all four together, with no picking.

How do you check one bucket, or every bucket?

Ask S3 directly for one bucket, and use a rule that runs on every change for all of them. These three read-only calls show the settings and the verdict:

# the bucket's 4 settings
aws s3api get-public-access-block --bucket NAME
# the account's 4 settings
aws s3control get-public-access-block --account-id 111122223333
# is the policy public? IsPublic: true or false
aws s3api get-bucket-policy-status --bucket NAME

For every bucket, AWS Config's managed rule s3-bucket-public-read-prohibited runs on each configuration change and on a schedule, at $0.001 per rule evaluation for the first 100,000 a month (AWS Price List, November 25, 2026). Prowler's check s3_bucket_public_access, rated critical, does the same for free: pip install prowler, then prowler aws. IAM Access Analyzer for S3 reports buckets open to anyone on the internet or to other AWS accounts, with the source of the access.

What breaks when you block public access?

A static website served from the S3 website endpoint, because it needs public read: AWS's own steps for one start by turning Block Public Access off for the bucket. To keep the bucket private, serve the site through CloudFront with origin access control (OAC) and the bucket itself as the origin. OAC can't be used with a website endpoint, and it needs Object Ownership set to bucket owner enforced, the default for new buckets (CloudFront docs, read December 4, 2026).

How do you get told the day a bucket goes public?

Alert on the five CloudTrail events that can open it: PutBucketPolicy, PutBucketAcl, PutBucketPublicAccessBlock and DeleteBucketPublicAccessBlock for a bucket, and DeleteAccountPublicAccessBlock for the account. They are management events, which CloudTrail logs by default and keeps in Event history for 90 days at no charge.

Security Hub's control CloudWatch.8, from the CIS benchmark, asks for a metric filter and alarm on bucket policy changes, fed by a trail sent to CloudWatch Logs. Its filter lists PutBucketPolicy and PutBucketAcl but none of the three Block Public Access events, so add those yourself (filter read December 4, 2026).

IonCipher pushes when a bucket goes public, with read-only access to AWS, Azure, GCP and Cloudflare. The cloud watch is on Pro, $39 a month per org, and not on the Free plan: Visit IonCipher. The same change in the other three clouds is in the 6 changes, by cloud, and the setting behind it in cloud misconfiguration.

How was this page checked?

Every setting, command and event name was read on AWS's documentation on December 4, 2026, and every price in the AWS Price List API (published November 25, 2026). Errors: support@winding.ai.

  1. Blocking public access to your Amazon S3 storage: the 4 settings, the meaning of public, IAM Access Analyzer for S3
  2. Amazon S3 new bucket defaults, April 2023
  3. get-public-access-block, s3control get-public-access-block, get-bucket-policy-status
  4. s3-bucket-public-read-prohibited, AWS Config pricing
  5. S3 website permissions, CloudFront origin access control
  6. S3 events in CloudTrail, Security Hub CloudWatch controls, Prowler s3_bucket_public_access
  7. IonCipher home and pricing, read December 4, 2026