Join our Newsletter — 33% off our NHI Course
Home› Guides› Shadow APIs for Beginners: How Forgotten and Unknown…
Guide Web & API Security

Shadow APIs for Beginners: How Forgotten and Unknown APIs Put Data at Risk

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 28 November 2026 11 min read
On this page

A shadow API is a software doorway nobody is looking after; a zombie API is an old one left open.

This guide is for managers, developers, students and anyone curious about why "forgotten APIs" keep appearing in security news. You do not need to write code to be affected: if your organisation has apps or a website, it is likely to use APIs, and someone should know where they all are.

In short

  • An API is a doorway that lets one program ask another for data or actions.
  • A shadow API is running but missing from the list the security team works from. A zombie API is an old version that was meant to be switched off.
  • Forgotten APIs often miss newer safety checks, so they can be an easier way in.
  • Keep one up-to-date list of every API, give each an owner and plan how old versions will be retired.

What you will learn

  • Explain the difference between a shadow API and a zombie API.
  • Spot the signs that an organisation has lost track of its APIs.
  • Check whether old API versions have a switch-off date.
  • Ask your team who owns each API.
Software doorway (API)
a set route that lets one program ask another for data or to do something.
List of doorways (API inventory)
a record of every API, where it runs, who owns it and what data it handles.
Old version (deprecated API)
an earlier version of an API that has been replaced and is due to be switched off.

What are shadow and zombie APIs?

Think of a large office building with a floor plan at the front desk. The guards check every door on the plan. Now imagine a door someone added without updating the plan, and an old door that was meant to be bricked up but still opens.

An API (application programming interface) is a doorway that lets one program talk to another. A phone app uses APIs to fetch your orders, and a website uses them to check stock. A large organisation can run hundreds of them.

A shadow API is like the door missing from the plan. It is running, but the security team does not know about it or manage it. It might be a test copy a developer set up, or a feature built in a hurry.

A zombie API is like the door that was meant to be bricked up. It is an old version that was replaced, but nobody switched it off. It still answers requests.

Where the comparison stops working: a guard can walk the corridors and spot a strange door. APIs are reached over the internet, so a forgotten one can be found by strangers using search tools before the owner notices it.[1]

Why does it matter?

You cannot protect a door you do not know about. A well-known community list of the top API risks includes poor tracking of APIs and their versions.[2] It says old versions and forgotten test copies are often less protected than the main one.[1]

If you manage a team or a product

What could happen: an old version of your app's API still returns customer data, without the checks added since.

Check this: does every API your team runs have a named owner and a switch-off plan for old versions?

Next: API Security for Beginners

If you are a developer

What could happen: a test copy you set up "for a week" stays online for a year, with real data in it.

Check this: list what you have running outside the main system, and remove what is no longer needed.

Next: Secure Coding for Beginners

If you are a student or new to IT

What could happen: you hear "shadow API" and "zombie API" used as if they mean the same thing.

Check this: unknown is shadow, abandoned is zombie. Both are missing from someone's list.

Next: Shadow APIs vs Zombie APIs

What does it look like?

Here is a made-up comparison. On the left is the list a company keeps. On the right is what a scan of its web addresses actually found.

Example only. All values are made up.

API list (what the team thinks)     Scan found (what is running)
api.example.com/v3/orders  owner: Web   api.example.com/v3/orders      (1)
                                        api.example.com/v1/orders      (2)
                                        test-api.example.com/v3/orders (3)
                                        promo.example.com/api/winners  (4)
  1. The main API. It is on the list and has an owner.
  2. A zombie API. Version 1 was replaced years ago, but it still answers.
  3. A shadow API. A test copy nobody added to the list. In a real file, this line would contain the address of a test copy, which may hold customer data.
  4. Another shadow API, built for a marketing campaign that has ended.

Why this is risky: the security checks added to version 3 may not exist on version 1 or the test copy. An attacker who finds them may skip the newer protections.[1]

The safer way: compare the list with what is really running, on a regular schedule. Every API found gets an owner, or it gets switched off.

How does it work?

APIs usually become shadow or zombie APIs through ordinary, busy work.

  1. Something new is built. A team adds an API for a feature, a test or a partner, and does not add it to the shared list.
  2. Something old is replaced. A new version goes live, but the old one is left running so older apps keep working.
  3. Time passes. People change jobs. Nobody remembers why the old version or test copy exists.
  4. Protection moves on. New checks are added to the main API, but not to the forgotten ones.[1]
  5. Someone finds it. Attackers can find forgotten APIs with simple methods, such as search engines and lists of web addresses.[1]
Diagram titled Known, shadow and zombie APIs. Three doors lead into a company's data store. The green door, Known API version 3, is on the list, has an owner and has the latest checks. The grey door, Shadow API test copy, is not on the list and has no owner. The dark door, Zombie API version 1, was replaced but never switched off and misses newer checks. An attacker arrow points at the shadow and zombie doors. A green bar says keep one list, give every API an owner and switch off old versions on a set date.
Figure 1. Shadow and zombie APIs lead to the same data, often with weaker checks.

A real example from the community list shows why this matters. A social network protected its main API from password-guessing. A test copy of the same API lacked that protection, and a researcher used it to reset other people's passwords.[1]

Four-step loop titled Keeping track of APIs. 1 Find: scan for what is really running. 2 List: add each API with its version, where it runs and its data. 3 Own: give each API a named owner. 4 Retire: set a switch-off date for old versions and tell users. Arrows loop back from step 4 to step 1, labelled repeat regularly.
Figure 2. Finding, listing, owning and retiring APIs is a loop, not a one-off job.

A worked example

Elif Yeboah is the new product manager at Larch Couriers, a parcel delivery firm. Customers use its app to track parcels. The app talks to the company's systems through APIs.

Elif asks a simple question at her first team meeting: "How many APIs do we run?" Nobody is sure. The team keeps a list, but it was last updated two years ago.

Noor Varga, a developer on the team, offers to compare the list with what is really running. She uses the company's approved tools to check its own web addresses. She also looks at traffic through its API gateway, the front door that checks requests.

Noor finds three surprises. Version 1 of the tracking API is still switched on, even though the app moved to version 2 long ago. A test copy built for a trial with a shop partner is still online. And a small API for a holiday promotion is still answering requests, months after the promotion ended.

The old version 1 is the most worrying. It returns delivery addresses without the newer check that a customer can see only their own parcels.

Elif and Noor agree a plan. The promotion API and the test copy are switched off that week. For version 1, they check which apps still use it. They tell those users it will close on a set date, then switch it off.

Every API now has a named owner on the list. Noor sets a reminder to repeat the comparison every three months.

Myths and mistakes

What people thinkWhat is true
If an API is not on our website, nobody can find it.Attackers can find APIs with search engines and scanning tools, without any links to them.
A new version fixes the old one.The old version may still run with its old weaknesses until someone switches it off.
Test copies are safe because they are only for testing.Test copies sometimes hold real data and often have weaker checks.
Our API list was done once, so we are covered.APIs change all the time. A list needs regular checking against what is really running.
Shadow and zombie APIs are the same thing.Shadow means unknown or unmanaged. Zombie means old and meant to be gone. Both are risky.

What can I do this week?

  • Ask your team where the list of APIs is kept, and when it was last updated.
  • Pick one API and check it has a named owner.
  • Ask whether any old API versions are still running, and when they will be switched off.
  • Look for test copies or campaign APIs that are no longer needed, and ask for them to be removed.
  • Check that test copies do not hold real customer data.

Checklist

  • There is one shared list of every API the organisation runs.
  • Each API on the list has a named owner.
  • The list shows each API's version, where it runs and what data it handles.
  • The list is compared with what is really running on a regular schedule.
  • Old versions have a switch-off date, and users are told in advance.
  • Test copies are kept apart from real data, or protected like the main API.
  • Security checks apply to every version that is still running, not just the newest.
  • Unused APIs are switched off, not just forgotten.

Common questions

What is the difference between a shadow API and a zombie API?

A shadow API is running but unknown to, or unmanaged by, the security team. A zombie API is an old version that was replaced and should have been switched off, but still works. Both are missing from proper care, which is why they are often weaker than the main API.

Why not just switch old API versions off straight away?

Because some apps or partners may still use them, and switching off suddenly can break those services. The usual answer is a planned retirement: tell users, give a date, then switch off. Some APIs send a standard "sunset" date in their replies to warn users in advance.[3]

How do companies find shadow APIs?

They compare their API list with what is really running. Common ways include looking at traffic passing through API gateways, checking cloud accounts and scanning their own web addresses. Each organisation should only scan systems it owns or has permission to test.

Are shadow APIs always created on purpose?

Usually not. Most appear through normal busy work: a quick test, a short campaign or a new feature that never made it onto the list. That is why regular checks matter more than blame. The aim is to find them and give each one an owner.

Where next?

Ready for the detail? Read the practitioner guide: OWASP API Top 10 API9 Improper Inventory Management Guide. It goes further into discovery methods, documentation standards and how to retire API versions safely.

Also useful:

Related NHI Mgmt Group resources: API Security Guide · API Gateway Security Guide · API Security Checklist

Key terms

API
A set route that lets one program ask another for data or actions.
Shadow API
An API that is running but is not known to, or managed by, the security team.
Zombie API
An old or abandoned API that still works after it was meant to be retired.
API inventory
A record of every API, who owns it, what data it touches and how it is protected.
API deprecation
Announcing that an API version will be retired, so users can move before it is switched off.
API gateway
A front door that checks and routes requests before they reach the APIs behind it.

Sources and further reading

  1. OWASP API Security Top 10, 2023 edition: API9:2023 Improper Inventory Management. OWASP Foundation. https://api-security.owasp.org/editions/2023/en/0xa9-improper-inventory-management/, accessed 28 Nov 2026.
  2. OWASP Top 10 API Security Risks, 2023 edition. OWASP Foundation. https://api-security.owasp.org/editions/2023/en/0x11-t10/, accessed 28 Nov 2026.
  3. RFC 8594: The Sunset HTTP Header Field (Informational). IETF, May 2019. https://www.rfc-editor.org/rfc/rfc8594.html, accessed 28 Nov 2026.

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.