Перейти к содержанию
Skillpedia
Безопасность48k · #4907

hunt-subdomain

Что он делает

Этот инструмент ищет «призрачные» поддомены, которые принадлежат компании, но больше ей не используются. Злоумышленник может получить контроль над такими поддоменами.

Когда использовать

  • ✓При проверке безопасности сайта.
  • ✓При тестировании прав на домен.
  • ✓Для поиска уязвимостей в поддоменах.

Ссылка на скилл

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/hunt-subdomain/SKILL.md

Скопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.

Как использовать

Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.

Готовое сообщение для вставки

Используй этот скилл, чтобы помочь мне: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/hunt-subdomain/SKILL.md Прочитай файл SKILL.md по этой ссылке и следуй его инструкциям в моей задаче.
Хотите, чтобы ваш ИИ сам находил такие скиллы?Установите бесплатный MCP Skillpedia: одна строка, и перед каждой задачей он ищет среди 15 000+ скиллов.Установить за 1 минуту →

Пример запроса к вашему ИИ

“Найди призрачные поддомены домена 'example.com' и скажи, если что-то найдёшь.”

5 новых скиллов в неделю. 1 минута чтения.

Как это работает

Инструмент проверяет DNS-записи (например, CNAME), которые указывают на внешние сервисы. Если сервис уже не связан с компанией, злоумышленник может зарегистрировать этот адрес и захватить контроль над ним.

Технический текст (оригинальный SKILL.md)

Оригинальный текст автора на английском, прямо с GitHub.

⚠️ AUTHORIZED USE ONLY This skill is for educational purposes or authorized security assessments only. You must have explicit, written permission from the system owner before using this tool. Misuse of this tool is illegal and strictly prohibited.

Mandatory confirmation gate Before running any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target:

  1. Ask the user to state the exact target URL, IP, account, or resource.
  2. Ask the user to confirm written authorization and the permitted scope.
  3. Show the exact command(s) and explain their expected effect.
  4. Wait for explicit confirmation in the current conversation.

Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.

Crown Jewel Targets

Subdomain takeover is high-value because it allows an attacker to serve content from a trusted, company-owned domain — bypassing browser same-origin trust, phishing filters, and user skepticism simultaneously.

Highest payout contexts:

  • Subdomains of major SaaS brands (Shopify, Snapchat, Mozilla, Yelp) where the trusted domain has user session context
  • CDN-backed subdomains (Fastly, CloudFront) where CNAME points to unclaimed origins
  • Third-party service integrations: UserVoice, WordPress.com, GitHub Pages, GitLab Pages, Heroku, Zendesk
  • Preview/staging/dev subdomains (new., preview., course., delivery., addons-preview.) — abandoned after feature launches
  • Subdomains used for OAuth redirect URIs or SSO endpoints — these pay highest

Asset types that matter most:

  • CNAME records pointing to deprovisioned third-party services
  • NS delegations to abandoned zones
  • A records pointing to unallocated cloud IPs (less common)
  • GitLab/GitHub Pages with unclaimed project namespaces

Attack Surface Signals

DNS signals:

  • CNAME pointing to *.github.io, *.gitlab.io, *.fastly.net, *.herokudns.com, *.wordpress.com, *.uservoice.com, *.zendesk.com, *.s3.amazonaws.com, *.azurewebsites.net, *.netlify.app
  • NXDOMAIN or SERVFAIL on the CNAME target while the parent record still exists
  • NS records delegating to registrars where the zone is no longer registered

HTTP response signals:

  • "There isn't a GitHub Pages site here"
  • "NoSuchBucket" (S3)
  • "The specified bucket does not exist"
  • "No such app" (Heroku)
  • "Sorry, this shop is currently unavailable" (Shopify)
  • "This UserVoice subdomain is available"
  • "Do you want to register" (any domain parking page)
  • HTTP 404 with provider-specific error templates
  • Fastly: "Fastly error: unknown domain"
  • "404 Web Site not found" (Azure App Service)

Tech stack signals:

  • Response headers: X-Served-By: cache-* (Fastly), X-GitHub-Request-Id, Server: Netlify
  • CNAME chain resolving to provider infrastructure but returning provider 404
  • SSL cert issued to provider wildcard (*.fastly.net) rather than company domain

Step-by-Step Hunting Methodology

  1. Enumerate all subdomains for the target using passive + active sources:

    • subfinder -d target.com -all
    • amass enum -passive -d target.com
    • assetfinder --subs-only target.com
    • Certificate transparency: crt.sh/?q=%.target.com
  2. Resolve all subdomains and flag those with:

    • NXDOMAIN responses
    • CNAME pointing to a third-party provider
    cat subdomains.txt | dnsx -a -cname -o resolved.txt
    
  3. Cross-reference CNAMEs against known vulnerable provider fingerprints using nuclei or subjack:

    subjack -w subdomains.txt -t 100 -timeout 30 -ssl -c fingerprints.json
    nuclei -l subdomains.txt -t takeovers/
    
  4. Manual verification for each flagged subdomain:

    • dig CNAME subdomain.target.com — confirm CNAME exists
    • dig A <cname-target> — confirm NXDOMAIN or no resolution
    • curl -sk https://subdomain.target.com — check for provider error string
  5. Confirm claimability — attempt to register the resource:

    • GitHub Pages: check if <username>.github.io/<repo> or org page is unclaimed
    • GitLab Pages: check project namespace
    • S3: attempt aws s3api create-bucket --bucket <bucketname>
    • UserVoice/Zendesk/WordPress: visit registration URL
    • Fastly: check if origin hostname is unregistered

…

Частые вопросы

Что такое «призрачный» поддомен?

Это интернет-адрес (например, 'shop.company.com'), который выглядит как принадлежащий компании, но больше не настроен правильно и может быть зарегистрирован кем угодно.

Почему это опасно?

Злоумышленник может использовать доверенный адрес компании, чтобы обмануть пользователей, украсть данные или распространять вредоносное ПО, ведь браузеры и другие системы доверяют исходному домену.

Нужно ли разрешение, чтобы пользоваться этим инструментом?

Да, крайне важно получить явное письменное разрешение владельца системы перед использованием этого инструмента, так как при злоупотреблении он может применяться в незаконных целях.

Подробности

Оригинальное описание автора

Hunting skill for subdomain takeover vulnerabilities.

repo: sickn33/agentic-awesome-skills

Популярность

Звёзды на GitHub
48k
Место в рейтинге
#4907
Лицензия
MIT
Обновлён
15.10.2026

Полезен ли этот скилл?

0

Войдите , чтобы голосовать.

Комментарии

  • …

Другие скиллы из этого репозитория

Похожие скиллы