You find a ransom note in an S3 bucket and most objects have been deleted. What do you do in the first hour?
AdvancedScenarioIncident Response and Governance
Answer
Situation read → Cloud ransomware usually means stolen credentials with s3:DeleteObject or s3:PutObject rights. Contain the identity first, then recover data.
What I'd do →
- Find the principal in CloudTrail data events (or S3 server access logs):
aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=DeleteObjects \ --start-time 2026-11-08T00:00:00Z --max-results 50 - Disable that access key or attach a deny-all policy to the role; revoke active sessions.
- Add a bucket policy denying writes and deletes to everyone except the IR role.
- Recover: if versioning was on, remove delete markers; otherwise restore from AWS Backup or the replicated bucket.
- Check for exfiltration (
GetObjectvolume) because that changes the notification duties. - Do not pay or contact the attacker without legal and leadership involvement.
Why → Versioning, Object Lock and cross-account backups decide whether this is a bad day or a business-ending one.
Interview tip → Mention S3 Object Lock in compliance mode for critical data.
More on Incident Response and Governance
Your 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?IntermediateA developer's GitHub account was compromised and the attacker pushed a commit to `main` that adds a postinstall script. What now?Advanced