During an incident you discover that a misconfigured bucket exposed customer invoices publicly for six days.
Likely causes → A public access setting or bucket policy change, often by automation or during debugging, without Block Public Access enforced at the account level.
Diagnose → Close the exposure first, then work out scope: which objects, from when to when, and whether anyone actually downloaded them (S3 server access logs, CloudTrail data events, CDN logs). Preserve all logs.
Fix → Block access immediately (aws s3api put-public-access-block --bucket acme-invoices --public-access-block-configuration BlockPublicAcls=true,IgnorePublicAcls=true,BlockPublicPolicy=true,RestrictPublicBuckets=true). Bring in security, legal and privacy right away; this is now a data incident. Regulations may set deadlines (GDPR requires notifying the authority within 72 hours of becoming aware of a reportable breach). Legal decides on customer and regulator notifications; engineers provide facts.
Prevent → Account-level S3 Block Public Access enforced by SCP, AWS Config rules and alerts for public buckets, and a security incident runbook that defines when legal gets involved.