本文へスキップ
Skillpedia
セキュリティ6.5k · #14156

web-subdomain-takeover

できること

このスキルは、削除された、または取得されていないクラウドサービスを指しているDNSのサブドメインを見つける方法を説明します。自分が所有する忘れられたレコードを整理したいセキュリティチーム向けです。

使う場面

  • ✓会社が、古いサブドメインがもう所有していないサービスを指していないかを確認したいとき。
  • ✓ITチームが、ホスティング業者を移行した後にDNSレコードを整理しているとき。
  • ✓セキュリティレビュアーが、宙ぶらりんのDNSエントリをリスクとして指摘する必要があるとき。

スキルのリンク

https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/recon/web-recon/subdomain-takeover/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/recon/web-recon/subdomain-takeover/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“私たちの古いサブドメインのどれかが、もう使っていないサービスを指していないか確認してください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

このスキルはAIに、サブドメインを集め、それぞれがどこを指しているかを確認し、そのターゲットを、取得が許されていることが知られているサービスと比べるよう指示します。一致したものはレビューのために指摘されます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Subdomain Takeover (Dangling DNS / CNAME)

A subdomain CNAMEs to a SaaS provider (GitHub Pages, Heroku, S3, etc.) but the underlying tenant has been deleted, expired, or never claimed. Whoever registers the orphaned tenant name controls a trusted *.<TARGET> origin. Severity is almost always High → Critical because the attacker inherits the parent domain's cookie scope, CORS allowlist, OAuth redirect_uri whitelist, CSP *.<TARGET> allowance, and reputation.

1. Asset surface — enumerate every subdomain

# Passive (no traffic to target)
subfinder -d <TARGET> -all -silent -o subs.txt
amass enum -passive -d <TARGET> -o subs.amass.txt
assetfinder --subs-only <TARGET> >> subs.txt
findomain -t <TARGET> -q >> subs.txt
curl -s "https://crt.sh/?q=%25.<TARGET>&output=json" | jq -r '.[].name_value' | tr '\n' '\n' | sort -u >> subs.txt
sort -u subs.txt -o subs.txt

# Active resolution + CNAME extraction
dnsx -l subs.txt -cname -resp -silent -o subs.cname.txt
# subs.cname.txt format:  app.<TARGET>  [cname.provider.net]

2. CNAME → provider fingerprints

Resolve each subdomain, capture the CNAME, and match against the dangling-provider table below.

while read sub; do
  cname=$(dig +short CNAME "$sub" | head -n1)
  [ -z "$cname" ] && continue
  echo "$sub -> $cname"
done < subs.txt | tee cname.map
Provider CNAME pattern Vulnerable fingerprint in HTTP body
GitHub Pages *.github.io There isn't a GitHub Pages site here.
Heroku *.herokuapp.com, *.herokussl.com No such app / herokucdn.com/error-pages/no-such-app.html
AWS S3 *.s3*.amazonaws.com NoSuchBucket
AWS Elastic Beanstalk *.elasticbeanstalk.com NXDOMAIN on CNAME target
Azure CloudApp *.cloudapp.net, *.cloudapp.azure.com NXDOMAIN
Azure Traffic Manager *.trafficmanager.net NXDOMAIN
Azure Edge / Front Door *.azureedge.net, *.azurefd.net NXDOMAIN
Azure Websites *.azurewebsites.net 404 Web Site not found
Fastly *.fastly.net Fastly error: unknown domain
Shopify shops.myshopify.com Sorry, this shop is currently unavailable.
Netlify *.netlify.app, *.netlify.com Not Found - Request ID (and the site is unclaimed)
Surge.sh *.surge.sh project not found
Tumblr domains.tumblr.com Whatever you were looking for doesn't currently exist at this address.
Read the Docs readthedocs.io unknown to Read the Docs
Zendesk *.zendesk.com Help Center Closed
Unbounce unbouncepages.com The requested URL was not found on this server.
Pantheon *.pantheonsite.io The gods are wise, but do not know of the site which you seek.
Help Scout *.helpscoutdocs.com No settings were found for this company
Cargo cargocollective.com 404 Not Found + Cargo branding
Tilda *.tilda.ws Please renew your subscription
Webflow proxy-ssl.webflow.com The page you are looking for doesn't exist or has been moved.
Smartling *.smartling.com Domain is not configured
Worksites.net *.worksites.net Hello! Sorry, but the website you're looking for doesn't exist.
Ghost *.ghost.io Site unavailable / The thing you were looking for is no longer here, or never was
LaunchRock *.launchrock.com It looks like you may have taken a wrong turn somewhere.

Canonical reference (updated by EdOverflow community): can-i-take-over-xyz.

3. Detection — body fingerprint

# Single subdomain
curl -sk -H 'Host: app.<TARGET>' "https://app.<TARGET>/" -o body.html -w '%{http_code}\n'
grep -iEf <(printf '%s\n' \
  "There isn't a GitHub Pages site here" \
  "no such app" "NoSuchBucket" "Fastly error: unknown domain" \
  "Sorry, this shop is currently unavailable" "project not found" \
  "Help Center Closed" "unknown to Read the Docs" \
  "The gods are wise" "Whatever you were looking for doesn't currently exist" \
  ) body.html

NXDOMAIN cases (Azure, Beanstalk) are detected at DNS layer — no HTTP body:

cname=$(dig +short CNAME "app.<TARGET>" | head -n1)
[ -n "$cname" ] && dig +short "$cname" | grep -q . || echo "DANGLING: $cname"

4. Mass detection

# subjack — fingerprints + claim hints
subjack -w subs.txt -t 50 -timeout 30 -ssl -c ~/go/pkg/mod/github.com/haccer/subjack/fingerprints.json -v -o subjack.out

# subzy — newer, maintained, more providers
subzy run --targets subs
よくある質問

宙ぶらりんのDNSレコードとは何ですか?

削除されたサービスを指しているサブドメインのことで、その名前を他の人が取得できてしまう状態です。

なぜ重要なのですか?

取得されたサブドメインは、訪問者を惑わせたり、親ドメインに依存する信頼の設定を回避するために使われたりする恐れがあります。

チームはどのように直しますか?

古いDNSレコードを削除するか、サービスを自社のアカウントで取り戻すのが一般的です。

詳細

作者による元の説明

Subdomain takeover via dangling DNS/CNAME — GitHub Pages, Heroku, Azure, Fastly, Shopify, Netlify, Surge, Tumblr, Beanstalk, Zendesk, etc.

repo: BitterSecurity/Decepticon

人気

GitHubのスター
6.5k
ランキング
#14156
ライセンス
Apache-2.0
更新日
2026/11/1

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル