Subscribe to the Non-Human & AI Identity Journal

What breaks when API security depends only on gateways and WAFs?

Teams lose visibility into business logic abuse, object-level authorisation failures, and low-and-slow reconnaissance that looks legitimate at the transaction layer. Gateways and WAFs still have value, but they cannot reliably judge intent, object ownership, or whether a valid session is being used outside its intended scope. That leaves a major gap in runtime control.

Why This Matters for Security Teams

Gateways and WAFs are valuable enforcement points, but they only see part of the picture. They are strong at filtering known bad traffic, normalising protocol handling, and blocking obvious attack patterns, yet they rarely understand whether a request is allowed for a specific user, object, or action. That matters because modern API abuse often looks “valid” at the transport layer while violating business rules or object-level authorisation.

This is why the issue sits at the intersection of application security, identity, and runtime governance. A security team that treats perimeter inspection as the primary API control often misses broken object level authorisation, excessive data exposure, and misuse of legitimate tokens. Current guidance from NIST Cybersecurity Framework 2.0 reinforces that protective controls need to be risk-based and mapped to the actual asset and threat surface, not only to network entry points. In API environments, that means understanding who or what is calling, what it is trying to do, and whether that action is permitted in context. In practice, many security teams encounter API abuse only after data has already been enumerated or exfiltrated, rather than through intentional control design.

How It Works in Practice

Operationally, gateway and WAF controls should be treated as one layer in a broader control stack, not the decision point for every API request. They can enforce schema checks, rate limits, IP reputation, bot filtering, and coarse authentication checks. They cannot reliably validate whether a requestor should access a particular record, invoke a sensitive function, or reuse a session token beyond its intended scope.

Effective api security usually needs three additional capabilities:

  • Fine-grained authorisation at the application or service layer, so object ownership and action scope are checked against the current user or workload context.
  • Identity-aware telemetry, so access decisions can be tied to human identities, service identities, and Non-Human Identity credentials where APIs are machine-driven.
  • Runtime detection, so anomalous transaction patterns, enumeration behaviour, and policy bypass attempts are surfaced even when the request syntax is clean.

This is where concepts from OWASP API Security Top 10 and broader control design matter. Broken Object Level Authorization, broken authentication, and excessive data exposure are not solved by blocking payloads alone. They require server-side checks on every sensitive action, consistent token validation, and logging that captures the business object being accessed, not just the endpoint path. For environments with automation or AI-assisted workflows, there is a growing need to also govern the identities of agents and services that call APIs, because a valid token issued to a trusted workload can still be abused if its scope is too broad.

At the monitoring layer, teams should correlate gateway logs with application logs, identity events, and response data patterns. That gives defenders a better chance of spotting low-and-slow reconnaissance, privilege probing, and misuse of legitimate sessions. The CISA guidance on web application security is useful here because it reflects the practical reality that control depth must extend beyond edge filtering into application behaviour. These controls tend to break down when APIs are highly distributed across microservices and event-driven components because ownership checks and telemetry become inconsistent across service boundaries.

Common Variations and Edge Cases

Tighter gateway and WAF enforcement often increases engineering overhead, requiring organisations to balance easier perimeter control against the cost of deeper application instrumentation. That tradeoff becomes sharper in API-heavy estates where teams want fast delivery, shared services, and reusable tokens.

There is no universal standard for this yet, but current guidance suggests that the more business-critical the API, the less acceptable it is to rely on perimeter controls alone. Public APIs, partner APIs, and internal service-to-service APIs each need different policy depth. A public endpoint may need stronger abuse detection and schema enforcement, while an internal API may need stricter service identity controls and narrower token scopes. For API ecosystems that support automation or agentic workflows, the intersection with NHI becomes important: the calling workload should have an identifiable, least-privilege identity and a traceable purpose.

Edge cases also appear when traffic is encrypted end-to-end and the gateway cannot inspect meaningful content, when a single frontend token fans out to multiple backend services, or when authorisation logic is spread across legacy and modern components. In those situations, better practice is to add application-side policy checks, fine-grained audit logging, and continuous testing for object-level access failures. The OWASP Top 10 remains useful for framing the broader risk model, but API teams should translate it into endpoint-specific and object-specific controls rather than assuming a perimeter device can enforce intent.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Agentic AI Top 10, OWASP Non-Human Identity Top 10 and MITRE ATT&CK address the attack and risk surface, while NIST CSF 2.0 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
NIST CSF 2.0 PR.AC-4 API access must be authorised by context, not just network location or valid transport.
OWASP Agentic AI Top 10 Agentic and automated API callers need scoped identity and runtime guardrails.
OWASP Non-Human Identity Top 10 Machine-to-machine API access depends on Non-Human Identity governance and token hygiene.
NIST Zero Trust (SP 800-207) Zero Trust requires per-request verification instead of trusting gateway position.
MITRE ATT&CK T1190 API abuse often starts with exposure and exploitation of internet-facing application logic.

Treat autonomous API callers as governed identities with explicit scope, logging, and policy checks.