Lion Cipher Lab

Audit and block public S3 bucket access (offline, the way AWS evaluates it)

Why it matters

The publicly-exposed S3 bucket is the most famous breach in the cloud era -- voter records, hospital files, defense contractor data, and countless backups have all leaked not because someone broke in, but because a storage bucket was quietly set to allow 'everyone.' Amazon S3 is where organisations park their data, and a single mis-set policy or ACL turns a private store into a URL anyone on the internet can read. The hard part is that 'is this bucket public?' is NOT a simple grep for 'Principal: *': AWS has a precise evaluation -- a policy that names a wildcard Principal but is narrowed by a…

What you'll learn

Steps in this lab

  1. What makes an S3 bucket "public" -- every term, defined once
  2. How you would read this on a real account -- and why we go offline
  3. Seed six realistic bucket configs as JSON
  4. Write the auditor -- AWS's public-access logic, offline
  5. Measure the BEFORE state (account Block Public Access OFF)
  6. Remediate at the account -- and measure the AFTER state
  7. The honest limits -- what Block Public Access does NOT fix
  8. What you built -- and the distinctness to keep straight

Open the full interactive lab →