APIs multiply faster than governance can track them, and many are created during ordinary development without going through security review. Traditional tooling protects the APIs it knows about. Undocumented endpoints, legacy versions, project leftovers, and systems inherited through mergers stay outside the security team's view until something goes wrong.
API Security: The Attack Surface You’re Missing | SecurityHQ
API Security: The Attack Surface Most Companies Still Aren’t Watching
Most organisations can describe how they protect their applications, their endpoints, and their network. Ask the same organisation for a complete list of its APIs, and the answer is usually silence. That silence is the problem.
APIs now carry a large share of traffic between applications, partners, and customers, making them one of the most valuable targets for an attacker. Yet the API you have forgotten is the one you cannot defend.
Forgotten APIs are common. This article covers why APIs have become such a fast-growing attack surface, what shadow APIs are, how they slip past security teams, and how to gain visibility into endpoints you don’t know you are running.
Why APIs Are the Fastest-Growing Attack Surface
Modern software is assembled from services that talk to each other over APIs, and every integration, mobile app, and partner connection adds more. Development teams ship them quickly because the business depends on that speed, and governance rarely keeps pace with how fast new endpoints appear.
APIs have multiplied faster than the processes meant to govern them, making them attractive to attackers for a specific reason. APIs are designed to expose data and functionality directly, often with less scrutiny than the applications they sit behind. An API that returns customer records is doing exactly what it was built to do, which makes abusing that API harder to distinguish from legitimate use than a conventional intrusion would be.
The exposure is compounded by where APIs live. Many are internet-facing by design, reachable from anywhere, and the ones built for internal use often end up exposed through misconfiguration. An attacker performing reconnaissance does not need to breach a perimeter to find them. They only need to look, and tools to enumerate exposed APIs are widely available.
What Are Shadow APIs?
A shadow API is an endpoint the security team does not know exists. It might be a legacy version left running after an upgrade, an API built for a short-term project and never retired, or one a team stood up without going through review. Whatever its origin, it is live, reachable, and absent from the inventory the security team defends.
Shadow APIs are dangerous precisely because they are unmanaged. An endpoint no one is tracking is an endpoint no one is patching, monitoring, or testing. It may run outdated authentication, expose data a current API would restrict, or lack the controls applied to its documented counterparts, and because security is unaware of it, none of that gets caught until an attacker finds it first.
How Undocumented Endpoints Slip Past Security Teams
Undocumented endpoints accumulate through ordinary development, not negligence. A team ships version two of an API while version one keeps running for backward compatibility. A staging endpoint is exposed during testing and never closed. A merger brings in systems whose APIs no one has mapped. Each is a reasonable step in isolation, and each leaves an endpoint outside the security team’s view.
Traditional security tooling does not close this gap on its own. A firewall or web application firewall protects the traffic it knows about, and a documented API inventory covers only the APIs that were documented. None of these discovers the endpoint that was never recorded, which is why shadow APIs persist even in organisations with mature application security programmes. Finding them requires actively looking from the outside, the same vantage point an attacker uses.
Common API Vulnerabilities
The most damaging API flaws are logic and access failures. An API can be perfectly coded in the conventional sense and still expose data because of how it handles authorisation. These are the patterns that recur across real API breaches.
Broken Object Level Authorization
This is the most common and most exploited API flaw. It occurs when an API checks that a user is logged in but fails to check that the record they request belongs to them. An attacker changes an identifier in the request, an account number, a document ID, and the API returns another user’s data because it never verified ownership. The fix is enforcing object-level authorisation on every request, but the flaw is easy to introduce and easy to miss.
Excessive Data Exposure
APIs often return more than the application displays, trusting the client to filter what the user sees. An attacker who queries the API directly receives the full response, including fields the interface hides. Personal data, internal identifiers, and system details leak this way not because of a breach in the usual sense, but because the API was designed to hand over everything and let the front end decide what to show.
Weak Authentication and Rate Limiting
APIs frequently authenticate more weakly than the applications around them, relying on keys that are hard to rotate or tokens that never expire. Combined with missing rate limits, this lets an attacker attempt credential stuffing, enumerate records, or quickly brute-force their way through an endpoint. An API that accepts unlimited requests is an API that invites automated abuse.
API Security vs. Application Security
Securing the application does not secure the API behind it. Application security focuses on the interface a user interacts with: web pages, input fields, and sessions. API security concerns the machine-to-machine layer beneath, where the controls are different, and the assumptions the application makes about a well-behaved client do not hold.
The distinction matters because attackers target the API directly, bypassing the application entirely. Protections that live in the front end, input validation in a form, logic enforced in the browser, mean nothing to an attacker sending requests straight to the endpoint. API security has to be enforced at the API itself: authorisation on every object, restraint in what each response returns, and authentication strong enough to stand on its own.
How to Build an API Security Program
Effective API security starts with knowing what you have, because you cannot protect an endpoint you have not found. Discovery comes before testing, monitoring, or any control, and it has to be continuous, since new APIs appear constantly. This is where API security connects directly to the wider discipline of managing your attack surface.
API Discovery and Inventory
Build and maintain a live inventory of every API, discovered from the outside as an attacker would see it rather than assembled from documentation. External discovery finds the shadow endpoints that internal records miss. It continuously catches new and changed APIs as they appear. An inventory that is accurate today but never updated is wrong within weeks.
Connecting API Security to Attack Surface Management
APIs are one of the most significant categories of internet-facing assets, which makes them a core concern of Attack Surface Management. Treating API discovery as part of continuous attack surface management, rather than a separate exercise, means exposed and undocumented endpoints surface alongside every other external risk, and get prioritised in the same view.
For the wider context on discovering exposed assets before attackers do, see our guide to what attack surface management is and why it matters.
Find the APIs You Don’t Know You’re Running
The APIs missing from your inventory are the ones an attacker will find first. Talk with a security expert to see how continuous discovery surfaces shadow and undocumented endpoints as part of managing your full attack surface.
Frequently Asked Question
The most damaging are authorisation and access failures rather than classic injection bugs. Broken object-level authorisation, where an API fails to confirm a record belongs to the requester, is the most exploited. Excessive data exposure and weak authentication combined with missing rate limits round out the patterns that recur across real API breaches.
Discover them from the outside, the way an attacker would, rather than relying on internal documentation. Continuous external discovery finds endpoints that inventories miss and catches new ones as they appear. Treating this as part of ongoing attack surface management keeps the API inventory accurate rather than letting it drift out of date.
Effective API monitoring combines discovery, which finds every endpoint including undocumented ones, with behavioural monitoring that flags abuse the traffic patterns reveal, such as a single client enumerating records or pulling unusual volumes of data. Because API abuse often looks like legitimate use, monitoring works best when tied to the context a managed service and wider attack surface visibility provide.