Tooluck logoTooluck
SKILL.md

subdomain-takeover-hunt

Agent skill fromuphiago/recon-skills

Detect and verify subdomain takeover via dangling CNAME to unclaimed services.

How to install subdomain-takeover-hunt

install subdomain-takeover-hunt
# install the recon-skills pack with the skills CLI
npx skills add uphiago/recon-skills

# or add only this skill to Claude Code: copy the folder

recon/subdomain-takeover-hunt/

# into

~/.claude/skills/subdomain-takeover-hunt/ (all projects)

.claude/skills/subdomain-takeover-hunt/ (one project)

recon/subdomain-takeover-hunt/SKILL.md

MITFull file
1# Subdomain Takeover Detection
2
3Detect subdomains pointing to unregistered or unclaimed third-party cloud services. When a CNAME record points to a service that no longer exists, an attacker can register that resource and serve arbitrary content under the target's subdomain — enabling phishing, cookie theft, and full origin impersonation.
4
5## When to Use
6
7- Subdomain enumeration produces a large list — scan for lingering DNS records.
8- Target uses cloud services with shared-namespace identifiers (Heroku, S3, Azure, Zendesk, Shopify).
9- A subdomain returns NXDOMAIN, 404, or "no such app" error pages.
10- The CNAME target is a service with user-registrable names.
11
12## Prerequisites
13
14- `terminal` with curl, dnsx, subfinder.
15- `subzy` or `subjack` installed for automated detection.
16- List of alive subdomains from `subdomain-enumeration`.
17
18## How to Run
19
20```bash
21# DNS resolution with CNAME extraction
22dnsx -retry 3 -a -cname -resp -silent -l alive_subs.txt | tee dns_records.txt
23
24# Automated takeover scan
25subzy run --targets alive_subs.txt --hide_fails --vuln
26```
27
28## Quick Detection
29
30```bash
31# DNS resolution with CNAME extraction
32dnsx -retry 3 -a -cname -resp -silent -l alive_subs.txt | tee dns_records.txt
33
34# Automated takeover scan
35subzy run --targets alive_subs.txt --hide_fails --vuln
36```
37
38## Procedure
39
40### Phase 1 — Extract CNAME Records
41
42```bash
43# Get all CNAME records
44cat alive_subs.txt | dnsx -silent -cname -resp-only > cname_targets.txt
45
46# Filter to suspicious services
47…

Excerpt shown under the repository's MIT license.

More skills in recon-skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates