AWS S3 Dangling DNS & Takeover Fingerprint
An orphan CNAME points to an Amazon S3 bucket that was deleted or never created. An attacker can create the S3 bucket with the exact matching name in any AWS account and host arbitrary payloads or phishing pages on your domain.
DNS CNAME Delegation Rules
Authoritative Response Token
curl -sI -H 'Host: vulnerable.example.com' http://vulnerable.example.com.s3.amazonaws.com | grep 'NoSuchBucket'When SubdomainWatch scanner identifies this response on an unresolved CNAME target, an automated alert is triggered within 800ms.
Remediation Guide & Defensive Action Plan
Defensive Verification Checklist:
- Audit authoritative DNS zone records for any CNAME pointing to
*.s3.amazonaws.com / *.s3-website-*.amazonaws.com. - Verify whether the target resource or bucket still exists under your organization's cloud tenant.
- If decommissioned, delete the DNS record immediately to close the public exposure window.
- Deploy a pre-merge IaC security gate (such as SubdomainWatch Takeover Guard) to intercept dangling records before pull requests merge.
resource "aws_route53_record" "dangling" {
zone_id = var.hosted_zone_id
name = "subdomain.example.com"
type = "CNAME"
# REMOVE OR POINT TO AN ACTIVE S3 BUCKET
}Why Static DNS Scanners Miss AWS S3 Takeovers
Passive DNS repositories like SecurityTrails and heavy scanners like Detectify record domain records retrospectively or trigger alert fatigue. SubdomainWatch conducts active recursive CNAME testing with zero false positives.
AWS S3 Takeover FAQs
Scan Your Domain for AWS S3 Orphans
Test any hostname live. Our diagnostic engine traverses CNAME hops and verifies authoritative provider tokens in seconds without requiring an account.