Subdomain Takeover
Subdomain takeover detection and exploitation playbook covering dangling CNAME, NS, and MX records across major cloud providers.
- CCM score
- 68 of 100
- skills.sh installs
- 4K
- GitHub stars
- 2.7K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers CNAME, NS, and MX takeover paths, with fingerprint matching for AWS S3, GitHub Pages, Heroku, Azure, Shopify, and about a dozen other providers
- Includes claim procedures for S3, GitHub Pages, and Heroku, plus a decision tree and a wildcard DNS risk check
- Enforces a verification step where takeover is confirmed only after the claimed resource is shown to be unclaimed and claimable
- Designed for penetration testers and bug bounty researchers assessing domains with dangling records under a target's trusted origin
Install
$ npx -y skills add yaklang/hack-skills --skill subdomain-takeover -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
SKILL: Subdomain Takeover — Detection & Exploitation Playbook
AI LOAD INSTRUCTION: Covers CNAME/NS/MX takeover, per-provider fingerprint matching, claim procedures, and defensive monitoring. Base models often confuse "CNAME exists" with "takeover possible" — the key is whether the resource behind the CNAME is unclaimed and claimable.
0. RELATED ROUTING
- ssrf-server-side-request-forgery when a subdomain takeover is used to bypass SSRF allowlists trusting
*.target.com - cors-cross-origin-misconfiguration when CORS trusts
*.target.com— takeover → full cross-origin read - xss-cross-site-scripting takeover gives you script execution under target origin (cookie theft, OAuth redirect abuse)
- http-host-header-attacks when Host routing leads to subdomain-scoped cache or auth issues
- web-cache-deception when a taken-over subdomain shares cache with the main domain
1. CORE CONCEPT
Subdomain takeover occurs when:
Details
- Repository
- github.com/yaklang/hack-skills
- Category
- Security
- First seen
- Jun 3, 2026
More from yaklang/hack-skills
All 102- Http Host Header Attacks4K
- Web Cache Deception4K
- Dependency Confusion4K
- Expression Language Injection4K
- Csv Formula Injection4K
- Linux Privilege Escalation4K
- Active Directory Acl Abuse4K
- Clickjacking4K
- Active Directory Kerberos Attacks4K
- Jndi Injection4K
- Http2 Specific Attacks4K
- Saml Sso Assertion Attacks4K
- Active Directory Certificate Services4K
- Arbitrary Write To Rce4K
- Hash Attack Techniques4K
- Prototype Pollution4K
- Dns Rebinding Attacks4K
- Network Protocol Attacks4K
- Memory Forensics Volatility4K
- Ai Ml Security4K
- Windows Av Evasion4K
- Dangling Markup Injection4K
- Defi Attack Patterns4K
- Windows Privilege Escalation4K
Similar to Subdomain Takeover
More Securityrecon-and-methodologySkillyaklang/hack-skills4.5K installsStructured reconnaissance and testing playbook covering subdomain enumeration, endpoint discovery, and technology fingerprinting for new targets.
ssrf-server-side-request-forgerySkillyaklang/hack-skills4.3K installsExpert SSRF playbook covering URL filter bypasses, cloud metadata endpoints, protocol abuse, and Redis-over-gopher chaining toward RCE.
Domain Checker McpMCP serverwearebravelabsChecks domain name availability using DNS lookups and RDAP or WHOIS verification.
vercel-networking-domainsSkillbobmatnyc/claude-mpm-skills363 installsVercel networking reference for domains, DNS, redirects, rewrites, headers, CDN, edge cache, and regions.
convex-domainsSkillconvex/agent-skills46.9K installsGuided custom-domain setup for a Convex app, from DNS records through auth-origin rebinding.