yaklang avatar

Subdomain Takeover

This walks through finding and exploiting dangling DNS records that point to deprovisioned cloud resources. You get fingerprint tables for spotting vulnerable CNAMEs (S3 buckets, Heroku apps, GitHub Pages), step-by-step claim procedures for each provider, and coverage of the nastier variants like NS takeover where you control an entire zone. The decision tree and tooling recommendations (subjack, nuclei, dnsreaper) are solid. Worth noting it correctly emphasizes that a CNAME existing doesn't mean takeover is possible, only when the target resource is actually unclaimed and you can register it. Routing to related skills like SSRF and CORS bypass shows where subdomain control becomes a pivot point for deeper exploitation.

skills.sh installs
3.8K
GitHub stars
2.6K
last updated
Aug 21, 2026

Install

$ npx -y skills add yaklang/hack-skills --skill subdomain-takeover --agent claude-code

Installs into .claude/skills of the current project.

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


1. CORE CONCEPT

Subdomain takeover occurs when:

Sponsors

Details

Repository
github.com/yaklang/hack-skills
Category
Cloud & Infrastructure
First seen
Jun 3, 2026

More from yaklang/hack-skills

All 102
1openai avatarrender-deployopenai/skillsDeploy applications to Render by analyzing codebases, generating render.yaml Blueprints, and providing Dashboard deeplinks. Use when the user wants to deploy, h3.3Kskills.sh installs
2mksglu avatarcontext-modemksglu/context-modeUse context-mode tools (ctx_execute, ctx_execute_file) instead of Bash/cat when processing large outputs. Triggers: "analyze logs", "summarize output", "process3Kskills.sh installs
3elastic avatarkibana-connectorselastic/agent-skillsCreate and manage Kibana connectors for Slack, PagerDuty, Jira, webhooks, and more via REST API or Terraform. Use when configuring third-party integrations or m2.9Kskills.sh installs
4dynatrace avatardt-obs-logsdynatrace/dynatrace-for-aiLog querying, filtering, pattern analysis, and error rate calculation. Use when searching application or infrastructure logs, analyzing error patterns, or corre2.9Kskills.sh installs
5hashicorp avatarwindows-builderhashicorp/agent-skillsBuild Windows images with Packer using WinRM communicator and PowerShell provisioners. Use when creating Windows AMIs, Azure images, or VMware templates.2.8Kskills.sh installs
6dynatrace avatardt-obs-kubernetesdynatrace/dynatrace-for-aiKubernetes cluster, pod, node, and workload monitoring. Use when analyzing K8s health, resource optimization, pod failures, OOMKills, scheduling, or security po2.8Kskills.sh installs