subdomain-takeover

Detect and validate subdomain takeover risks via CNAME, NS, and MX DNS signals.

1.6k|234|Updated Dec 7, 2019
One-click install
npx skills add https://github.com/wgpsec/AboutSecurity --skill subdomain-takeover-wgpsec
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: subdomain-takeover
Source: https://github.com/wgpsec/AboutSecurity/tree/main/skills/exploit/subdomain-takeover
Command: npx skills add https://github.com/wgpsec/AboutSecurity --skill subdomain-takeover-wgpsec

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Subdomain takeover poses a significant risk when external services are decommissioned but DNS records still point to them. This Skill provides a structured methodology to detect and assess takeover opportunities to prevent unauthorized control of subdomains.

Core Features & Use Cases

  • CNAME, NS, and MX takeover signal detection and fingerprinting
  • Automated verification steps and vendor-specific takeover patterns
  • Use cases for security assessment, red team exercises, and due-diligence for cloud assets

Quick Start

Run a targeted subdomain takeover assessment on the target domain to identify vulnerable CNAME/NS/MX configurations and document actionable remediation steps.

Frequently Asked Questions about subdomain-takeover

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect subdomain takeover risks from dangling DNS records?

To detect subdomain takeover risks, you analyze DNS responses for dangling CNAME, NS, and MX records pointing to decommissioned external services. This process involves fingerprinting specific cloud vendors and verifying takeover signals to identify unauthorized control vulnerabilities.

What is a subdomain takeover and how does it impact cloud environments?

A subdomain takeover occurs when DNS records still point to external services that have been decommissioned, allowing unauthorized control. In cloud environments, this impact scenario enables attackers to claim those abandoned subdomains and host malicious content under your trusted domain.

How do I validate CNAME, NS, and MX takeover signals safely?

You validate CNAME, NS, and MX takeover signals by enforcing vendor fingerprinting and specific verification steps using only DNS responses. This methodology assesses takeover opportunities while maintaining safety checks to prevent unintended modifications during security analysis.

Can I assess subdomain takeover risks for wildcard DNS configurations?

Yes, subdomain takeover assessment explicitly includes identifying takeover signals within wildcard DNS configurations. The detection scope covers wildcard DNS alongside CNAME, NS, and MX records to comprehensively evaluate unauthorized control risks across target domains.

What is the best way to assess subdomain takeover vulnerabilities during red team exercises?

The best way to assess takeover vulnerabilities during red team exercises is applying a structured methodology that identifies vulnerable CNAME, NS, and MX configurations. This approach enforces vendor-specific takeover pattern recognition and documents actionable remediation steps.

Does subdomain takeover detection require active scanning or only DNS responses?

Subdomain takeover detection relies exclusively on analyzing DNS responses, requiring no active scanning or network probing. The assessment methodology enforces safety checks and vendor fingerprinting strictly through passive DNS data analysis to validate takeover opportunities.