From findmytakeover
Detects dangling DNS records pointing to deleted cloud infrastructure across AWS, GCP, Azure, and Cloudflare using findmytakeover. Helps prevent subdomain takeovers and audit DNS zones for orphaned entries.
How this skill is triggered — by the user, by Claude, or both
Slash command
/findmytakeover:dangling-dns-finderThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Find DNS records that point at infrastructure that no longer exists — the
Find DNS records that point at infrastructure that no longer exists — the
classic subdomain-takeover setup. A CNAME to a deleted ELB, or an A record
to a released cloud IP, can be silently reclaimed by someone else and used to
serve content under your domain.
This skill drives the repo's own tool, findmytakeover.py.
It enumerates every DNS record and every live infrastructure endpoint
(IPs, ELB/LB hostnames, etc.) across the configured AWS/GCP/Azure accounts,
then reports any DNS record whose value has no matching live resource. No
wordlists, no guessing — a record is dangling because the thing it points at is
not in your inventory.
Do not write new scripts to resolve DNS or probe endpoints — the tool already collects both sides and diffs them. Your job is to configure it, run it, and interpret the output.
ViewOnlyAccess + SecurityAudit (or an assumable IAM role)Viewer (Application Default Credentials, or a service-account key)Reader (Azure CLI login, or tenant/client/secret)CLOUDFLARE_API_TOKEN env, or a token string)read/inspect group (~/.oci/config DEFAULT profile, or a config path)pip3 install . from the repo root (installs from pyproject.toml).The tool reads findmytakeover.config (YAML) —
default path is the repo root, override with -c. Enable only the providers the
user actually has. For each, set enabled: true and pick credentials:
credentials: default — use the local CLI's logged-in creds and auto-discover
accounts/projects/subscriptions. Simplest; prefer this.accounts: explicitly.A provider appears under both dns: and infra: — both must be enabled for the
dangling check to run (it needs both sides to diff). Use exclude: for IP
ranges/domains that are known-safe and should never be flagged (e.g. SaaS email
domains, reserved ranges).
Confirm the config with the user before running — wrong account scope is the main way this wastes time.
python3 findmytakeover.py -c findmytakeover.config
# add -d dump.csv to also save the raw DNS + infrastructure inventory
It prints how many DNS records and infra resources it collected per provider, then one line per dangling record:
Found dangling DNS record - <name> with value <value> in <cloud> cloud (account/...: <id>)
Use -d <file> whenever the user wants to inspect the raw data or when a result
looks surprising — the dump shows exactly what DNS and infra were compared.
Present the dangling records as a table: Subdomain · Value (target) · Cloud ·
Account. Group by cloud. Call out anything sensitive (customer-named
subdomains, *-prod hosts) for manual confirmation before any deletion.
Frame confidence honestly (see Interpreting results) — a value missing from the inventory is a strong signal, not proof, and some classes of record are expected to have no backing infra.
The tool only reports; it does not delete. For each confirmed dangling record,
show the user the deletion command for their DNS provider (e.g.
aws route53 change-resource-record-sets with a change batch, gcloud dns record-sets delete, az network dns record-set ... delete).
DNS deletion is hard to reverse and outward-facing — default to showing the
command and letting the user run it. Only run it yourself if they explicitly say
so, and never batch-delete customer-named or *-prod records without a
record-by-record confirmation.
A record can have no matching infra yet be perfectly fine. Bucket these separately as "stale / out of scope," not as takeover risks:
*.acm-validations.aws, *.authorize.certificatemanager.goog,
_acme-challenge.*. These point at validation zones / single-use tokens, not
service endpoints. Not a takeover vector.*.dkim.*, *.domainkey.*, *.hubspotemail.net, salesforce/highspot/etc.).
Expected to have no infra in your accounts.exclude: once confirmed.A genuine takeover risk is a record pointing at a real endpoint (ELB, cloud host, app) that exists in none of the accounts you scanned.
dns and infra must be enabled (and for the same providers you care
about) or there's nothing to diff — the tool will say so and exit.infra enabled and scanned —
otherwise a live delegation looks dangling.-d if a known-good record
shows up as dangling.npx claudepluginhub anirudhbiyani/findmytakeover --plugin findmytakeoverHunts DNS-based persistence like hijacking, dangling CNAMEs, wildcard abuse, unauthorized zones using SecurityTrails API, passive DNS, and audit logs for threat hunting.
Hunts for DNS-based persistence mechanisms (hijacking, dangling CNAMEs, wildcard abuse, zone modifications) using SecurityTrails API and DNS audit logs. Useful for incident response and threat hunting.
Hunts for DNS-based persistence mechanisms (hijacking, dangling CNAMEs, wildcard abuse, zone modifications) using passive DNS databases, SecurityTrails API, and DNS audit logs.