
API Security Beyond WAF: Why Runtime Context Defines Modern API Security
Many teams still assume a WAF is enough to protect APIs, but modern attacks abuse logic, identity, and normal-looking traffic. This explainer shows where WAFs help, where they fall short, and what a modern API security stack adds in production.
Reading Time: 9 minutes
TL;DR
- A WAF cannot see BOLA, shadow APIs, or east-west traffic inside Kubernetes clusters
- Runtime behavioral monitoring catches what signature-based rules miss entirely
- API security needs continuous inventory and identity enforcement, not just inbound filtering
- CNAPP correlation connects API activity to workload identity and data store exposure
- More than 50% of 2024 cybersecurity exploits were API-related, roughly double 2023 volume
A security team finishes a WAF rollout in front of the primary API gateway and marks API security done. The gateway logs are quiet, WAF rules are firing, and it feels complete. The attacks that actually compromise APIs do not match signatures and never did. That is where API security beyond WAF thinking has to start.
Why Perimeter Filtering Fails Against Modern API Threats
A WAF blocks signature-matched requests, enforces rate limits, and gives a virtual patch layer in front of web-facing services. That work has value. It just does not cover what API security actually demands.
The real attack surface is wider. North-south and east-west traffic both carry sensitive data. PII and PHI move through headers and responses that a WAF was never instrumented to classify. Shadow, zombie, and orphan APIs run outside any documented spec. DORA, GDPR, HIPAA, and PCI-DSS auditors ask for continuous evidence, not a gateway log from last Tuesday.
API security vs WAF is not a tooling debate. A WAF is one control point looking inbound for known patterns. API security is an inventory and behavioral enforcement problem that requires a different instrument. Full context on shadow API types is covered in the AccuKnox Shadow APIs guide. The WAF stays. It just stops being the last word.
API Attack Paths Traditional Gateways Still Miss
The OWASP API Security Top 10 (2025) makes the blind spots concrete. Five categories define what runtime API security handles that signature-based controls never will.
Broken Object Level Authorization (BOLA) — A01:2025
A user swaps an object ID in a valid HTTP request and gets back someone else’s record. The request is syntactically correct. The WAF has no way to know the wrong object was returned, because authorization is an application-layer decision tied to user identity and object ownership. Neither is inspectable at the perimeter.

BOLA is the most exploited API vulnerability category for this exact reason. The attack leaves no signature. The damage is in the response, not the request.
Security Misconfiguration and Shadow APIs — A02:2025
A WAF only sees APIs it has been told about. It cannot discover what it does not know exists. Most production environments have undocumented endpoints, endpoints still in spec but no longer in use, and endpoints with no clear owner. Zombie APIs are particularly risky because they often run with older authentication schemes or no authentication at all. None of them appear in any WAF rule set.

SSRF — A05:2025
Server-Side Request Forgery tricks the server into making internal requests on the attacker’s behalf. The payload arrives as valid input. The damage happens on an internal hop the external WAF never sees. Cloud credential endpoints, metadata services, and internal databases all sit behind that hop. The attacker never touches the perimeter directly.

Credential Stuffing and Low-and-Slow Enumeration — A07:2025
Spread a credential-stuffing attempt across source IPs and time windows, and it sits well below any typical WAF rate limit. The same pattern applies to enumeration attacks that walk through user IDs, order numbers, or session tokens at one or two requests per minute. The attacker behaves like a careful user. Signature controls cannot distinguish them from legitimate traffic.
This is the clearest case for runtime API security vs. WAF: behavioral context catches what threshold rules miss.
East-West API Abuse Inside Kubernetes
Service-to-service traffic inside a Kubernetes cluster never reaches the perimeter WAF. An over-privileged microservice quietly exfiltrating customer records to an internal dependency leaves zero trace in the WAF log. The east-west surface typically carries the most sensitive data with the least enforcement, because the implicit trust assumption inside the cluster has not kept pace with the microservice count. This is where the modern API security stack must reach.
How runtime enforcement aligns with real API execution flows
Closing these gaps means starting earlier, at the spec and code level, and going deeper into runtime behavior and cloud identity than any gateway log can reach. The modern API security stack layers four capabilities the WAF cannot deliver.
Layer 1: Continuous API Inventory
A discovery engine using Kubernetes telemetry maps service-to-service communication and catches what is actually happening, not just what the spec documents. That includes shadow APIs that nobody formally registered, zombie APIs still defined but inactive, and orphan APIs running with no owner. You cannot defend what you have not found. This is the foundation of runtime API security vs WAF thinking.


Layer 2: Runtime Behavioral Monitoring
The question changes from whether a request matches a known bad signature to whether the traffic looks like how the service is supposed to behave. Traffic metadata sits in a continuous data pipeline that supports empirical baseline analysis. The same data doubles as audit evidence for compliance programs that require continuous monitoring rather than point-in-time configuration snapshots.
Layer 3: Identity-Aware Policy at the Kubernetes Ingress
JWT-based attribution decodes user claims and matches them against policy at runtime. That lets you enforce different rate limits for CIDR-matched internal services versus public internet traffic hitting the same endpoint. Same endpoint, different identities, different enforcement. Supported connectors include Nginx, Nginx Ingress Controller, Istio, AWS API Gateway, and Azure APIM. This is where identity-aware policy actually addresses the API attacks that WAF cannot stop.

Layer 4: CNAPP Correlation
CNAPP correlation is what ties the rest together. API security wired into a CNAPP platform gives you identity context, workload inventory, and visibility into the data stores those APIs actually touch. Locally deployed databases, MCP servers, AI agents, and internal web servers. The same platform that discovered the shadow API tells you what it reads from, what credentials the calling service holds, and whether that privilege is wider than it should be.
The scale of the problem makes this work urgent. More than 50% of recorded cybersecurity exploits in 2024 were API-related, roughly double the 2023 volume, with annual global losses estimated between $35 billion and $87 billion.
Mapping WAF Visibility Gaps To Runtime Security Controls
Each row maps an OWASP API risk to what the WAF can and cannot see, the matching runtime or identity control, and where in the architecture that control runs.
| OWASP API Risk | WAF Visibility | Runtime / Identity Control | Where It Lives |
|---|---|---|---|
| BOLA (A01:2025) | None. Request is syntactically valid. | JWT claim check vs object owner at policy layer | Ingress/service mesh |
| Shadow & Zombie APIs (A02:2025) | None. WAF only sees declared endpoints. | Continuous discovery via Kubernetes telemetry | eBPF / service mesh / API gateway connectors |
| SSRF (A05:2025) | Sees inbound payload only, not the internal hop. | Egress policy and behavioral baseline | Workload runtime |
| Credential stuffing (A07:2025) | Misses low-and-slow patterns spread across IPs. | Identity-aware rate limit and anomaly detection | Ingress with JWT attribution |
| East-west API abuse | Zero. WAF sits at the perimeter. | Service-to-service policy and CNAPP identity context | Service mesh + CNAPP correlation |
Why Compliance Evidence Requires Runtime Telemetry, Not Gateway Logs
When a DORA, GDPR, HIPAA, PCI-DSS, or OWASP audit lands, gateway logs give you partial, point-in-time data: traffic volumes and some error codes. They do not show which APIs were live, which carried PII, which sat unauthenticated, or whether OWASP categories were actively monitored across the audit period. That is the audit question, not a footnote.
Continuous compliance reporting aligned with SOC 2, PCI-DSS, and HIPAA works when the same runtime layer classifies sensitive data in API responses, detects authentication anomalies, and tracks API inventory drift over time. See how AccuKnox CSPM approaches continuous compliance posture. Compliance becomes an output of the security posture rather than a parallel workstream that runs only at audit time.
The Operational Changes API Security Teams Can No Longer Avoid
The instinct to treat API security as a WAF tuning problem is the first thing to walk back. WAF and runtime enforcement both matter, but only inventory and behavioral monitoring scale as the microservice count grows.
The second instinct worth reconsidering is implicit trust inside the cluster. The east-west surface typically carries the most sensitive internal data with the least enforcement. Runtime API visibility needs actual instrumentation, through service mesh integration, eBPF telemetry, or gateway connectors.
That operational work is real. It is also substantially cheaper than finding a shadow API for the first time inside an incident report.
Modern API Defense Requires Runtime-Aware Security Architecture
A WAF is a layer, not a strategy. The modern API security stack is WAF plus gateway plus runtime monitoring plus CNAPP context plus continuous compliance, with each layer doing what it was built for. Teams that build the full stack end up in a different posture than those still tuning WAF rules to catch what a WAF was never designed to catch.
Book a Demo – To get personalized guidance on how you can secure and get full visibility into your API collections and endpoints today

Video: Top API Attacks
For a high-level summary of API capabilities, you can download our API Security Solution Brief (PDF).
FAQs- Common questions about runtime API security and WAF limitations
Can a WAF protect APIs at all?
Yes, for signature-matched threats and basic rate limiting. But it cannot see authorization failures, shadow APIs, or east-west traffic inside the cluster.
What is BOLA and why can WAFs not stop it?
BOLA happens when a valid user accesses another user’s data by changing an object ID. The request looks legitimate to a WAF because authorization logic requires knowing who owns what object.
How does runtime API security discover shadow APIs?
By using Kubernetes telemetry and eBPF to map actual API calls in production, not just what the spec documents. That surface catches endpoints nobody formally registered.
Is runtime API monitoring useful for compliance audits?
Yes. Continuous runtime monitoring produces evidence of active API security posture across the audit period, which is what HIPAA, PCI-DSS, and DORA reviewers actually want to see.
How does CNAPP correlation improve API security?
It connects API activity to workload identity and data store access. If a shadow API reads from a sensitive database, CNAPP tells you what, who called it, and with what privilege.
Get a LIVE Tour
Ready For A Personalized Security Assessment?
“Choosing AccuKnox was driven by opensource KubeArmor’s novel use of eBPF and LSM technologies, delivering runtime security”

Golan Ben-Oni
Chief Information Officer
“At Prudent, we advocate for a comprehensive end-to-end methodology in application and cloud security. AccuKnox excelled in all areas in our in depth evaluation.”

Manoj Kern
CIO
“Tible is committed to delivering comprehensive security, compliance, and governance for all of its stakeholders.”

Merijn Boom
Managing Director




