Interview Prep/DevSecOps/Incident Response and Governance

An S3 bucket with customer files was public for three weeks. How do you work out what was actually accessed?

IntermediateScenarioIncident Response and Governance
Answer

Situation read → The answer depends entirely on which logs existed during those three weeks.

What I'd do →

  1. Block public access on the bucket now (aws s3api put-public-access-block).
  2. Check sources: S3 server access logs, CloudTrail data events (if enabled for the bucket), CloudFront logs if fronted.
  3. Query with Athena for GET requests from principals outside our accounts:
    SELECT remoteip, key, requestdatetime FROM s3_access_logs
    WHERE operation = 'REST.GET.OBJECT' AND requester = '-' ORDER BY requestdatetime;
    
  4. If no logs exist, legal must assume all objects were exposed.
  5. Enable account-level Block Public Access and access logging for all data buckets.

Why → Without data-access logs, you cannot prove a negative, and the breach scope becomes "everything".

Interview tip → This is the best argument for turning on data-event logging for sensitive buckets.

All DevSecOps questions

More on Incident Response and Governance