Vulnerability Lookup
ptn1411/skill
Multi-source threat intelligence and vulnerability lookup. An agent skill from ptn1411/skill.
Subdomain takeover detection and exploitation playbook. An agent skill from yaklang/hack-skills.
$ npx skills add yaklang/hack-skills --skill subdomain-takeover -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install yaklang/hack-skills subdomain-takeover --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/yaklang/hack-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/subdomain-takeover .claude/skills/subdomain-takeover && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "subdomain-takeover" agent skill from https://github.com/yaklang/hack-skills/tree/main/skills/subdomain-takeover into .claude/skills/subdomain-takeover/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "subdomain-takeover", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/yaklang/hack-skills/tree/main/skills/subdomain-takeoverType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add yaklang/hack-skills --skill subdomain-takeover -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install yaklang/hack-skills subdomain-takeover --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/yaklang/hack-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/subdomain-takeover .agents/skills/subdomain-takeover && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "subdomain-takeover" agent skill from https://github.com/yaklang/hack-skills/tree/main/skills/subdomain-takeover into .agents/skills/subdomain-takeover/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "subdomain-takeover", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add yaklang/hack-skills --skill subdomain-takeover -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install yaklang/hack-skills subdomain-takeover --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/yaklang/hack-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/subdomain-takeover .cursor/skills/subdomain-takeover && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "subdomain-takeover" agent skill from https://github.com/yaklang/hack-skills/tree/main/skills/subdomain-takeover into .cursor/skills/subdomain-takeover/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "subdomain-takeover", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/yaklang/hack-skills.git --path skills/subdomain-takeover--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add yaklang/hack-skills --skill subdomain-takeover -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install yaklang/hack-skills subdomain-takeover --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/yaklang/hack-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/subdomain-takeover .gemini/skills/subdomain-takeover && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "subdomain-takeover" agent skill from https://github.com/yaklang/hack-skills/tree/main/skills/subdomain-takeover into .gemini/skills/subdomain-takeover/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "subdomain-takeover", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install yaklang/hack-skills subdomain-takeoverInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add yaklang/hack-skills --skill subdomain-takeover -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/yaklang/hack-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/subdomain-takeover .github/skills/subdomain-takeover && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "subdomain-takeover" agent skill from https://github.com/yaklang/hack-skills/tree/main/skills/subdomain-takeover into .github/skills/subdomain-takeover/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "subdomain-takeover", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add yaklang/hack-skills --skill subdomain-takeover -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install yaklang/hack-skills subdomain-takeover --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/yaklang/hack-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/subdomain-takeover .opencode/skills/subdomain-takeover && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "subdomain-takeover" agent skill from https://github.com/yaklang/hack-skills/tree/main/skills/subdomain-takeover into .opencode/skills/subdomain-takeover/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "subdomain-takeover", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
subdomain-takeoverSubdomain takeover detection and exploitation playbook. An agent skill from yaklang/hack-skills.
Subdomain Takeover is an agent skill from yaklang/hack-skills. Subdomain takeover detection and exploitation playbook. Use when targets have dangling CNAME/NS/MX records pointing to deprovisioned cloud resources, expired third-party services, or unclaimed SaaS tenants that an attacker can register to serve content under the victim's domain.
Its SKILL.md is about 2.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Security, covering Penetration testing. It works with GitHub and Amazon S3. The repository describes itself as: Helping AI Agent become an awesome practical hacker! The licence is MIT.
11 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 6fbf0bc. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Subdomain Takeover loads about 2.6k tokens when it runs. Until then it costs about 75 tokens; SKILL.md has 814 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from yaklang/hack-skills at commit 6fbf0bc, republished under its MIT licence (© yaklang). 814 words, ~2,616 tokens.
.claude/skills/subdomain-takeover/SKILL.md (or your agent's skills folder).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.
*.target.com*.target.com — takeover → full cross-origin readSubdomain takeover occurs when:
sub.target.com has a DNS record (CNAME, NS, A) pointing to an external servicesub.target.comImpact: cookie theft (parent domain cookies), OAuth token interception, phishing under trusted domain, CORS bypass, CSP bypass via whitelisted subdomain.
1. Collect subdomains (amass, subfinder, assetfinder, crt.sh, SecurityTrails)
2. Resolve DNS for each:
dig CNAME sub.target.com +short
3. For each CNAME → check if the CNAME target returns NXDOMAIN or a provider error
4. Match error response against fingerprint table (Section 3)| Signal | Meaning |
|---|---|
CNAME → xxx.s3.amazonaws.com + HTTP 404 "NoSuchBucket" | S3 bucket deleted, claimable |
CNAME → xxx.herokuapp.com + "No such app" | Heroku app deleted |
CNAME → xxx.github.io + 404 "There isn't a GitHub Pages site here" | GitHub Pages unclaimed |
| NXDOMAIN on the CNAME target domain itself | Target domain expired or never existed |
| CNAME → provider but HTTP 200 with default parking page | May or may not be claimable — verify |
| Tool | Purpose |
|---|---|
subjack | Automated CNAME takeover checking |
nuclei -t takeovers/ | Nuclei takeover detection templates |
can-i-take-over-xyz (GitHub) | Reference for which services are vulnerable |
dnsreaper | Multi-provider takeover scanner |
subzy | Fast subdomain takeover verification |
| Provider | CNAME Pattern | Fingerprint (HTTP Response) | Claimable? |
|---|---|---|---|
| AWS S3 | *.s3.amazonaws.com / *.s3-website-*.amazonaws.com | NoSuchBucket (404) | Yes — create bucket with matching name |
| GitHub Pages | *.github.io | There isn't a GitHub Pages site here (404) | Yes — create repo + enable Pages |
| Heroku | *.herokuapp.com / *.herokudns.com | No such app | Yes — create app with matching name |
| Azure | *.azurewebsites.net / *.cloudapp.azure.com / *.trafficmanager.net | Various default pages, NXDOMAIN | Yes — register matching resource |
| Shopify | *.myshopify.com | Sorry, this shop is currently unavailable | Yes — create shop, add custom domain |
| Fastly | CNAME to Fastly edge | Fastly error: unknown domain | Yes — add domain to Fastly service |
| Pantheon | *.pantheonsite.io | 404 Site Not Found with Pantheon branding | Yes |
| Tumblr | *.tumblr.com (custom domain CNAME) | There's nothing here / Whatever you were looking for doesn't exist | Yes |
| WordPress.com | CNAME to *.wordpress.com | Do you want to register | Yes — claim domain in WP.com |
| Zendesk | *.zendesk.com | Help Center Closed / Zendesk branding on error | Yes — create matching subdomain |
| Unbounce | *.unbouncepages.com | The requested URL was not found | Yes |
| Ghost | *.ghost.io | 404 Not Found Ghost error | Yes |
| Surge.sh | *.surge.sh | project not found | Yes |
| Fly.io | CNAME to *.fly.dev | Fly.io default 404 | Yes |
1. Confirm: curl -s http://sub.target.com → "NoSuchBucket"
2. Extract bucket name from CNAME (e.g., sub.target.com.s3.amazonaws.com → bucket = "sub.target.com")
3. aws s3 mb s3://sub.target.com --region <region>
4. Upload index.html proving control
5. Enable static website hosting1. Confirm: curl -s https://sub.target.com → "There isn't a GitHub Pages site here"
2. Create GitHub repo (any name)
3. Add CNAME file containing "sub.target.com"
4. Enable GitHub Pages in repo settings
5. Wait for DNS propagation (GitHub verifies CNAME match)1. Confirm: curl -s http://sub.target.com → "No such app"
2. heroku create <app-name-from-cname>
3. heroku domains:add sub.target.com
4. Deploy proof-of-concept pageNS takeover is far more dangerous than CNAME takeover: you control all DNS resolution for the zone.
target.com NS → ns1.expireddomain.com
↓
attacker registers expireddomain.com
↓
attacker now controls ALL DNS for target.com
(A records, MX records, TXT records — everything)1. Enumerate NS records: dig NS target.com +short
2. Check each NS domain: whois ns1.example.com → is the domain expired or available?
3. Also check: dig A ns1.example.com → NXDOMAIN/SERVFAIL?
4. Subdelegated zones: check NS for sub.target.com specificallyWhen MX records point to deprovisioned mail services:
target.com MX → mail.deadservice.com (service discontinued)If attacker can claim mail.deadservice.com or the mail tenant:
Expired Google Workspace / Microsoft 365 tenant → MX still points to Google/Microsoft → attacker creates new tenant and claims the domain.
If *.target.com has a wildcard CNAME to a claimable service:
anything.target.com can be taken overDetection: dig A random1234567.target.com — if it resolves, wildcard exists.
Subdomain discovered (sub.target.com)?
├── Resolve DNS records
│ ├── Has CNAME → external service?
│ │ ├── HTTP response matches known fingerprint? (Section 3)
│ │ │ ├── YES → Attempt claim on provider (Section 4)
│ │ │ │ ├── Claim successful → TAKEOVER CONFIRMED
│ │ │ │ └── Claim blocked (name reserved, region locked) → document, try variations
│ │ │ └── NO → Service active, no takeover
│ │ └── CNAME target NXDOMAIN?
│ │ ├── Target is a registrable domain? → Register it → full control
│ │ └── Target is a subdomain of active provider → check provider claim process
│ │
│ ├── Has NS records → external nameserver?
│ │ ├── NS domain expired/available? → Register → FULL ZONE TAKEOVER
│ │ └── NS domain active → no takeover
│ │
│ ├── Has MX → external mail service?
│ │ ├── Mail service deprovisioned/claimable? → Claim tenant → EMAIL INTERCEPTION
│ │ └── Active mail service → no takeover
│ │
│ └── Has A record → IP address?
│ ├── IP belongs to elastic cloud (AWS EIP, Azure, GCP)?
│ │ ├── IP unassigned? → Claim IP → serve content
│ │ └── IP assigned to another customer → no takeover
│ └── IP belongs to dedicated server → no takeover
│
└── Post-takeover impact assessment
├── Shared cookies with parent domain? → Session hijacking
├── CORS trusts *.target.com? → Cross-origin data theft
├── CSP whitelists *.target.com? → XSS via taken-over subdomain
├── OAuth redirect_uri allows sub.target.com? → Token theft
└── Can issue TLS cert for sub.target.com? → Full MITM| Action | Priority |
|---|---|
| Remove DNS records when deprovisioning cloud resources | Critical |
| Monitor CNAME targets for NXDOMAIN responses | High |
| Use DNS monitoring tools (SecurityTrails, DNSHistory) | High |
| Claim/reserve resource names before deleting DNS records | High |
| Audit NS delegations — ensure NS domains are owned and renewed | Critical |
| Avoid wildcard CNAMEs to third-party services | Medium |
| Implement Certificate Transparency monitoring | Medium |
NoSuchBucket (404) is.sub.target.com CNAME → other.target.com CNAME → dead-service.com — the chain must be followed fully.include:sub.target.com and you take over sub.target.com, you can modify its SPF TXT record to authorize your mail server → send spoofed email as target.com.© yaklang, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/subdomain-takeover of yaklang/hack-skills.
Open the folder on GitHubat commit 6fbf0bc
Subdomain Takeover next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Subdomain Takeover this skillyaklang/hack-skills | 2.4k | — | ~2.6k | Automated safety check: Pass | MIT | |
| Vulnerability Lookupptn1411/skill | 219 | — | ~1.1k | Automated safety check: Pass | None | |
| Metabigor OSINT Reconj3ssie/metabigor | 1.9k | — | ~2.4k | Automated safety check: Pass | MIT | |
| Cloud Bucket Exposure Finderforefy/.context | 152 | — | ~1.5k | Automated safety check: Pass | MIT | |
| AWS Deploymentaws/agent-toolkit-for-aws | 2.8k | — | ~1.8k | Automated safety check: Pass | Apache-2.0 | |
| Code Audit3stoneBrother/code-audit | 892 | 1 repos | ~2.7k | Automated safety check: Pass | None |
ptn1411/skill
Multi-source threat intelligence and vulnerability lookup. An agent skill from ptn1411/skill.
j3ssie/metabigor
Operates the metabigor CLI to map a target's network ranges, subdomains, ports, related domains, CDNs and archived URLs from free sources without API keys.
forefy/.context
Turns a company's domains into likely storage bucket names and checks six cloud providers for publicly readable buckets, for authorized security assessments only.
aws/agent-toolkit-for-aws
Configures CI/CD pipelines using AWS CodePipeline, CodeBuild, CodeDeploy, CodeConnections, and CodeArtifact.
3stoneBrother/code-audit
Professional code security audit skill covering 55+ vulnerability types.
usestrix/strix
Triages findings from a Strix pentest by severity, fixes each root cause with a minimal change, and re-runs Strix to confirm the exploit no longer works.
yaklang/hack-skills
Anti-debugging detection and bypass playbook. An agent skill from yaklang/hack-skills.
yaklang/hack-skills
API authentication and JWT abuse playbook. An agent skill from yaklang/hack-skills.
yaklang/hack-skills
API authorization and BOLA testing playbook. An agent skill from yaklang/hack-skills.
yaklang/hack-skills
API reconnaissance and documentation review playbook. An agent skill from yaklang/hack-skills.
yaklang/hack-skills
Draw a testable attack surface from one authorized target URL or one application.
yaklang/hack-skills
Classical cipher analysis playbook. An agent skill from yaklang/hack-skills.
Categories
Subdomain takeover detection and exploitation playbook. An agent skill from yaklang/hack-skills. Subdomain Takeover is an agent skill from yaklang/hack-skills. Subdomain takeover detection and exploitation playbook.
Subdomain Takeover fits situations like: targets have dangling CNAME/NS/MX records pointing to deprovisioned cloud resources; expired third-party services; unclaimed SaaS tenants that an attacker can register to serve content under the victims domain.
Run `npx skills add yaklang/hack-skills --skill subdomain-takeover -a claude-code`. Or copy the skill folder (skills/subdomain-takeover in yaklang/hack-skills) into .claude/skills/subdomain-takeover in your project. Claude Code loads it when a task matches its description.
Run `npx skills add yaklang/hack-skills --skill subdomain-takeover -a codex`. Or copy the skill folder (skills/subdomain-takeover in yaklang/hack-skills) into .agents/skills/subdomain-takeover in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add yaklang/hack-skills --skill subdomain-takeover -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/subdomain-takeover, .gemini/skills/subdomain-takeover, .github/skills/subdomain-takeover and .opencode/skills/subdomain-takeover in your project.
SKILL.md names no scripts, command-line tools or credentials: Subdomain Takeover is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Subdomain Takeover is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.6k tokens (SKILL.md is roughly 10k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Subdomain Takeover: Vulnerability Lookup (ptn1411/skill, 219 stars), Metabigor OSINT Recon (j3ssie/metabigor, 1.9k stars), Cloud Bucket Exposure Finder (forefy/.context, 152 stars) and AWS Deployment (aws/agent-toolkit-for-aws, 2.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
yaklang (a GitHub organization) maintains it in yaklang/hack-skills, which has 2,418 GitHub stars. The repository holds 27 skills in this directory. The repository was last updated on September 13, 2026.
Source: yaklang/hack-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.