Public S3 Bucket Exposed Customer PII for 8 Months

A single Block Public Access setting left unchecked exposed 3.2 million customer records in a logging bucket.

Overview

Every application bucket was locked down, but the logging bucket was left public during setup, and for 8 months it held customer PII from request payloads.

What happened

The team's S3 practices were strong: every application bucket required server-side encryption and versioning and had Block Public Access enabled at the bucket level. The gap was a bucket created for a new observability pipeline, and the story played out slowly.

  • An engineer created the logging bucket and left 'Block all public access' unchecked for testing.
  • Nobody ever locked it down.
  • The pipeline wrote logs into the bucket, and those logs carried request payloads.
  • Eight months later, an automated compliance audit found the public bucket.
  • A scan with Amazon Macie, the AWS service that finds personal and financial data in S3, sized the exposure.

Key concepts

  • S3 Block Public Access
  • AWS Macie
  • Data minimization
  • AWS Config rules

Interview questions

  • How do you ensure no S3 bucket in your AWS account can be made public accidentally?

Sign up free to read the full topic

More War Stories topics

Start free on Cariara · Coding problems · System design studio