Exposed Cloud Storage
A public bucket full of private files
Cloud storage buckets are private by default, but one wrong policy or setting can make them readable by anyone on the internet. Automated scanners look for exposed buckets constantly. This module shows how the mistake happens, how it's found, and how account-wide guardrails prevent it.
Beginner · 5 steps
| Technique | T1530 (Data from Cloud Storage) |
|---|---|
| Common cause | Policy with "Principal": "*" |
| Guardrail | S3 Block Public Access (account level) |
| Safe sharing | Short-lived presigned URLs |
| Find sensitive data | Amazon Macie |
| Same risk on | Azure Blob, Google Cloud Storage |
Step by step
A quick fix "Customers can't download invoices"
Customers report that invoice links don't work. Under pressure, a developer adds a bucket policy that lets everyone read objects, with
"Principal": "*". Downloads work again, and so does everything else in the bucket.Found by scanners Minutes, not months
Automated tools try likely bucket names (company name plus words like "invoices", "backup", "prod") all day. Because listing is allowed, one request returns every file name in the bucket.
Data exposed Not just invoices
The listing shows invoices, but also a database export and a CSV of customer addresses that someone stored there "temporarily". The scanner downloads everything. This is a reportable data breach.
Guardrails catch it Block Public Access + posture checks
With Block Public Access turned on for the whole account, the public policy would have been rejected outright. A cloud security posture (CSPM) tool also flags any bucket that becomes public and alerts within minutes.
The right way to share Presigned URLs
The real fix for invoice downloads: the app checks the customer is logged in and owns the invoice, then creates a presigned URL valid for five minutes for that one file. The bucket stays completely private.
How to defend
- Turn on Block Public Access for the whole account, not bucket by bucket
- Share individual files with short-lived presigned URLs instead of public buckets
- Use a CDN with origin access control for public website assets
- Scan buckets for sensitive data and public exposure continuously
- Log access to buckets that hold sensitive data
More in Cloud Security.
Packets
| No. | Time | Source | Destination | Protocol | Info | Size |
|---|