Shadow API Inventory: Find the Endpoints Your Security Scope Misses

Consider a hypothetical scheduling SaaS that has moved its web app to a new API. The engineering catalog lists only the replacement. A partner connector still calls an older export service, and a support tool uses a regional endpoint nobody included in the security brief. Neither observation proves a vulnerability. Both change what the team needs to understand before it claims to have covered its API surface.

Start where the records disagree

Microsoft’s shadow-API guide, updated October 29, 2026, describes comparing APIs an application uses with registrations in API Center. That is a useful current example of discovery as reconciliation: observed use and the catalog can disagree. The guide is a product workflow, not evidence of a rise in API incidents. Microsoft shadow-API discovery guidance.

For your own review, ask three teams for their existing records: platform engineering for deployments, application owners for interface descriptions, and operations for approved traffic metadata. Keep the collection window and environment beside each export. A staging snapshot from last month cannot settle a question about today’s production deployment.

Compare deployed, described and observed APIs

In the scheduling example, the catalog says “booking API,” while the deployed service and the partner’s connection use different names. Preserve those aliases before merging them. Normalize a record around its host, base path, version, environment and owning service, then retain the original discovery source.

Evidence in the exampleWhat it establishesNext decision
Production route configurationA legacy export route is configuredFind its service owner and exposure boundary
Partner connection metadataAn approved partner still calls that routeConfirm the supported migration path
Current interface descriptionThe route is absent from current documentationDecide whether the omission or deployment is wrong
Support-tool trafficA regional API is in useRegister its purpose and regional owner
Old repository reference onlyA historical URL once appeared in codeCheck deployment evidence before calling it live

Use metadata sufficient to identify the route and consumer. Collecting request bodies full of customer information rarely helps resolve ownership. If evidence is incomplete, mark the record as a candidate and record the next check rather than guessing its status.

Use specifications without treating them as deployment truth

OpenAPI describes servers, paths and operations, with server definitions possible at different levels. Review the effective server for an operation when building the inventory; reading only the first base URL can miss an explicitly described alternative. OpenAPI server guidance.

A specification is also a statement someone maintains. Compare it with the deployed configuration and the controlled workflows you observe. In the example, the undocumented regional host might be a supported deployment with a documentation gap, while a documented host might have been retired. These deserve different tickets.

Keep “documented,” “observed,” “deployed” and “owner confirmed” as separate fields. Collapsing them into a single green status makes it difficult to distinguish confidence from completeness. Record who last confirmed the business purpose and when that confirmation expires.

Give old versions an explicit decision

OWASP lists unsupported versions, incomplete host inventories and unclear retirement practices under improper API inventory management. Its prevention guidance includes recording environment, access expectations and version. Those fields explain why an old route still deserves attention even when the main application moved on. OWASP API9:2023.

Ask the legacy export owner a concrete question: is this service still supported for the partner? If yes, record its maintainer, intended consumers and security-review date. If no, name the replacement, the person contacting the partner and the evidence required before removal. An old version is not automatically insecure, and a recent version is not automatically owned.

Prioritize records with unresolved public exposure, sensitive data flows or no accountable maintainer. Keep business dependencies visible alongside that priority. Turning off the partner’s integration without a migration decision may exchange a security uncertainty for an avoidable outage.

API INVENTORY / FROM OBSERVATION TO OWNER

Resolve the gap before defining coverage.

The same API can appear differently in a catalog, a deployment and an application’s traffic.

  1. Gather evidence

    Collect approved deployment, specification and traffic records.

  2. Reconcile identities

    Connect aliases while preserving source and observation date.

  3. Assign a decision

    Confirm owner, purpose, version and lifecycle action.

  4. Verify the outcome

    Check testing scope or retirement against the live configuration.

Discovery contributes evidence; ownership turns that evidence into a maintainable inventory.

Retirement needs an observed end state

The Deprecation response header communicates that a resource is deprecated or will be deprecated. It does not itself change the resource’s behavior. Use it as part of client communication, with a migration guide and contact. RFC 9745.

The separate Sunset header indicates an expected time when a URI will become unresponsive. A date in a response is an announcement, so your change record still needs deployment verification. RFC 8594.

For the scheduling service, close the retirement ticket only after checking the intended production route, any regional equivalent and the partner’s agreed replacement. Retain the former owner and removal decision in history. If the URL reappears in a later discovery feed, the next reviewer can recognize a historical observation instead of opening the same investigation from scratch.

Use the inventory to make testing specific

Pick the first review slice with an owner: one environment, a named API version, defined consumers and sensitive operations. Record gaps explicitly. A route whose owner is unknown remains an inventory action; it should not silently count as tested because another route on the same hostname was reviewed.

Once ownership and scope are settled, our guide to preparing authenticated test access covers usable sessions and accounts. After testing, validation and prioritization help connect evidence to the repair owner.

A reconciled inventory makes the Sectiv onboarding conversation more useful: which applications are confirmed, which APIs matter and what remains unknown? We configure AI-assisted web, API and source testing around that scope, with validation and expert support. Book a demo.

Common questions

Is a shadow API necessarily vulnerable?

No. “Shadow” describes a visibility or governance gap relative to the catalog being used. Confirm ownership, deployment and intended use before deciding which security checks or retirement action it needs.

Can gateway logs provide a complete API inventory?

They describe traffic visible to that gateway during the collection window. A separately hosted service, a quiet integration or another region may require deployment records and owner confirmation. Preserve the observation window instead of claiming completeness.

Should every old API version be removed immediately?

First establish whether it has supported consumers. Assign maintenance and review responsibilities while planning migration. Removal should follow an approved lifecycle decision with evidence that the intended routes are no longer available.

YOUR NEXT STEP

Make the next security review specific to your business.

Bring your application architecture and the boundaries you need to check to a Sectiv demo.

Book a demo
References & further reading