What problem does it solve?
Attackers maintain persistence by hijacking DNS records, creating unauthorized subdomains, abusing wildcard entries, or exploiting dangling CNAMEs pointing to deprovisioned cloud resources, and these changes survive credential rotation and host reimaging. This Skill provides a structured hunting methodology to detect such DNS-based persistence before it is abused.
Core Features & Use Cases
- Baseline and Diff Analysis: Export current zone records and compare against a historical baseline to catch unauthorized A, AAAA, CNAME, MX, NS, and TXT modifications.
- Passive DNS Investigation: Query the SecurityTrails API for historical records to identify new subdomains, dangling CNAMEs, and NS delegation changes.
- Audit Log Review: Analyze Route53, Azure DNS, and Cloudflare audit logs for unauthorized zone modifications.
- Use Case: A SOC analyst investigating a suspected compromise runs this hunt to discover a dangling CNAME pointing to a released S3 bucket, confirming a subdomain takeover risk, and receives a JSON report with severity and remediation steps.
Quick Start
Hunt for DNS-based persistence in my domain by comparing current zone records against the baseline and querying SecurityTrails for dangling CNAMEs and unauthorized changes.