Subscribe to the Non-Human & AI Identity Journal
Home FAQ Authentication, Authorisation & Trust What do security teams get wrong about the…
Authentication, Authorisation & Trust

What do security teams get wrong about the aud claim in JWTs?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated June 6, 2026 Domain: Authentication, Authorisation & Trust

The most common mistake is treating aud as optional, broadening it to cover many services, or reusing it for roles and permissions. That breaks the recipient check the claim was designed to provide. Audience should identify where the token is valid, while scopes and roles should describe what the token can do.

Why This Matters for Security Teams

The aud claim is a recipient check, not a convenience field. When teams widen it to “any internal service” or repurpose it for authorisation logic, they weaken token boundary enforcement and create accidental trust between systems that should remain separate. That mistake is especially risky in API meshes, brokered integrations, and machine-to-machine flows where a token can be replayed across multiple runtimes. Current guidance from NIST Cybersecurity Framework 2.0 still points teams toward explicit asset and access governance, which is the right mental model here.

The practical concern is that aud misuse often hides in “it works” implementations. A token accepted by too many services may look harmless until one compromised workload can call downstream systems that were never meant to trust that issuer or that audience. In NHI programs, that is a classic boundary failure, and it is often discovered only after logs show the same token being accepted more broadly than intended. Security teams should treat aud as a strict validation control, not a flexible convenience.

For a real-world example of how quickly compromised machine credentials can be abused, the DeepSeek breach shows how exposed secrets and weak trust boundaries can compound rapidly once attackers get a foothold. In practice, many security teams encounter audience confusion only after a token has already been accepted by the wrong service.

How It Works in Practice

In a correct JWT design, the issuer signs the token, the consumer verifies the signature, and the consumer checks whether its own identifier appears in aud. If it does not, the token should be rejected even if the signature is valid. That means the audience value should usually be narrow, stable, and tied to a specific resource server or API boundary. It should not describe user privilege, scope, tenant, or business function. Those concerns belong in separate claims or policy layers.

Security teams usually get better results when they separate three questions:

  • Is this token authentic and unmodified?
  • Was this token issued for this service?
  • What is the caller allowed to do once admitted?

That second question is where aud belongs. The third question belongs in scopes, roles, entitlements, or policy-as-code decisions, ideally evaluated at request time. For identity-heavy environments, this fits the broader direction of the NIST Cybersecurity Framework 2.0 and identity-centric controls in DeepSeek breach lessons: narrow trust, explicit boundaries, and fast revocation when assumptions fail.

Implementation usually means each API or workload has its own audience value, gateway middleware validates it before forwarding, and downstream services do not “inherit” trust from a front door just because they are on the same network. Teams should also watch for token exchange patterns, where a token is intentionally swapped for a new one with a new audience. That is acceptable only when the new token is minted for the next hop and the original token is not being reused broadly. These controls tend to break down when teams centralise auth too aggressively in a shared gateway because the audience check gets diluted into a generic pass-through rule.

Common Variations and Edge Cases

Tighter audience control often increases integration overhead, requiring organisations to balance service isolation against operational simplicity. That tradeoff is real, especially in microservices, partner APIs, and legacy systems where one token may currently reach several consumers.

One common edge case is an API gateway that legitimately fronts multiple back-end services. Best practice is evolving, but current guidance suggests the gateway should not become a reason to skip aud; instead, it should validate the inbound audience and then issue a new token or propagate a new trust context for each downstream hop. Another issue is multi-tenant platforms, where teams try to encode tenant identity into aud. That is usually a design smell. Audience should tell the verifier who the token is for, while tenant and privilege logic should come from dedicated claims and policy evaluation.

Security teams also need to be careful with long-lived service tokens and shared credentials. If one token is accepted by many internal services, a single compromise can fan out quickly. The DeepSeek breach is a reminder that once secrets spread, trust boundaries collapse faster than many teams expect. For governance mapping, NIST Cybersecurity Framework 2.0 remains a solid anchor, but there is no universal standard for every JWT audience pattern yet, so teams should document their own acceptance rules and test them regularly.

Standards & Framework Alignment

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

OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0 and NIST AI RMF set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-07Audience misuse often signals weak token validation and trust-boundary checks.
NIST CSF 2.0PR.AC-4Directly supports least-privilege access decisions for machine-to-machine tokens.
NIST AI RMFHelps govern autonomous token use where runtime context and accountability matter.

Define runtime policy checks so token acceptance and authorisation stay context-aware and aud-specific.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on June 6, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org