/findmytakeover:dangling-dns-finderfrom findmytakeover
Finds dangling DNS records and subdomain-takeover risks across AWS, Azure, GCP, Cloudflare and OCI using the findmytakeover tool.
Ships in findmytakeover. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Find DNS records that point at infrastructure that no longer exists — the
classic subdomain-takeover setup. A CNAME to a deleted ELB or S3 bucket, or
an A record to a released cloud IP, can be reclaimed by someone else and
used to serve content under the user's domain.
This skill drives the findmytakeover tool. It enumerates every DNS record
and every live infrastructure endpoint across the configured accounts,
then reports records whose target is in none of them. Third-party SaaS
targets are checked for NXDOMAIN (and optionally an "unclaimed site" page).
No wordlists, no guessing.
Do not write your own scripts to enumerate DNS or probe endpoints — the
tool collects both sides and diffs them. Your job is to configure it, run it,
and interpret the JSON. The one exception is re-checking a single record with
dig right before remediation (step 5).
findmytakeover --version already works → use it.pip install . (Python 3.12+).gh release download --repo anirudhbiyani/findmytakeover --pattern '*.whl'
then pipx install ./findmytakeover-*.whl. (pipx install findmytakeover
works too once the version is on PyPI.) Or the Docker image, with the
config and cloud credential directories mounted read-only.
Below, findmytakeover means whichever of these you ended up with.ViewOnlyAccess + SecurityAudit (or an assumable read-only role)Viewer (Application Default Credentials, or a service-account key)Reader (az login, or tenant/client/secret)CLOUDFLARE_API_TOKEN)read/inspect (~/.oci/config DEFAULT profile)The tool reads a YAML config (findmytakeover.config in the repo is the
annotated example; pass another with -c). Enable only the providers the user
has. For each, set enabled: true and pick credentials:
credentials: default — the local CLI's session, with accounts / projects /
subscriptions auto-discovered. Simplest; prefer it.accounts: listed explicitly.Each provider appears under both dns: and infra:. A record can only be
judged against inventory that was collected, so enable infra for every
provider that could own a target, not just the one hosting the zone.
Government clouds:
us-gov-west-1 / us-gov-east-1).cloud: AzureUSGovernment to the Azure block.exclude: takes IP ranges (CIDR, v4/v6) and domains. A domain matches itself
and its subdomains, not substrings.
Confirm the scope (providers, accounts, exclusions) with the user before running — wrong account scope is the main source of false positives. When showing the config, never echo client secrets, tokens or key paths back.
findmytakeover -c findmytakeover.config --json findings.json
findings.json, not the console. Each finding has record,
record_type, target, dns_provider, account, target_owner,
saas_service, dns_status, http_status and confidence.-d dump.csv saves the raw DNS + inventory that was diffed. Use it when a
known-good record shows up.--verify-http fetches fingerprinted SaaS subdomains to match the
provider's "no such site" page. It sends requests to the user's hosts, so
ask first. It confirms takeovers DNS alone can't (most SaaS wildcard DNS).--no-verify-dns makes no lookups at all, for offline or locked-down runs.high finding.
If outbound DNS is blocked, the system resolver's answer stands; set
FINDMYTAKEOVER_CONFIRM_RESOLVERS to resolvers the network allows.FINDMYTAKEOVER_MAX_WORKERS (default 8); if collection_errors mention
throttling or rate limits, lower it instead.If summary.complete is false (console: "WARNING: the scan is incomplete"),
some DNS or inventory was not read. collection_errors names the provider,
scope and API that failed — usually a missing permission (an Azure
AuthorizationFailed shows up here too). A missing inventory
makes live records look dangling, so report the gaps before the findings
and offer to fix and rerun.
Rank by confidence, highest first:
| confidence | Meaning | Treat as |
|---|---|---|
high | SaaS target is NXDOMAIN, or serves the provider's unclaimed-site page | Likely claimable now — urgent |
inventory-miss | Cloud-looking target not in any scanned account | Dangling, unless an unscanned account owns it |
target-nxdomain | MX / SRV / SPF target doesn't exist | Broken mail/SPF; a takeover only if that domain is registrable (check WHOIS) |
fingerprinted-still-resolving / -dns-unknown / -unverified | Known takeover-prone SaaS, not confirmed | Review; suggest --verify-http |
unclassified-third-party | Points outside every known cloud/SaaS | Low; ask the user who owns it |
Present a table per tier: Record · Type · Target · Confidence · DNS
provider · Account. Call out customer-named and *-prod hosts for manual
confirmation.
The tool only reports. For each confirmed record:
dig +short <record> <type> and, for a CNAME, the
target) — it may have been fixed or re-pointed since the scan.aws route53 change-resource-record-sets (DELETE change batch), gcloud dns record-sets delete, az network dns record-set <type> delete, Cloudflare DELETE /zones/{zone_id}/dns_records/{id}, or oci dns record rrset delete.DNS deletion is outward-facing and hard to reverse — show the command and let
the user run it. Only run it yourself when explicitly told to, and never
batch-delete customer-named or *-prod records without confirming each one.
Never delete an apex MX without asking where mail should go instead.
--baseline previous.json marks each finding new: true/false and adds
new / resolved to the report; with a baseline, --fail-on-findings
fails only on new findings. A missing baseline file is treated as empty.--fail-on-incomplete exits 2 when the scan had gaps. With both flags,
failing findings take precedence (exit 1).--alert-webhook URL (repeatable) or FINDMYTAKEOVER_ALERT_WEBHOOKS
(space-separated) posts new findings at --alert-confidence levels. Slack
URLs get Slack formatting, anything else gets JSON. Keep webhook URLs in
secrets — never in the config or the repo.examples/github-actions-daily.yml wires all of this into a daily GitHub
Actions job with OIDC cloud auth, the previous report as baseline, and one
GitHub issue per finding. Copy it rather than writing a workflow from
scratch.--json-format ocsf (SIEMs, Security Lake),
--json-format defectdojo, or --security-hub (imports into the current
AWS account/region; needs securityhub:BatchImportFindings). Ids are
stable, so daily re-imports update in place.
From Python, call findmytakeover.scan() instead of parsing the CLI.When the user is about to destroy infrastructure, or asks to stop dangling records from being created, check the plan instead of scanning:
terraform show -json plan.tfplan > plan.json
findmytakeover --terraform-plan plan.json # exit 1 = a record would dangle
It reports records (in the plan, plus live DNS if a config is present) that point at a resource the plan destroys. Without a config file it needs no cloud credentials, so it suits a pull-request check. The fix is to delete or re-point those records in the same change.
All optional; the tool runs with none set.
| Variable | Default | What it does |
|---|---|---|
FINDMYTAKEOVER_MAX_WORKERS | 8 | Threads per provider pool. Raise for slow scans; lower if errors mention throttling. |
FINDMYTAKEOVER_CONFIRM_RESOLVERS | 1.1.1.1,8.8.8.8 | Public resolvers that can overrule an NXDOMAIN (comma-separated). Empty string disables the check. |
FINDMYTAKEOVER_ALERT_WEBHOOKS | unset (no alerts) | Webhook URLs to alert, space-separated. Added to any --alert-webhook. |
CLOUDFLARE_API_TOKEN | unset | Cloudflare token used with credentials: default. |
AWS_REGION | unset | Region for --security-hub imports (or the profile's region). |
Bucket these as "stale / out of scope", not takeover risks:
*.acm-validations.aws,
*.authorize.certificatemanager.goog, _acme-challenge.*.*.domainkey.*,
*.dkim.*, *.hubspotemail.net, ...). Expected to have no inventory in the
user's accounts..internal, .local
or cluster DNS, or pointing at private/reserved IPs, are filtered out
(counted, not reported).exclude: once the user confirms
ownership.dualstack.
aliases, IPv6 forms and S3 endpoint hostnames (to the bucket name). If a
known-good record still shows up, compare its value with the dump before
assuming a bug.infra enabled.collection_errors and stop there.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
AWS, Azure, GCP, Cloudflare
npx claudepluginhub anirudhbiyani/findmytakeover --plugin findmytakeoverOther plugins' skills for the same job