Improper Inventory Management (OWASP API9) — discover shadow, zombie, deprecated, and undocumented API versions plus non-prod/staging hosts that reintroduce fixed bugs or bypass monitoring. Tier 1. Use to enumerate versions and hosts after initial recon.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Api Improper Inventory?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-api-improper-inventory)
---
name: api-improper-inventory
description: Improper Inventory Management (OWASP API9) — discover shadow, zombie, deprecated, and undocumented API versions plus non-prod/staging hosts that reintroduce fixed bugs or bypass monitoring. Tier 1. Use to enumerate versions and hosts after initial recon.
---
# API9 — Improper Inventory Management
Old versions, forgotten endpoints, and non-prod hosts carry weaker auth and un-patched bugs, and often sit outside WAF/monitoring. Builds on `api-recon`.
## Trigger phrases
`api9, improper inventory, shadow api, zombie endpoint, deprecated version, staging host, api versioning, undocumented api`
## Method
1. **Version enumeration** — swap the version segment on known routes: `/api/v1`, `/v2`, `/v3`, `/beta`, `/alpha`, `/internal`, `/legacy`. Compare behaviour/auth across versions on the *same* endpoint.
```bash
for v in v1 v2 v3 beta internal legacy; do
curl -s -o /dev/null -w "$v %{http_code}\n" https://TARGET/api/$v/users/1; done
```
2. **Deprecated-but-live** — docs mark an endpoint removed, yet it still responds (often with pre-fix logic / weaker auth). Diff published docs vs. live surface.
3. **Non-prod hosts** — resolve `staging.`, `dev.`, `uat.`, `test.`, `api-test.`, `sandbox.`, `qa.` subdomains:
```bash
subfinder -d TARGET | httpx -sc -title | grep -Ei 'stag|dev|uat|test|sandbox|qa'
```
test the same API on each — non-prod frequently has debug on, default creds, no rate limit.
4. **Undocumented/debug routes** — `/actuator`, `/debug`, `/_internal`, `/swagger` on old versions; APK/JS-sourced endpoints absent from docs (`api-recon`).
5. **Environment diff** — run the same payload against old vs. current version; a bug fixed in v2 may still live in v1.
## Modern / rare techniques
- **[RARE] Zombie endpoints** — fully deprecated but reachable, lacking every control added later; a goldmine for re-testing all other classes.
- **[RARE] Shadow APIs from mobile** — APK-only endpoints never fronted by the WAF; cross-ref `api-recon` APK extraction.
- **[RARE] Host-based control gap** — prod enforces authz at the gateway; staging exposes the backend directly.
## Escalation / chaining
Each discovered version/host → re-run `api-bola`, `api-bfla`, `api-broken-auth`, `api-injection` against it; old versions often fall to already-patched bugs. Non-prod creds may pivot to prod data.
## Backend & tooling
Preferred Kali path (WSL+Kali / Kali-MCP / HexStrike): subfinder/httpx/ffuf for host+version sweeps; Burp to replay a known request across versions. See `zazy-orchestrator`.
## Verification (background, before reporting)
Confirm the alternate version/host returns real data or a genuinely weaker control (not an identical proxy), reproduced independently. Show the control difference vs. the current version. True positives only.
## Evidence
The shadow/zombie/deprecated endpoint or non-prod host, side-by-side with the current version showing weaker auth / reintroduced bug. Impact + remediation (API inventory, retire old versions, uniform controls across versions and hosts).