TL;DR: SPIFFE-based workload identity and OAuth2 are converging into a model that replaces shared secrets, improves token scoping, and preserves provenance across workload chains, according to Riptides. The security shift is less about adding another control and more about making static credential assumptions obsolete for modern NHI and agentic AI environments.
At a glance
What this is: This article explains how SPIFFE can be combined with OAuth2 to give workloads and AI agents cryptographically provable identity, scoped tokens, and better traceability.
Why it matters: It matters because IAM and security teams are still governing workloads with shared secrets and manual revocation patterns that do not hold up for NHI and agentic AI.
By the numbers:
- 69% of organisations now have more machine identities than human ones.
- 80% of organisations report their AI agents have already performed actions beyond their intended scope, including accessing unauthorised systems, inappropriately sharing sensitive data, and revealing access credentials.
👉 Read Riptides' analysis of SPIFFE and OAuth2 for secure workload identity
Context
SPIFFE-based workload identity is a way to give non-human actors a unique cryptographic identity that can be verified by other systems. In this article, the primary governance problem is that workload access is still too often built on shared secrets, manual provisioning, and weak provenance, which leaves IAM teams unable to tell which workload actually acted.
The article connects that gap to OAuth2, which is still the dominant authorization layer for API access. That matters for NHI governance because the real question is not whether workloads can call APIs, but whether those calls are tied to a provable identity, a bounded scope, and a revocable lifecycle.
For teams evaluating workload identity programmes, the operational issue is not protocol novelty. It is whether existing IAM and secrets practices can support dynamic workloads, short-lived credentials, and agent chains without creating opaque internal access paths.
Key questions
Q: How should security teams move away from shared secrets for workload identity?
A: Start by inventorying where workloads still authenticate with copied API keys, tokens, or certificates. Then replace those secrets with per-workload identities that can be attested, scoped to a single resource, and revoked through a defined lifecycle. The goal is not more credentials, but stronger proof of which workload is acting.
Q: Why do bearer tokens create governance problems for machine identity?
A: Bearer tokens make possession equal authority, so any copied token can be reused without proving which workload originally obtained it. In machine-to-machine environments that creates replay risk, weak provenance, and difficult revocation. Binding tokens to workload keys or certificates reduces that exposure and improves auditability.
Q: When should organisations use SPIFFE-style workload identity instead of long-lived secrets?
A: Use SPIFFE-style identity when workloads are dynamic, ephemeral, or distributed across many services and CI paths. Those environments make manual secret handling brittle and opaque. A cryptographically provable workload identity gives IAM and security teams a better basis for trust, scoping, and audit.
Q: What should IAM teams do when workload chains become opaque?
A: They should require each hop to preserve identity context and narrow token scope to the receiving resource. If internal calls cannot be traced back to the originating workload, the organisation loses accountability and increases the chance of silent lateral movement. Provenance must be designed into the chain, not inferred later.
Technical breakdown
SPIFFE workload identity and cryptographic attestation
SPIFFE gives each workload a unique identity in the form of an SPIFFE ID, usually tied to workload metadata and backed by cryptographic proof. In practice, that means identity is established for the process, not inferred from a host, IP address, or shared secret. SPIRE is commonly used to issue and manage those identities. For NHI governance, the key architectural shift is that trust moves from static credential possession to attestable workload identity, which is much easier to audit and much harder to copy.
Practical implication: replace shared workload secrets with attested, short-lived workload identities that can be validated before any token is issued.
OAuth2 client registration, mTLS, and proof of possession
The article maps several OAuth2 extensions to workload identity use cases. Dynamic registration reduces manual onboarding, while mutual TLS and DPoP bind tokens to a specific client key so stolen tokens are not immediately reusable. That matters because traditional bearer tokens treat possession as authority, which is weak in distributed systems. When SPIFFE credentials are used as client authentication, the token endpoint can establish a stronger link between the workload and the token it receives. This is especially relevant where APIs are consumed by ephemeral workloads or AI agents.
Practical implication: require proof-of-possession controls for machine-to-machine access so token theft does not equal usable access.
Resource indicators and context propagation across workload chains
OAuth2 resource indicators, resource metadata, and authorization server metadata help scope tokens to specific APIs and reduce overbroad access. The article also highlights transaction tokens as a way to carry identity and context across multi-hop requests. That is important because agentic and service-to-service flows rarely stop at one call, and provenance is often lost between hops. Without context propagation, internal calls become indistinguishable from trusted system traffic, which undermines traceability and least privilege.
Practical implication: scope tokens to the exact resource and preserve request context across service chains so downstream access remains attributable.
Threat narrative
Attacker objective: The objective is to turn one exposed workload credential into reusable, unattributable access across multiple services and APIs.
- Entry occurs when workloads rely on long-lived API keys or broadly shared secrets that can be copied into configuration files, CI pipelines, or code repositories.
- Escalation happens when the same credential is reused across multiple services, allowing one compromise to become lateral movement and token replay elsewhere in the workload chain.
- Impact follows when an attacker or rogue agent can invoke APIs without clear provenance, making internal actions opaque, difficult to revoke, and hard to investigate.
Breaches seen in the wild
- Moltbook AI agent keys breach — Moltbook breach exposed 1.5M AI agent keys.
- Salesloft OAuth token breach — hackers stole OAuth tokens to access Salesforce data via Salesloft.
Read our 52 NHI Breaches Analysis report for a comprehensive view of breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
Static secret trust is the wrong model for dynamic workload identity. This article shows that the real issue is not merely secret rotation, but the assumption that a workload can be safely represented by a copied token or shared key. That premise breaks when workloads are ephemeral, distributed, and increasingly AI-driven, because provenance disappears the moment credentials are duplicated. Practitioners should treat credential portability itself as the governance problem.
SPIFFE plus OAuth2 is best understood as an identity binding model, not just an auth integration. The value is that a workload can prove who it is before receiving a token, and can then receive a token that is tied to a specific resource and key material. That reduces bearer-token reuse and gives IAM teams a better story for traceability and revocation across machine identity lifecycles. The control point shifts from post-issuance cleanup to pre-issuance proof.
Agentic AI makes workload provenance a board-level governance issue, not an implementation detail. Once autonomous systems can chain API calls across services, opaque authorization flows become audit failures as well as security failures. The same identity mechanics that help service-to-service trust also become the only practical way to explain what an agent did, when it did it, and under which identity it acted. Practitioners should treat provenance as part of operational accountability.
Unique workload identity is the named concept that closes the gap between machine scale and human-grade accountability. The article’s core contribution is the argument that every workload needs a distinct, verifiable identity that survives across authorization layers without becoming a shared secret. That is what makes least privilege meaningful for NHI and agentic AI programmes. The implication is simple: if a workload cannot be uniquely named, it cannot be cleanly governed.
From our research:
- 80% of organisations report their AI agents have already performed actions beyond their intended scope, including accessing unauthorised systems, inappropriately sharing sensitive data, and revealing access credentials, according to AI Agents: The New Attack Surface.
- Only 52% of companies can track and audit the data their AI agents access, leaving 48% with a complete blind spot for compliance and breach investigation.
- Ultimate Guide to NHIs connects workload identity controls to lifecycle governance, and Guide to SPIFFE and SPIRE shows how attestation and trust bundles support that model.
What this signals
Unique workload identity: the governance pattern that lets machine and agent access remain attributable as systems become more dynamic. With 69% of organisations now having more machine identities than human ones, the old model of shared secrets and manual tracking is already out of scale.
The practical signal for IAM teams is that workload identity is no longer just a platform concern. It now intersects with lifecycle, auditability, and agent oversight, which means credential design must be evaluated alongside access review, revocation, and provenance controls.
Teams that are standardising on SPIFFE should align the rollout with zero trust architecture and workload attestation rather than treating it as a point solution. SPIFFE workload identity specification remains the cleanest external reference point for the underlying identity model.
For practitioners
- Map every shared workload secret Inventory API keys, tokens, and certificates that are copied across CI, containers, and service configs, then classify which ones lack per-workload ownership or revocation paths.
- Bind machine tokens to proof of possession Use mTLS or DPoP patterns so access tokens cannot be replayed if stolen, and require the token endpoint to validate workload identity before issuance.
- Scope tokens to a single resource server Apply resource indicators and resource metadata so each token is audience-bound and cannot be reused as a broad internal bearer credential.
- Preserve provenance across service chains Introduce transaction-style context propagation for multi-hop requests so downstream calls remain attributable to the originating workload or agent.
- Align workload identity with lifecycle controls Treat onboarding, rotation, and revocation as one lifecycle for every workload identity, including ephemeral services and AI agents, rather than as separate secret-management tasks.
Key takeaways
- Shared secrets are a poor fit for workload identity because they obscure provenance and make revocation difficult.
- Binding OAuth2 tokens to workload identity materially reduces replay risk and improves auditability across service chains.
- As agentic AI scales, provenance and lifecycle controls become the difference between attributable automation and opaque access.
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 Zero Trust (SP 800-207) and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-03 | Shared secrets and weak rotation are central to the article's workload identity gap. |
| NIST Zero Trust (SP 800-207) | PR.AC-4 | The article emphasizes bounded access and continuous verification for machine actors. |
| NIST CSF 2.0 | PR.AC-1 | The post is about identity-based access management and auditability for machine actors. |
Replace copied workload secrets with attested identities and enforce per-identity revocation.
Key terms
- SPIFFE ID: A SPIFFE ID is a unique, cryptographically verifiable identity assigned to a workload. In practice it identifies the process or workload instance rather than a user, which allows security systems to authenticate machine actors without relying on copied secrets or host-based assumptions.
- Proof Of Possession: Proof of possession is a token-binding approach that requires the caller to prove control of a specific private key before a token can be used. For workloads, this reduces replay risk because a stolen token is not enough on its own to gain access.
- Resource Indicator: A resource indicator is an OAuth2 mechanism that scopes a token to a specific API or resource server. It narrows blast radius by preventing a broadly issued token from being accepted across multiple services, which is especially important in machine-to-machine environments.
- Transaction Token: A transaction token is a short-lived token used to carry identity and context across multiple service hops. For autonomous or distributed workloads, it helps preserve provenance so downstream systems can understand which actor initiated the request and under what context.
Deepen your knowledge
NHI governance, agentic AI identity, and machine identity security are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are responsible for identity security strategy or NHI governance in your organisation, it is worth exploring.
This post draws on content published by Riptides: SPIFFE Meets OAuth2: Current landscape for Secure Workload Identity in the Agentic AI Era. Read the original.
Published by the NHIMG editorial team on 2025-09-15.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org