TL;DR: Replacing OAuth client secrets with asymmetric key-based assertions and short-lived tokens materially reduces secret exposure and replay risk for machine-to-machine authentication, according to Scramble ID. The remaining failure points are operational ones: clock drift, replay-cache design, and key lifecycle discipline, not the authentication pattern itself.
At a glance
What this is: NHI Mgmt Group's analysis, drawing on Scramble ID's blog post: Secrets-free machine-to-machine authentication replaces shared client secrets with asymmetric client assertions and short-lived tokens, reducing the blast radius of credential leakage.
Why it matters: It matters because IAM and NHI teams need to govern how workloads authenticate without relying on reusable secrets that are easy to leak, hard to scope, and dangerous to replay.
Context
Machine-to-machine authentication is the pattern that lets workloads, APIs, and services prove identity without a human in the loop. The governance problem is that shared secrets behave like durable bearer credentials, so one leak can create broad impersonation risk across environments and teams.
The article frames the practical alternative as asymmetric client authentication with JWT assertions, short-lived tokens, and sender constraints when replay risk is material. For NHI programmes, that shifts control emphasis from secret storage alone to token validation, replay resistance, and key lifecycle discipline.
Key questions
Q: What breaks when machine authentication relies on static secrets?
A: Static secrets break down when they are asked to carry identity, context and lifecycle all at once. They prove possession, not workload provenance, so a stolen key or token can impersonate the application anywhere the verifier accepts it. In distributed systems, that creates secrets sprawl, weak rotation discipline and a large blast radius when credentials leak.
Q: Why do short-lived client assertions and proof-of-possession reduce replay risk?
A: Short-lived assertions narrow the time window in which a captured credential can be reused, while proof-of-possession binds the token to the original caller. Together they turn a stolen token from a reusable bearer artifact into something that is harder to replay outside the intended workload context.
Q: How do security teams know if replay controls are working in M2M authentication?
A: Look for a low rate of jti reuse, stable token mint success, and minimal false replay failures during deploys or node restarts. If those signals move together with clock drift or cache instability, the replay control is too brittle and is probably overfiring against legitimate traffic.
Q: When should organisations choose sender-constraining over bearer tokens?
A: Choose sender-constraining when tokens cross untrusted channels, when regulation demands proof of possession, or when token lifetimes must be long. It is most valuable where a stolen token would otherwise be enough to impersonate the client and reach sensitive APIs.
Technical breakdown
JWT client assertions for M2M authentication
JWT client assertions move machine authentication from shared secrets to asymmetric proof. A workload signs a JWT with its private key, sends it to the OAuth token endpoint, and the server validates signature, audience, expiry, and replay before issuing a short-lived access token. The important distinction is that the private key never leaves the workload boundary, while the public key or trust anchor lets the verifier authenticate the caller without storing a reusable secret. This pattern aligns to OAuth token endpoint use and reduces the value of any single leaked credential. practical implication: Treat assertion signing and verification as the control plane for NHI authentication, not just token issuance.
Practical implication: Validate assertion audience, TTL, and jti uniqueness as first-class authentication controls, not optional hardening.
Replay resistance depends on TTLs, jti, and clock sync
Short-lived assertions only work when replay detection is operationally reliable. The article points to three mechanics: a very short exp, a unique jti checked against a replay cache, and synchronized clocks across signers and verifiers. Without NTP or equivalent time sync, legitimate traffic can look like replay during drift, deploys, or node restarts. That makes replay prevention partly an identity problem and partly an operational one. A replay cache also needs per-client scoping so one client's assertion history does not collide with another's. practical implication: Design replay detection as a distributed control with timing tolerance, not a simple boolean check.
Practical implication: Instrument time sync, cache TTL, and per-client replay scope together or the control will fail under normal drift.
Sender-constrained tokens reduce bearer replay
Bearer tokens remain replayable if an attacker steals them from logs, memory, or intermediaries. Sender-constrained tokens reduce that risk by binding token use to the original client through mTLS or DPoP. mTLS ties the token to a certificate, while DPoP adds proof-of-possession at the application layer. In both cases, the stolen token alone is not enough to succeed. This matters most when token theft is plausible even if client secrets are removed, because the residual failure mode shifts from secret leakage to token replay. practical implication: Add proof-of-possession where token theft would materially change the blast radius of compromise.
Practical implication: Use mTLS or DPoP when downstream token replay would be operationally expensive or security-critical.
Threat narrative
Attacker objective: The attacker wants long-lived impersonation of a workload or service so they can mint valid tokens and act as a trusted non-human client.
- Entry occurs when a reusable client secret is exposed in repos, build logs, vault sprawl, or copied configuration paths.
- Credential abuse follows because the secret can be replayed silently until it is manually rotated, giving the attacker durable impersonation.
- Impact is expanded impersonation of machine-to-machine traffic, with the blast radius determined by how broadly that secret was shared or reused.
Breaches seen in the wild
- Hugging Face Spaces breach 2024: Unauthorised access to Hugging Face Spaces may have exposed secrets users stored for AI apps; tokens were revoked and org tokens removed.
- iOS apps leaking hard-coded secrets: Cybernews found 71% of 156,080 iOS apps leak hard-coded secrets, with open cloud storage and Firebase databases exposing user data.
Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
Client secret blast radius is the real design flaw in legacy M2M authentication. A reusable secret turns every compromise into a broad impersonation problem because the same credential often survives across logs, replicas, and environments. The important shift is not just secrecy, but scope: one credential should not be able to authenticate an entire workload estate. Practitioners should judge M2M schemes by how much damage a single credential leak can do.
Proof-of-possession changes the failure mode from stolen token equals access to stolen token is insufficient. mTLS and DPoP do not eliminate compromise, but they remove the bearer property that makes replay so efficient. That matters because machine tokens are often observed in places operators do not fully control, including proxies and debug traces. The governance implication is that bearer semantics are too weak whenever token theft is a realistic operating assumption.
Replay prevention is an operational control, not just a protocol claim. The article's emphasis on TTLs, jti uniqueness, cache design, and clock synchronisation shows that trust in M2M auth is only as strong as the systems around it. An assertion model that is correct on paper still fails if replay windows widen under drift or cache loss. Practitioners should treat issuance-time validation, not downstream inspection, as the decisive control point.
Secret-free M2M should be understood as a blast-radius reduction pattern, not a full trust model. Asymmetric assertions remove the most fragile credential class, but they do not remove lifecycle work, revocation discipline, or downstream authorization design. That makes the named concept here clear: client secret blast radius is the amount of identity damage one leaked secret can cause, and the goal is to shrink it until compromise becomes locally containable. Teams should redesign for containment, not just authentication.
Standards-based M2M authentication is becoming the default baseline for machine identity governance. RFC 7523, sender-constrained tokens, and short-lived credentials show that the market is converging on explicit proof rather than stored secrets. That does not remove the need for lifecycle controls, but it does mean governance teams can no longer treat static client secrets as an acceptable steady state. Practitioners should plan for systems where secretless authentication is the assumption, not the exception.
What this signals
Client secret blast radius: machine authentication should now be evaluated by how much damage one leaked credential can cause, not by whether the login flow works. If a single secret can impersonate multiple workloads, the identity model is still too permissive for modern NHI governance.
Clock discipline is part of identity assurance for M2M systems. Tight TTLs and replay checks become unreliable if signers and verifiers drift, which is why operational controls around time synchronisation belong in the authentication architecture, not in a separate platform checklist.
For practitioners
- Replace shared client secrets Move high-value workloads to asymmetric client authentication with JWT client assertions so the private key stays with the workload and the server validates signature, audience, TTL, and replay before minting tokens.
- Shorten assertion lifetimes Set assertion exp values in the tens of seconds, enforce unique jti values, and store replay markers with a TTL that matches the assertion's usable lifetime plus a small leeway.
- Synchronize workload clocks Require NTP or an equivalent time source for every signer and verifier, including container hosts, so tight TTLs do not create false replay failures during normal operations.
- Bind tokens to the caller Use mTLS or DPoP when stolen tokens would materially increase risk, because proof-of-possession blocks replay even if an access token is intercepted.
- Separate rotation from revocation Keep old and new key pairs in a controlled overlap window during rotation, but force emergency revocation and re-provisioning when compromise is suspected.
Key takeaways
- Client secrets create a large and persistent attack surface in machine-to-machine authentication because one leak can impersonate a workload across multiple environments.
- The article's core control shift is from reusable shared secrets to asymmetric client assertions, short-lived tokens, and caller-bound proof.
- Teams should treat replay resistance, clock sync, and key lifecycle discipline as part of the authentication design rather than after-the-fact hardening.
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 and MITRE ATT&CK address the attack and risk surface, while NIST SP 800-53 Rev 5 sets the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-02 — Secret Leakage | The article centers on leaked client secrets and how to remove them from M2M authentication. |
| NHI-04 — Insecure Authentication | JWT assertions and sender constraints are discussed as the safer authentication pattern for workloads. | |
| NHI-07 — Long-Lived Secrets | The article explicitly argues for short-lived tokens instead of durable shared credentials. | |
| Recommendation — Eliminate reusable client secrets and monitor for secret leakage across repos, logs, and vaults. Use asymmetric assertions and proof-of-possession to harden NHI authentication flows. Replace long-lived M2M secrets with short-lived credentials and enforce tight expiry windows. | ||
| NIST SP 800-53 Rev 5 | IA-5 — Authenticator Management | Authenticator lifecycle, rotation, and revocation are central to the article's runbook guidance. |
| Recommendation — Manage workload authenticators with rotation, revocation, and validation rules that limit reuse. | ||
| MITRE ATT&CK | TA0006 — Credential Access | The threat pattern is credential theft followed by replayable impersonation of machine identities. |
| Recommendation — Map leaked client secrets to TA0006 and prioritise detection for credential exposure and reuse. | ||
Key terms
- Client Assertion: A client assertion is a signed proof that the caller is the intended application or workload. It strengthens machine authentication by binding the request to cryptographic evidence rather than simple token possession. That makes it useful where replay risk or privileged access would be unacceptable.
- Sender-constrained token: A sender-constrained token is tied to a specific client or cryptographic proof, rather than being usable by anyone who steals it. This reduces replay risk and is especially important where tokens can reach automation, services, or agents with broad API access.
- Replay cache: A replay cache stores recently seen assertion identifiers so the same signed request cannot be accepted twice. For non-human identities, it is a control that converts valid cryptographic proof into one-time use authorisation, provided the cache window matches the assertion lifetime.
- Proof-of-Possession: Proof-of-possession binds a token or credential to a specific key so possession of the token alone is not enough to use it. For AI agents, it reduces replay risk and helps ensure that an intercepted credential cannot be reused by a different actor.
Deepen your knowledge
NHI governance, agentic AI identity, and machine identity lifecycle are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building or maturing an IAM programme, it is worth exploring.
Published by the NHIMG editorial team on June 22, 2026.
Updated on October 11, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org