A security researcher reports they took over `promo.example.com`, which pointed to a deleted cloud resource. What happened?
IntermediateScenarioIncident Response and Governance
Answer
Situation read → Subdomain takeover through a dangling DNS record. The CNAME still pointed to a deleted resource (S3 website, Azure app, Heroku), and the attacker claimed that name.
What I'd do →
- Delete the dangling DNS record immediately.
- Check whether cookies scoped to
.example.comcould have been read by the attacker's page. - Scan all DNS zones for CNAMEs pointing to non-existent resources (tools like
dnsReaper, or a script comparing records to cloud inventory). - Manage DNS in Terraform together with the resource it points to, so they are created and destroyed together.
Why → Takeovers enable phishing and cookie theft on a trusted domain.
Interview tip → "DNS and the resource it points to should share a lifecycle" is the lesson.
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