⚠️ 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/) or Accept/X-API-Version
headers 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.version in 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.
Stage 4 — Deprecated / Internal Routes Never Referenced by the Current UI
- Grep JS bundles for API calls no visible UI flow triggers (
/internal/, /admin/, /debug/,
/_internal/, /test/, /staging/) — reuse hunt-source-leak's JS-bundle grep patterns for
this specifically.
- Check
robots.txt / sitemap.xml for disallowed API paths — a self-inflicted disclosure.
- Mobile-app endpoint inventories (via
apk-redteam-pipeline / ios-redteam-pipeline) very
often reference an older backend version than the current web app calls. Treat every
APK/IPA-sourced endpoint as a version-diff candidate against the live web API.
False-Positive Gate
- A version difference alone (different response shape, cosmetic field renaming) is
Informational. The finding is a security-relevant regression — auth, rate-limit, or
validation that got weaker going backward in version history.
- Confirm the old endpoint is not simply an alias/proxy to the current implementation before
claiming a behavioral difference — send a payload that would actually behave differently
under old vs. new logic, not just compare a version string in the response body.
- A
200 on a path that just serves a static "this API version is deprecated, use v2" message
is not a finding — confirm the underlying operation still executes.
Severity Table
| Finding |
Severity |
| Old version bypasses auth entirely where current version requires it |
Critical |
| Old version missing rate-limit present on current version |
Medium–High (chain via hunt-brute-force) |
| Old version leaks extra fields (PII, internal IDs) vs. current |
Medium–High |
| Old version accepts payloads the current version now validates/sanitizes |
High (chain to the underlying injection class) |
| Version is reachable but behaviorally identical to current |
Informational |
Related Skills & Chains
hunt-api-misconfig — owns exploitation once a spec or endpoint is in hand (mass
assignment, JWT attacks, OData, Swagger-chain attacks). This skill hands it a sharper target:
"here's a zombie endpoint with weaker validation than the current one."
hunt-subdomain — owns host/subdomain-level discovery (api-v1.target.com as its own
host, potential takeover). This skill owns what happens once you're inside a given host's
version surface.
hunt-source-leak — JS-bundle grep for internal/undocumented calls; reused here
specifically for version-diffing rather than secret extraction.
apk-redteam-pipeline / ios-redteam-pipeline — mobile builds routinely hardcode an
older API version; every mobile-sourced endpoint is a version-diff candidate.
hunt-brute-force — a rate-limit regression found here is only a complete finding once
chained to actual brute-forceable impact (login, OTP, enumeration).
When to Use
- You have explicit, written authorization to assess the target in scope, and the task matches this skill's vulnerability class or technique within a bug-bounty or penetration-test engagement.
- You need the recon, exploitation, or validation workflow described below — executed strictly inside the approved scope.
Limitations
- Authorized scope only: the confirmation gate above is mandatory before any probing, exploitation, or credential-access command.
- Docs-only import: upstream helper scripts, commands, engine, and research assets are not bundled; reinstall tooling from the source repo when needed.
- Validate every finding (see
triage-validation) before reporting; report via report-writing. Prefer a sandbox, disposable VM, or controlled lab.
Example
# Read-only first step; confirm scope before anything active.
cat scope.txt # target list from the authorized engagement brief
Adapted from elementalsouls/Claude-BugHunter (MIT); frontmatter, When to Use/Limitations, and safety boundaries added for upstream compliance. Docs-only import: executable helpers, commands, engine, and research assets not bundled.
1---2name: hunt-shadow-api3description: Hunt shadow / zombie / undocumented API surface (OWASP API9 Improper4 Inventory Management)5category: security6risk: offensive7source: https://github.com/elementalsouls/Claude-BugHunter8source_repo: elementalsouls/Claude-BugHunter9source_type: community10date_added: '2026-09-20'11license: MIT12license_source: https://github.com/elementalsouls/Claude-BugHunter/blob/main/LICENSE13compatibility: Requires explicit written authorization for a target scope plus the14 relevant testing tools for this technique. Docs-only; helper scripts and commands15 not bundled.16sources: owasp_api_top10_2023, portswigger_research, public_research17report_count: 018metadata:19 source: https://skillmd.com/skills/francostino/hunt-shadow-api20---2122> **⚠️ AUTHORIZED USE ONLY**23> This skill is for educational purposes or authorized security assessments only.24> You must have explicit, written permission from the system owner before using this tool.25> Misuse of this tool is illegal and strictly prohibited.2627> **Mandatory confirmation gate**28> Before running any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target:29> 1. Ask the user to state the exact target URL, IP, account, or resource.30> 2. Ask the user to confirm written authorization and the permitted scope.31> 3. Show the exact command(s) and explain their expected effect.32> 4. Wait for explicit confirmation in the current conversation.33>34> Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.3536## OWASP API9 — Improper Inventory Management (Shadow / Zombie APIs)3738As an API evolves, old versions and internal/staging routes routinely stay reachable without39receiving the same security fixes as the current version — because nobody tracks that they40still exist. The bug is rarely in one endpoint; it's in the **delta** between what an old41version enforces and what the current version enforces on the same operation.4243### When to use4445Trigger when:46- Versioned paths are visible (`/v1/`, `/v2/`, `/api/2023-01-01/`) or `Accept`/`X-API-Version`47 headers are in play.48- A changelog, release notes, or deprecation notice references removed/old API behavior.49- A mobile APK/IPA (via `apk-redteam-pipeline` / `ios-redteam-pipeline`) hardcodes endpoints50 that look like an older backend version than the current web app calls.51- Multiple OpenAPI/Swagger specs are discoverable, or `info.version` in one spec implies others52 exist.5354DO NOT use for single-version APIs with no version history — there's nothing to diff; go55straight to `hunt-api-misconfig` for direct exploitation of the one surface that exists.5657---5859## Stage 1 — Enumerate the Full Version Surface6061```bash62# Path-based versioning63for v in v1 v2 v3 v4 beta alpha internal legacy old 2022-01-01 2023-01-01 2024-01-01; do64 curl -s -o /dev/null -w "%{http_code} /api/$v/\n" "https://$TARGET/api/$v/"65done6667# Header-based versioning68curl -s -H "X-API-Version: 1" https://$TARGET/api/users69curl -s -H "Accept: application/vnd.company.v1+json" https://$TARGET/api/users7071# Subdomain-based versioning72for sub in api api-v1 api-v2 apiv1 apiv2 legacy-api old-api internal-api staging-api; do73 curl -s -o /dev/null -w "%{http_code} $sub\n" "https://$sub.$TARGET/"74done75```7677A `200`/`401`/`403` on an old version path (anything but `404`/connection-refused) means the78version is still live and worth carrying into Stage 3, even if it demands auth.7980---8182## Stage 2 — Pull Every Reachable Spec, Not Just the Linked One8384```bash85for path in openapi.json swagger.json v1/swagger.json v2/swagger.json v3/api-docs \86 api-docs.json swagger/v1/swagger.json .well-known/openapi.json; do87 curl -s -o /dev/null -w "%{http_code} /$path\n" "https://$TARGET/$path"88done8990# Wayback Machine — a DEPRECATED version's spec often stays indexed after the live link is removed91curl -s "http://web.archive.org/cdx/search/cdx?url=$TARGET/*swagger*&output=json&collapse=urlkey"92curl -s "http://web.archive.org/cdx/search/cdx?url=$TARGET/*openapi*&output=json&collapse=urlkey"93```9495When more than one spec resolves (a current one and an archived/old one), diff the endpoint96inventories directly:97```bash98jq -r '.paths | keys[]' v1-swagger.json | sort > /tmp/v1_paths.txt99jq -r '.paths | keys[]' v2-swagger.json | sort > /tmp/v2_paths.txt100comm -23 /tmp/v1_paths.txt /tmp/v2_paths.txt # in v1 only — candidates for "still live but forgotten"101```102For every path in that diff, confirm it's still reachable against the v1 base URL. A route103documented only in the old spec that still returns something other than `404` is a zombie-104endpoint candidate — carry it into Stage 3.105106---107108## Stage 3 — Behavioral Diff Between Old and Current Version109110For each operation that exists in **both** versions, compare security-relevant behavior, not111response shape. Response shape differences are Informational; behavioral security regressions112are the finding.113114- **Auth strength.** Does the old version accept no token, an expired token, or a lower-115 privilege token that the current version rejects?116 ```bash117 curl -s -H "Authorization: Bearer $EXPIRED_TOKEN" https://$TARGET/api/v1/users/me -w '\n%{http_code}\n'118 curl -s -H "Authorization: Bearer $EXPIRED_TOKEN" https://$TARGET/api/v2/users/me -w '\n%{http_code}\n'119 ```120- **Rate limiting.** Burst the same number of requests against both versions' equivalent121 endpoint; a missing `429` on the old version means rate-limiting was added later and never122 backported.123- **Input validation.** Send the identical injection/oversized/malformed payload to both; the124 old version accepting what the new one rejects means hardening happened forward-only —125 chain into whichever injection class the payload targets (`hunt-sqli`, `hunt-idor`, etc.).126- **Field exposure.** Does the old version's response body include fields — internal IDs, other127 users' data, internal notes, PII — that the current version has since redacted?128129---130131## Stage 4 — Deprecated / Internal Routes Never Referenced by the Current UI132133- Grep JS bundles for API calls no visible UI flow triggers (`/internal/`, `/admin/`, `/debug/`,134 `/_internal/`, `/test/`, `/staging/`) — reuse `hunt-source-leak`'s JS-bundle grep patterns for135 this specifically.136- Check `robots.txt` / `sitemap.xml` for disallowed API paths — a self-inflicted disclosure.137- Mobile-app endpoint inventories (via `apk-redteam-pipeline` / `ios-redteam-pipeline`) very138 often reference an older backend version than the current web app calls. Treat every139 APK/IPA-sourced endpoint as a version-diff candidate against the live web API.140141---142143## False-Positive Gate144145- A version difference alone (different response shape, cosmetic field renaming) is146 Informational. The finding is a **security-relevant regression** — auth, rate-limit, or147 validation that got weaker going backward in version history.148- Confirm the old endpoint is not simply an alias/proxy to the current implementation before149 claiming a behavioral difference — send a payload that would actually behave differently150 under old vs. new logic, not just compare a version string in the response body.151- A `200` on a path that just serves a static "this API version is deprecated, use v2" message152 is not a finding — confirm the underlying operation still executes.153154---155156## Severity Table157158| Finding | Severity |159|---|---|160| Old version bypasses auth entirely where current version requires it | Critical |161| Old version missing rate-limit present on current version | Medium–High (chain via `hunt-brute-force`) |162| Old version leaks extra fields (PII, internal IDs) vs. current | Medium–High |163| Old version accepts payloads the current version now validates/sanitizes | High (chain to the underlying injection class) |164| Version is reachable but behaviorally identical to current | Informational |165166---167168## Related Skills & Chains169170- **`hunt-api-misconfig`** — owns exploitation once a spec or endpoint is in hand (mass171 assignment, JWT attacks, OData, Swagger-chain attacks). This skill hands it a sharper target:172 "here's a zombie endpoint with weaker validation than the current one."173- **`hunt-subdomain`** — owns host/subdomain-level discovery (`api-v1.target.com` as its own174 host, potential takeover). This skill owns what happens once you're inside a given host's175 version surface.176- **`hunt-source-leak`** — JS-bundle grep for internal/undocumented calls; reused here177 specifically for version-diffing rather than secret extraction.178- **`apk-redteam-pipeline`** / **`ios-redteam-pipeline`** — mobile builds routinely hardcode an179 older API version; every mobile-sourced endpoint is a version-diff candidate.180- **`hunt-brute-force`** — a rate-limit regression found here is only a complete finding once181 chained to actual brute-forceable impact (login, OTP, enumeration).182183## When to Use184185- You have explicit, written authorization to assess the target in scope, and the task matches this skill's vulnerability class or technique within a bug-bounty or penetration-test engagement.186- You need the recon, exploitation, or validation workflow described below — executed strictly inside the approved scope.187188## Limitations189190- Authorized scope only: the confirmation gate above is mandatory before any probing, exploitation, or credential-access command.191- Docs-only import: upstream helper scripts, commands, engine, and research assets are not bundled; reinstall tooling from the source repo when needed.192- Validate every finding (see `triage-validation`) before reporting; report via `report-writing`. Prefer a sandbox, disposable VM, or controlled lab.193194### Example195196```bash197# Read-only first step; confirm scope before anything active.198cat scope.txt # target list from the authorized engagement brief199```200201> Adapted from [elementalsouls/Claude-BugHunter](https://github.com/elementalsouls/Claude-BugHunter) (MIT); frontmatter, When to Use/Limitations, and safety boundaries added for upstream compliance. Docs-only import: executable helpers, commands, engine, and research assets not bundled.