hunt-shadow-api
यह क्या करती है
यह टूल API (Application Programming Interface) के पुराने या छिपे हुए वर्ज़न ढूंढने में मदद करता है, जो अब भी चालू हो सकते हैं। यह 'shadow APIs' खोजता है, यानी ऐसे API जो अब इस्तेमाल में नहीं होने चाहिए थे या जिन्हें सुरक्षा अपडेट नहीं मिल रहे।
कब इस्तेमाल करें
- ✓जब आपको शक हो कि API के पुराने वर्ज़न अब भी चल रहे हैं।
- ✓जब मोबाइल ऐप की जांच करनी हो जो शायद पुराने API वर्ज़न से जुड़ते हों।
- ✓जब आपको एक से ज़्यादा अलग-अलग API डॉक्यूमेंटेशन फाइलें मिलें (जैसे Swagger/OpenAPI)।
Skill का लिंक
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/hunt-shadow-api/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“example.com पर पुराने और बिना डॉक्यूमेंटेशन वाले API वर्ज़न ढूंढो”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
टूल अलग-अलग URL पाथ, हेडर और सबडोमेन की जांच करके API खोजता है। फिर पुराने और मौजूदा API स्पेसिफिकेशन की तुलना करके अंतर और संभावित कमज़ोरियाँ ढूंढता है।
तकनीकी सामग्री (मूल 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:
- Ask the user to state the exact target URL, IP, account, or resource.
- Ask the user to confirm written authorization and the permitted scope.
- Show the exact command(s) and explain their expected effect.
- 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.
OWASP API9 — Improper Inventory Management (Shadow / Zombie APIs)
As an API evolves, old versions and internal/staging routes routinely stay reachable without receiving the same security fixes as the current version — because nobody tracks that they still exist. The bug is rarely in one endpoint; it's in the delta between what an old version enforces and what the current version enforces on the same operation.
When to use
Trigger when:
- Versioned paths are visible (
/v1/,/v2/,/api/2023-01-01/) orAccept/X-API-Versionheaders are in play. - A changelog, release notes, or deprecation notice references removed/old API behavior.
- A mobile APK/IPA (via
apk-redteam-pipeline/ios-redteam-pipeline) hardcodes endpoints that look like an older backend version than the current web app calls. - Multiple OpenAPI/Swagger specs are discoverable, or
info.versionin one spec implies others exist.
DO NOT use for single-version APIs with no version history — there's nothing to diff; go
straight to hunt-api-misconfig for direct exploitation of the one surface that exists.
Stage 1 — Enumerate the Full Version Surface
# Path-based versioning
for v in v1 v2 v3 v4 beta alpha internal legacy old 2022-01-01 2023-01-01 2024-01-01; do
curl -s -o /dev/null -w "%{http_code} /api/$v/\n" "https://$TARGET/api/$v/"
done
# Header-based versioning
curl -s -H "X-API-Version: 1" https://$TARGET/api/users
curl -s -H "Accept: application/vnd.company.v1+json" https://$TARGET/api/users
# Subdomain-based versioning
for sub in api api-v1 api-v2 apiv1 apiv2 legacy-api old-api internal-api staging-api; do
curl -s -o /dev/null -w "%{http_code} $sub\n" "https://$sub.$TARGET/"
done
A 200/401/403 on an old version path (anything but 404/connection-refused) means the
version is still live and worth carrying into Stage 3, even if it demands auth.
Stage 2 — Pull Every Reachable Spec, Not Just the Linked One
for path in openapi.json swagger.json v1/swagger.json v2/swagger.json v3/api-docs \
api-docs.json swagger/v1/swagger.json .well-known/openapi.json; do
curl -s -o /dev/null -w "%{http_code} /$path\n" "https://$TARGET/$path"
done
# Wayback Machine — a DEPRECATED version's spec often stays indexed after the live link is removed
curl -s "http://web.archive.org/cdx/search/cdx?url=$TARGET/*swagger*&output=json&collapse=urlkey"
curl -s "http://web.archive.org/cdx/search/cdx?url=$TARGET/*openapi*&output=json&collapse=urlkey"
When more than one spec resolves (a current one and an archived/old one), diff the endpoint inventories directly:
jq -r '.paths | keys[]' v1-swagger.json | sort > /tmp/v1_paths.txt
jq -r '.paths | keys[]' v2-swagger.json | sort > /tmp/v2_paths.txt
comm -23 /tmp/v1_paths.txt /tmp/v2_paths.txt # in v1 only — candidates for "still live but forgotten"
For every path in that diff, confirm it's still reachable against the v1 base URL. A route
documented only in the old spec that still returns something other than 404 is a zombie-
endpoint candidate — carry it into Stage 3.
Stage 3 — Behavioral Diff Between Old and Current Version
For each operation that exists in both versions, compare security-relevant behavior, not response shape. Response shape differences are Informational; behavioral security regressions are the finding.
- Auth strength. Does the old version accept no token, an expired token, or a lower-
privilege token that the current version rejects?
…
अक्सर पूछे जाने वाले सवाल
'shadow API' क्या है?
यह ऐसा API है जो अब इस्तेमाल में या पहुँच में नहीं होना चाहिए, लेकिन फिर भी रिक्वेस्ट का जवाब देता है। आम तौर पर इसे अब सुरक्षा अपडेट नहीं मिलते।
पुराने API वर्ज़न ढूंढना क्यों ज़रूरी है?
पुराने वर्ज़न में वे सुरक्षा कमियाँ हो सकती हैं जो नए वर्ज़न में ठीक हो चुकी हैं। अगर वे चालू हैं, तो हमले का रास्ता बन सकते हैं।
क्या इस टूल के लिए अनुमति चाहिए?
हाँ, यह टूल सिर्फ उन्हीं सिस्टम पर इस्तेमाल होना चाहिए जिनकी आपके पास साफ़ और लिखित अनुमति हो। बिना अनुमति इस्तेमाल करना गैर-कानूनी है।
जानकारी
लेखक का मूल विवरण
Hunt shadow / zombie / undocumented API surface (OWASP API9 Improper Inventory Management)
लोकप्रियता
- GitHub स्टार
- 48k
- रैंकिंग में स्थान
- #4899
- लाइसेंस
- MIT
- अपडेट की गई
- 15/10/2026
कमेंट
- …
इस repository की और skills
00-andruia-consultant
48kआपके एजेंट को AI प्रोजेक्ट शुरू करने या उन्हें बेहतर बनाने में मदद करता है। यह code का विश्लेषण करता है, tools सुझाता है और स्पेनिश भाषा में action plan बनाता है।
007
48kआपका एजेंट security audit और threat modeling करता है। यह प्रोजेक्ट को हमलों और कमजोरियों से बचाने में काम आता है।
10-andruia-skill-smith
48kआपके एजेंट को AI tools बनाने या उन्हें बेहतर करने में मदद करता है। यह तय करता है कि tools कैसे काम करेंगे, documentation लिखता है और structure की जांच करता है।
20-andruia-niche-intelligence
48kआपका एजेंट किसी खास industry का summary बनाता है। भरोसेमंद स्रोतों की मदद से यह प्रोजेक्ट का संदर्भ, नियम, इस्तेमाल के तरीके और जोखिम समझने में मदद करता है।
मिलती-जुलती skills
api-connector-builder
280kयह आपके एजेंट को मौजूदा pattern के हिसाब से नए API connections बनाने देता है। जब बिना कोई नया तरीका बनाए एक और integration जोड़ना हो, तब इसका इस्तेमाल करें।
api-design
280kयह आपके एजेंट को best practices के हिसाब से REST APIs डिज़ाइन करने में मदद करता है। यह तय करने में काम आता है कि APIs आपस में कैसे बात करें, errors कैसे दिखें, और data को कैसे व्यवस्थित करें।
backend-patterns
280kआपके एजेंट को server-side architecture patterns और database optimization में मदद करता है। server पर चलने वाला code बनाने या review करने के लिए उपयोगी है।