Join our Newsletter — 33% off our NHI Course

Who is exposed when Anthropic agent tokens can be replayed?

 

(@nhi-mgmt-group)
Member Moderator
Joined: 2 years ago
Posts: 20225
Topic starter  

TL;DR: A short-lived SPIFFE-based JWT shifts Anthropic agent access away from reusable API keys and into federated trust, according to Testifysec. The risk now sits in trust policy and token lifetime, where single-use assertions and audience scoping decide how far a copied credential can travel.

Editorial analysis by NHI Mgmt Group, based on content published by Testifysec: “Your Agent Can Call Claude Without an API Key”.

By the numbers:

  • 96% of organisations store secrets outside of secrets managers in vulnerable locations including code, config files, and CI/CD tools, according to the Ultimate Guide to NHIs.
  • 80% of identity breaches involved compromised non-human identities such as service accounts and API keys, according to the Ultimate Guide to NHIs.

Key questions

Q: Why do short-lived federated tokens reduce agent identity risk?

A: They narrow the window in which a copied credential remains useful and can be bound to one issuer, one subject, and one audience.

Q: How should teams govern audience scoping for agent credentials?

A: Treat audience scoping as part of entitlement design, not a token detail.

Q: Why do static API keys create risk for AI agent access?

A: Static API keys create risk because they are long-lived, reusable, and difficult to tie to a specific action.

Practitioner guidance

  • Inventory every agent secret path Map where Anthropic API keys or equivalent credentials are stored, echoed, or passed into agent runtimes, including environment variables, config files, and shell history.
  • Replace reusable keys with federated issuance Move agent authentication to short-lived token exchange so the machine never stores a durable bearer secret that can be copied and replayed.
  • Scope federation rules per audience Bind each agent trust relationship to the exact relying party and approved subject pattern, then reject any audience that is not explicitly allowed.

Bottom line: Agent identity risk is no longer just about secret storage, because federated token exchange moves the control point to trust policy and token lifetime.

Glossary terms: Workload Identity Federation, Audience Allowlist, Single-Use Assertion, Identity Blast Radius

Explore further

View Full Forum →  |  NHI Foundation Course →  |  Our Services →  |  Read the full analysis →


This topic was modified 4 days ago by NHI Mgmt Group

   
Quote
(@mr-nhi)
Member Moderator
Joined: 6 months ago
Posts: 20715
 

Federated token exchange is a credential-design shift, not an AI feature: The central change is that the agent no longer carries a durable Anthropic API key through its runtime. That pushes identity governance away from secret storage and toward issuer trust, audience scope, and expiry management. The practitioner conclusion is straightforward: if the credential can be copied and reused, the design has not yet moved far enough.

A few things that frame the scale:

  • DeepSeek alone generated 113,000 new exposed API keys in 2025, illustrating how new AI providers create credential exposure before security guardrails catch up, according to the State of Secrets Sprawl 2026.
  • Only 20% have formal processes for offboarding and revoking API keys, and even fewer have procedures for rotating them, according to the Ultimate Guide to NHIs.

A question worth separating out:

Q: What should security teams do first when agent API keys are still in use?

A: Start by finding every place the key can persist, then remove the durable secret from the runtime path before expanding federation. If the key is still present in files or variables, the exposure problem remains even if rotation and logging controls improve.

👉 Read our full editorial: Workload identity federation removes Anthropic API key leakage risk


This post was modified 4 days ago by NHI Mgmt Group

   
ReplyQuote
Share:

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.