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 →
- Block public access on the bucket now (
aws s3api put-public-access-block). - Check sources: S3 server access logs, CloudTrail data events (if enabled for the bucket), CloudFront logs if fronted.
- Query with Athena for
GETrequests from principals outside our accounts:SELECT remoteip, key, requestdatetime FROM s3_access_logs WHERE operation = 'REST.GET.OBJECT' AND requester = '-' ORDER BY requestdatetime; - If no logs exist, legal must assume all objects were exposed.
- 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.
More on Incident Response and Governance
You find a ransom note in an S3 bucket and most objects have been deleted. What do you do in the first hour?AdvancedYour company has its first real security incident and people are all talking at once in Slack. How do you organise the response?BeginnerAn EC2 instance is confirmed compromised. A colleague wants to terminate it immediately. What do you do instead?IntermediateFalco reports a reverse shell from a pod in EKS. How do you contain it while keeping evidence?AdvancedAfter a security incident, leadership wants to know who to blame. How do you run the post-incident review?BeginnerYou are asked to run a security tabletop exercise for the engineering team. How do you design it?Intermediate