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

TechniqueT1530 (Data from Cloud Storage)
Common causePolicy with "Principal": "*"
GuardrailS3 Block Public Access (account level)
Safe sharingShort-lived presigned URLs
Find sensitive dataAmazon Macie
Same risk onAzure Blob, Google Cloud Storage

Step by step

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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

More in Cloud Security.