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.
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 wildcards3:*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
Least privilege
Assume something will get hacked. Least privilege makes sure that when it does, the attacker gets the keys to one room, not the whole building.
6 min read →Secrets management
A secret in a repo is leaked, even after you delete it. Keep secrets in a vault or the platform's secret store, scan before push, scope every key, and revoke first, investigate second.
6 min read →SSRF
Your server sits inside your network. If a user picks the URL it fetches, they borrow that position. Allowlist destinations, block private addresses after DNS resolution, and lock down cloud metadata.
7 min read →