मुख्य सामग्री पर जाएँ
Skillpedia
सिक्योरिटी6.5k · #14156

web-subdomain-takeover

यह क्या करती है

यह बताती है कि ऐसे सबडोमेन कैसे ढूँढें जिनका DNS हटाई गई या बिना दावे वाली क्लाउड सेवाओं की ओर जाता है। यह उन सुरक्षा टीमों के लिए है जो अपने भूले हुए रिकॉर्ड साफ़ करना चाहती हैं।

कब इस्तेमाल करें

  • ✓जब कंपनी जाँचना चाहे कि पुराने सबडोमेन अब भी ऐसी सेवाओं की ओर जाते हैं जो उसकी नहीं रहीं।
  • ✓जब होस्टिंग प्रदाता बदलने के बाद IT टीम DNS रिकॉर्ड साफ़ कर रही हो।
  • ✓जब सुरक्षा समीक्षक लटके हुए DNS प्रविष्टियों को जोखिम के रूप में चिह्नित करना चाहे।

Skill का लिंक

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

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/recon/web-recon/subdomain-takeover/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“जाँचिए कि हमारे पुराने सबडोमेन में से कोई ऐसी सेवाओं की ओर इशारा तो नहीं करता जो हम अब इस्तेमाल नहीं करते।”

हर हफ़्ते 5 नई skills, 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
अपडेट की गई
1/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

detector-overview

6.5k

यह आपके एजेंट को स्कैनर से चिह्नित कोड पढ़ने और तय करने में मदद करती है कि कौन सी जगहें असली सुरक्षा बग हैं और कौन सी गलत चेतावनी।

कोडिंगसिक्योरिटी

exploiter-overview

6.5k

यह आपके एजेंट को कई पक्की सुरक्षा कमज़ोरियों को एक परीक्षण श्रृंखला में जोड़ने और जाँचने में मदद करती है कि वह श्रृंखला कितनी दूर तक पहुँच सकती है।

कोडिंगसिक्योरिटी

llm-redteam-overview

6.5k

यह आपके एजेंट को परीक्षण के लिए सही AI रेड-टीम गाइड खोजने में मदद करती है, प्रॉम्प्ट इंजेक्शन से लेकर मॉडल के दुरुपयोग तक 15 रणनीति समूहों में।

कोडिंगसिक्योरिटी

aatmf-t01-prompt-injection

6.5k

समझाती है कि प्रॉम्प्ट इंजेक्शन क्या है, जिसमें छिपे निर्देश AI सिस्टम के नियम बदलने की कोशिश करते हैं, ताकि सुरक्षा परीक्षक उसकी जाँच कर सकें।

कोडिंगसिक्योरिटी

मिलती-जुलती skills