Ad · 728×90 desktop · 320×50 mobile

Public S3 buckets: still a thing in 2026

Published 2026-04-24 · Cloud Security

Every quarter, some major company has a public-bucket incident that exposes customer data. In 2026. Despite AWS Block Public Access being a default for five years. Here's why it keeps happening and what actually prevents it.

Why this keeps happening

1. Legacy buckets pre-date Block Public Access

Before 2018, buckets defaulted to private, but permissions could be set to public via ACLs. BPA was introduced but not retroactively enforced. Old buckets still use old patterns.

2. Developers bypass controls "temporarily"

"Just for this demo, we need the bucket public." Six months later, demo long forgotten, bucket still public.

3. Bucket policies override account-level BPA (in narrow cases)

BPA has four toggles. Not all of them block bucket policies; some only block ACLs. A misconfigured BPA can still allow bucket-policy-based public access.

4. Cross-account sharing looks like public access to auditors

A bucket shared with a partner AWS account isn't technically "public", but the attack surface is real.

What actually prevents it

1. Enable all four BPA toggles at the account level

  • BlockPublicAcls
  • IgnorePublicAcls
  • BlockPublicPolicy
  • RestrictPublicBuckets

All four. Don't mix and match.

2. Deploy via SCPs, not just settings

AWS Service Control Policies can prevent any account from turning off BPA. This is the "even admins can't misconfigure" safety net.

3. Scan weekly

AWS Config rule: s3-bucket-public-read-prohibited. Also manual: Public S3 Bucket Scanner.

4. Require justification for any public bucket

If someone genuinely needs a public bucket (CDN origin, static site), it goes through an approval workflow with named owner and 90-day review.

5. Monitor for BPA changes

CloudTrail event: PutBucketPublicAccessBlock. Alert on any disable action.

For other clouds

  • Azure Blob: Storage account property "Allow Blob Anonymous Access" should be False. Enforce via Azure Policy.
  • GCP Cloud Storage: Enforce public access prevention at the project or organization level via Organization Policy.

Tools

Ad · 300×250 responsive

Joined by engineers at enterprises running the systems you build. No spam. No tracking in the emails.