Security Playbook
22 · Cloud & supply chainOWASP A02:20255 min read

Cloud misconfiguration: the public bucket

Many cloud breaches involve no exploit at all: a storage bucket, database snapshot or dashboard was simply readable by anyone. How storage access is decided, the guardrails that stop it at account level, and how to share files safely.

In one sentence

Turn on Block Public Access for the whole account, share files with short-lived signed URLs, and give every workload an IAM role scoped to its own resources.

Three ways to make a bucket public

A bucket policy with "Principal": "*", an object ACL set to public-read, or a misconfigured CDN in front of it. Each one is usually added to "make the image load" and forgotten. Scanners find open buckets constantly.

How a storage bucket ends up public
🪣s3://shop-invoicesPUBLIC
Anyone on the internet (and search engines)Can read
Bucket-scanning botsCan read
Your app, with its IAM roleCan read
A customer with a signed link (expires in 10 min)Blocked
Public buckets are one of the most common cloud leaks, usually from a quick fix ("just make it public so the image loads"). Turn on Block Public Access for the whole account and share files with signed URLs or a CDN with origin access control.
Toggle the settings and see who can read the invoices.

Guardrails that scale

  • Account / organization guardrails: Block Public Access at account level, organization policies (SCPs) that forbid disabling it.
  • Private by default, explicit exceptions: a public assets bucket is fine when it only ever holds public assets, separate from user data.
  • Signed URLs or CDN with origin access control for user files, so the bucket itself stays private.
  • Scoped IAM roles: the invoice service can read invoices/*, nothing else; no wildcard s3:* on *.
  • Continuous checks: cloud security posture tools (AWS Config, Security Hub, open-source scanners) alert when something becomes public.

Key takeaways

  • 01Many cloud leaks are misconfigurations, not exploits.
  • 02Enforce Block Public Access at account or organization level.
  • 03Share user files via signed URLs; keep buckets private.
  • 04Scope IAM roles per workload and monitor posture continuously.

Check your understanding

1 of 3

What causes many cloud data leaks?

Related concepts