Of all the OWASP API risks, this is the closest to our own focus: you cannot secure an AI endpoint you do not know exists. Improper Inventory Management is the risk of the forgotten: the deprecated v1 still serving traffic, the staging host exposed to the internet, the acquired company's API nobody documented, and the endpoint a departed developer stood up and never mentioned.

APIs proliferate faster than any inventory kept by hand. Every version, environment, and integration is another host and another set of endpoints, and organizations routinely lose track of what they are running. The danger is specific: an old version rarely gets the patches and hardening the current one does, so /v1/ keeps the very bug /v3/ fixed, and it is often still reachable.

Shadow and zombie APIs

Improper Inventory Management: You Can't Defend What You Can't SeeDiagram with these labels, in reading order: ATTACKER; GATEWAY; SERVICES; known traffic; routed; finds forgotten host; Attacker; Patched & watched; Gateway / WAF; / monitoring; /v3, patched,; watched; /v1, deprecated,; still live; Old version skips; patches & auth.ATTACKERGATEWAYSERVICESknown trafficroutedfinds forgotten hostAttackerPatched & watchedGateway / WAF/ monitoring/v3, patched,watched/v1, deprecated,still liveOld version skipspatches & auth
The forgotten version sits outside every control: live attack surface nobody watches.

Shadow APIs are endpoints security never knew about, stood up by a team in a hurry, inherited in an acquisition, or exposed by a misconfigured deployment. They sit outside every gateway, WAF, and monitoring rule because those controls were never told they existed. Zombie APIs are the opposite: once known, now deprecated, but never actually decommissioned. Both are dangerous for the same reason: they are live attack surface that no one is watching.

The old version that never got the fixPOST /v3/users → patched, rate-limited, monitored
POST /v1/users → still live, still vulnerable, watched by no one

Documentation is the other half of the problem. An API without an accurate, current specification cannot be tested, gated, or reasoned about. Undocumented endpoints don't appear in security reviews or automated scans, so they accumulate exactly the flaws the rest of this list describes (broken authorization, misconfiguration, excessive data exposure) with no one positioned to notice.

Why it's API9: Every other risk on this list assumes you know the endpoint exists. Inventory is the meta-risk: an unknown API cannot be authenticated, authorized, rate-limited, or monitored, because none of those controls were ever pointed at it.

Building an inventory

  • Discover continuously. Maintain a live inventory of every API, host, version, and environment through ongoing discovery, traffic analysis, and DNS and cloud enumeration. A spreadsheet is stale the day it is written.
  • Document every endpoint and keep it current. Require an accurate, machine-readable specification per API, and treat drift between spec and reality as a defect.
  • Retire deprecated versions on a clock. Give old versions a firm decommission date and enforce it; a version kept alive "just in case" is a zombie in waiting.
  • Separate and lock down non-production. Keep staging, test, and development APIs off the public internet, with their own access controls and no real data.
  • Route everything through known choke points. Ensure all API traffic passes a gateway you monitor, so an endpoint outside it stands out as the anomaly it is.

Improper Inventory Management is the risk that makes the other nine harder to close, because it hides the very endpoints those controls are meant to protect. Discovery is a continuous task that the entire program rests on, and it is never finished. You can't defend what you haven't discovered, and an API you've forgotten is one an attacker is happy to remember for you.

Primary source. API9:2023 Improper Inventory Management, OWASP API Security Project.

Back to the knowledge baseRequest an assessment