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가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
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.
인기도
- GitHub 스타
- 6.5k
- 순위
- #14156
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 11. 1.
댓글
- …
이 저장소의 다른 스킬
detector-overview
6.5k에이전트가 스캐너가 표시한 코드를 읽고, 표시된 곳 중 어디가 실제 보안 버그이고 어디가 오탐인지 판단하도록 돕습니다.
exploiter-overview
6.5k에이전트가 확인된 여러 보안 약점을 하나의 테스트 체인으로 묶고, 그 체인이 어디까지 닿을 수 있는지 확인하도록 돕습니다.
llm-redteam-overview
6.5k에이전트가 프롬프트 인젝션부터 모델 악용까지 15개 전술 그룹 중 테스트에 맞는 AI 레드팀 가이드를 찾도록 돕습니다.
aatmf-t01-prompt-injection
6.5k숨겨진 지시가 AI 시스템을 덮어쓰려 하는 프롬프트 인젝션을 설명해, 보안 테스터가 이를 점검할 수 있게 합니다.