Subscribe to the Non-Human & AI Identity Journal

Broken Authentication

Broken authentication is a failure in how a system proves that a caller is who or what it claims to be. For APIs, that often means weak token handling, replayable credentials, or poor validation of delegated access, which allows unauthorised callers to act as trusted integrations.

Expanded Definition

Broken authentication describes a failure in how a system establishes and protects identity assertions for a caller. In NHI and API environments, the weakness often sits in token issuance, token validation, session handling, secret storage, or delegated access checks rather than in the application’s business logic.

Definitions vary across vendors, but the operational meaning is consistent: if an attacker can replay a token, abuse a long-lived API key, or bypass audience and issuer validation, the system is treating an untrusted caller as a trusted integration. That is why broken authentication overlaps with credential theft, secret leakage, and poorly governed machine-to-machine trust, but it is not the same as general access control failure. The scope also extends to service accounts and agents that authenticate automatically and may hold persistent privileges.

For a standards lens, the NIST Cybersecurity Framework 2.0 frames authentication as part of dependable access control and continuous protection, but it does not prescribe one universal implementation pattern for APIs or NHIs. The most common misapplication is assuming a valid token alone proves legitimacy, which occurs when audience, expiry, revocation, and binding checks are not enforced.

Examples and Use Cases

Implementing authentication rigorously often introduces operational friction, requiring organisations to weigh stronger caller assurance against the cost of rotation, revocation, and tighter validation logic.

  • A service account uses a static API key stored in CI/CD, and a leaked build log allows an attacker to call internal endpoints as a trusted workload.
  • An access token is accepted after its intended lifetime because the resource server does not check expiry, issuer, or audience claims consistently.
  • An integration trusts inbound requests from an AI agent without verifying the agent’s delegated scope, creating a path for privilege abuse through a compromised toolchain.
  • Teams centralise secrets in a vault, but misconfigured retrieval permissions let unrelated workloads mint or reuse credentials they should never see, a pattern documented in the Ultimate Guide to NHIs.
  • Short-lived tokens are issued correctly, but downstream services fail to honour revocation signals, so a stolen credential remains usable until expiry.

The problem is closely related to guidance in the NIST Cybersecurity Framework 2.0, especially where continuous verification is expected across distributed services.

Why It Matters in NHI Security

Broken authentication is one of the fastest ways for an attacker to turn a small secret exposure into broad infrastructure access. NHI Management Group research shows that 80% of identity breaches involved compromised non-human identities such as service accounts and API keys, and only 20% of organisations have formal processes for offboarding and revoking API keys, which makes weak authentication handling especially dangerous.

In practice, the impact is not limited to account takeover. Once an attacker can impersonate a workload, they can pivot into data stores, deployment pipelines, message queues, and management planes while appearing to be normal automation. That is why the issue often sits at the centre of NHI governance, Zero Trust design, and incident response. The Ultimate Guide to NHIs also notes that 90% of IT leaders say properly managing NHIs is essential for a successful zero-trust implementation, which makes authentication integrity a foundational control rather than a narrow application concern. Organisations typically encounter the consequences only after a token theft, secrets leak, or automation abuse incident, at which point broken authentication becomes operationally unavoidable to address.

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 Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-01 Broken auth maps to weak NHI authentication and token validation paths.
NIST CSF 2.0 PR.AA-1 Identifies and authenticates users, devices, and software services before access.
NIST Zero Trust (SP 800-207) AC-1 Zero Trust requires explicit verification of each access request.

Treat every API call as untrusted until identity, context, and policy are validated.