Module 6 · API Discovery & Inventory

Manish Garg
Manish Garg Associate of (ISC)² · RingSafe
Apr 27, 2026
1 min read
Read as

Last updated: April 29, 2026

100% Free

No signup. No paywall. No catch. One of our 10 most-requested practitioner modules — published in full so anyone can learn for free. We earn through consulting, not by gating knowledge.

See all 10 free modules →

Why this module. Most enterprises have 30-60% more APIs than their security team knows about. Shadow APIs (unauthorised), zombie APIs (deprecated but still listening), partner APIs nobody documented. Each is an attacker’s entry point.

Why this module. Most enterprises have 30-60% more APIs than their security team knows about. Shadow APIs (unauthorised), zombie APIs (deprecated but still listening), partner APIs nobody documented. Each is an attacker’s entry point.

The four classes of unknown APIs

  • Shadow API — not on your inventory, exposed anyway. Often a developer’s “quick fix” that became permanent.
  • Zombie API — was retired; load balancer still routes; backend still listens.
  • Internal API exposed — meant to be private, accidentally reachable from internet.
  • Third-party API hardcoded — vendor API keys in your code; vendor breach = your breach.

Discovery sources

  1. Code analysis — grep for route definitions, decorators, OpenAPI specs.
  2. Traffic analysis — load balancer / API gateway / WAF logs. Group by host + path; find clusters not in inventory.
  3. External recon — Shodan, Censys, subdomain enumeration on your external surface.
  4. API gateway native discovery — Kong, Apigee, AWS API Gateway have inventory features.
  5. Dedicated tools — Salt Security, Noname (now Akamai), Wallarm, Traceable.

What “inventory” means

Per API endpoint:

  • Route path + method
  • Owner team
  • Authentication required (none / API key / OAuth / mTLS)
  • Authorization model
  • Data classification (public / internal / confidential)
  • Rate limit
  • Internet-facing yes/no
  • Last code review date
  • Last security review date

The continuous discovery loop

Run weekly:

  1. Pull traffic logs.
  2. Extract unique route + host pairs.
  3. Diff against current inventory.
  4. For new entries: alert; investigate; document or shut down.

Defender’s checklist

  • API inventory as code (OpenAPI specs in source control).
  • Weekly diff against actual traffic.
  • Tagged with owner, classification, security review status.
  • API gateway as policy enforcement point — no-spec APIs blocked.
  • Zombie cleanup quarterly.
🧠
Check your understanding

Module Quiz · 6 questions

Pass with 80%+ to mark this module complete. Unlimited retries. Each question shows an explanation.

Want this for your team?

Custom team training + practitioner advisory

Beyond the free academy — we run private workshops, vCISO advisory, and red-team exercises tailored to your stack. For Indian SMBs scaling past their first hire.

Book team training call Replies in 4 working hrs · India-only · Senior consultants