By NHI Mgmt Group Editorial TeamBased on Palo Alto Networks: “Secrets, Out: Why Workload Identity Is Essential for AI Agent Security” (October 24, 2025)

TL;DR: AI agents and machine identities are scaling faster than static secrets and human-centric IAM can govern, with workloads now appearing and disappearing too quickly for manual credential handling, according to Palo Alto Networks' analysis. Workload identity makes identity the control point, but practitioners still need lifecycle discipline, least privilege, and traceability to prevent blast-radius expansion.


At a glance

What this is: This is an argument for workload identity as the authentication model for AI agents, with the key finding that static secrets and human-centred IAM cannot keep pace with machine-speed, ephemeral execution.

Why it matters: IAM, PAM, and NHI teams need to treat AI agents as distinct non-human actors with their own lifecycle, because shared secrets and borrowed human credentials erase traceability and expand blast radius.

By the numbers:

  • Machine identities now outnumber humans by more than 80 to 1 in today’s networks.

Context

Workload identity is the discipline of giving a workload its own verifiable identity instead of relying on shared secrets, borrowed human credentials, or long-lived certificates. In this article, that matters because AI agents are operating at machine speed, making access decisions and triggering actions faster than manual review cycles can respond.

The governance gap is not that AI agents exist. It is that many identity programmes still assume access is stable, reviewable, and owned in a human-paced lifecycle. Once workloads appear and disappear in milliseconds, that assumption stops holding and the control point has to move to issuance and runtime authentication.


Key questions

Q: What breaks when AI agents rely on static secrets?

A: Static secrets break the trust model because they are reusable, portable, and often broader than the task requires. In an agent workflow, that can expose more systems than intended and make it difficult to prove why access was granted. Short-lived, brokered credentials are a better fit for runtime decision-making.

Q: Why do workload identity standards matter more as AI agents proliferate?

A: Workload identity standards matter because they create a common way to prove identity across services and agents without relying on shared secrets or one-off integrations. As AI agents proliferate, the bigger challenge shifts to controlling what those identities can do after authentication. Standards reduce identity chaos, but governance still has to manage privilege and behaviour.

Q: How should security teams reduce the blast radius of AI agents without assuming authorization alone is enough?

A: Security teams should treat agent permissions as necessary but insufficient. Limit the agent to the smallest practical identity, tool set, and data scope, then add controls that observe what the agent actually does across a session. The key is to separate legitimate actions from coerced sequences, because every individual call may be allowed while the overall chain still causes data loss or policy abuse.

Q: What should teams do first when machine identities outnumber human accounts?

A: Start with an inventory of all machine identities, then rank them by business criticality and credential lifetime. That gives you a practical way to target the highest-risk secrets and certificates first, instead of trying to remediate the entire estate at once.


Technical breakdown

Why static secrets fail for AI agents

Static secrets such as API keys, tokens, and long-lived certificates do not encode workload context. They can be copied into repositories, pasted into chat tools, or reused after the workload that was meant to hold them has disappeared. In cloud-native and agentic environments, that means identity becomes detached from runtime state. When the secret is the only proof, security teams lose ownership, purpose, and revocation precision. Rotation helps only if inventory is complete and lifecycle state is known, which is often not the case once secrets sprawl across pipelines, clusters, and repos.

Practical implication: move AI agent authentication away from reusable secrets and toward workload-bound identities with explicit lifecycle ownership.

How workload identity changes the trust model

Workload identity ties authentication to the workload itself rather than to a shared credential. Standards such as SPIFFE issue cryptographic identities that are born, verified, and retired with the workload, so each agent or machine can be distinguished at request time. That turns identity into a runtime control point instead of a static configuration artifact. It also enables continuous trust decisions, because authorization can follow the workload’s current identity and context rather than a stale key that outlives the actor that used it.

Practical implication: use short-lived, cryptographically verifiable workload identities so access decisions reflect the live actor, not an inherited credential.

Why AI agents change the blast radius problem

AI agents are not just more instances of traditional workloads. They are non-deterministic actors that can chain tools and services in real time, which means privilege can expand faster than human operators can intervene. A unique identity per agent creates traceability, but it also becomes the basis for containment when an agent behaves unexpectedly. Without that distinction, shared credentials make attribution weak and revocation blunt, which increases the likelihood that one compromised or misbehaving agent affects multiple services at once.

Practical implication: assign each agent a distinct identity and use that identity as the revocation and containment boundary.


Threat narrative

Attacker objective: The objective is to use reusable machine credentials to obtain durable, hard-to-attribute access that can be scaled across cloud and AI workflows.

  1. Entry occurs through static secrets, shared human credentials, or orphaned tokens that remain usable after the workload context has changed.
  2. Credential abuse follows when an AI agent or attacker reuses the secret to act without a workload-bound identity check.
  3. Impact expands as the credential is used to trigger cloud resources, access data, or chain actions across multiple services without precise attribution.
  • Kubeflow cryptomining attacks 2020: Exposed Kubeflow dashboards and a notebook's mounted Kubernetes service account let attackers run cryptominers on tens of ML clusters.
  • ASP.NET machine key attacks 2025: Developers copied ASP.NET machine keys from public sources; attackers used one to run Godzilla via ViewState. Microsoft found 3,000+ such keys.

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

Static secrets are now a lifecycle failure, not just a credential failure. The problem is not merely that API keys and long-lived certificates can leak. It is that they outlive the workload state they were meant to represent, so ownership, purpose, and revocation become ambiguous. Once secrets are copied into repositories, chat tools, and pipelines, they stop behaving like controlled authenticators and start behaving like reusable attack material. Practitioners should treat secret persistence as a governance defect in the NHI lifecycle.

Workload identity is the right control point for agentic access because it restores runtime truth. When an AI agent can chain tools, trigger resources, and act without waiting for human approval, the security model must identify the actor at the moment of execution. That makes the control problem about issuance, verification, and retirement, not just storage. The practical implication is that machine identity governance has to move from periodic review to live authentication boundaries.

Identity blast radius is the concept this article sharpens. AI agents increase the distance between a credential and the actions it can trigger, which means one reused secret can affect many workflows at once. That is a governance problem because attribution, containment, and offboarding all become weaker as credentials are shared or orphaned. Teams should define blast radius by identity scope, not by the number of systems a secret happens to reach.

Human-centric IAM assumptions fail when the subject is a workload, not a person. Human IAM assumes predictable lifecycle checkpoints, known owners, and review cycles long enough for access to be observed. AI agents and machines do not fit that cadence because they appear, act, and disappear too quickly for post-hoc certification to be reliable. The implication is that workload identity governance must be built as a separate discipline, even if it uses the same broader identity operating model.

AI agent security is converging on identity governance, not just threat prevention. The article reflects a broader market shift: practitioners are being pushed to secure agent execution through identities that can be issued, traced, and retired with precision. That aligns NHI governance, secrets management, and agentic AI controls around one question: who or what is acting right now? The practical conclusion is that identity teams need to own agent trust, not leave it to application teams.

From our research library:

What this signals

Identity blast radius: AI agent programmes fail fastest when teams measure access by what a secret can unlock instead of what a workload identity can contain. Once an agent can trigger cloud actions, data access, and tool calls in one chain, the control objective shifts to precise issuance and precise revocation, not just password or key rotation.

The operational signal to watch is whether your identity programme can still answer who acted, with what scope, and under which lifecycle state when the actor is an agent. If that answer depends on manual log stitching, the programme has already fallen behind the environment it is meant to govern. Related guidance on workload identity and SPIFFE helps when you need the implementation path, but the governance question remains the same: can you bound the actor at runtime?


For practitioners

  • Treat every AI agent as a distinct workload identity Assign each agent a unique, cryptographically verifiable identity instead of reusing human credentials or shared tokens.
  • Replace static secrets with short-lived issuance Reduce dependence on API keys, tokens, and long-lived certificates by issuing credentials that expire with the workload session.
  • Make identity the revocation boundary Design containment so you can revoke a single agent’s identity without breaking unrelated workloads or hiding attribution gaps.
  • Inventory workload ownership and context Record who owns each machine or agent identity, what it is allowed to do, and when it should be retired.
  • Audit for secret sprawl in code and chat Search repositories, pipelines, and collaboration tools for reusable secrets that can outlive the workload they were meant to protect.

Key takeaways

  • AI agents expose a governance gap in which static secrets persist after the workload context that created them has changed.
  • Palo Alto Networks says machine identities now outnumber humans by more than 80 to 1, which makes manual credential handling structurally fragile.
  • The control that matters most is workload identity with short-lived, uniquely scoped credentials and revocation tied to the live actor.

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

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-02 — Secret LeakageThe article centres on leaked and reusable API keys, tokens, and certificates.
NHI-07 — Long-Lived SecretsLong-lived secrets are the core failure mode the article argues cannot scale for agents.
NHI-10 — Human Use of NHIThe article warns against borrowing human credentials for AI agents and bots.
Recommendation — Scan for exposed secrets and revoke any reusable credential that can outlive its workload. Replace long-lived machine secrets with short-lived credentials tied to workload lifecycle. Stop sharing human accounts with agents and issue each workload its own identity.
MITRE ATT&CKTA0006 — Credential AccessThe attack path described begins with secret abuse and token reuse.
Recommendation — Map secret reuse to credential-access risk and prioritise exposed API keys for revocation.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsThe article is fundamentally about identity-aware authorisation for ephemeral workloads.
Recommendation — Apply PR.AA-05 to bind permissions to each agent’s live identity and scope.
NIST Zero Trust (SP 800-207)Continuous Verification — Continuous VerificationThe article argues for runtime proof of identity rather than trust in static secrets.
Recommendation — Use continuous verification so access is granted from current workload identity, not stale credentials.

Key terms

  • Workload Identity: The identity assigned to a software workload, such as a containerised application, serverless function, or microservice, enabling it to authenticate to other services without storing static credentials.
  • Static Secret: A secret, such as an API key or password, that does not change automatically over time. Static secrets require manual or scheduled rotation and represent a higher security risk than dynamic secrets or managed identities.
  • Identity Blast Radius: The amount of damage a compromised identity can cause across systems, data, and infrastructure. In NHI environments, it is shaped by permissions, network reach, and administrative capability rather than by the credential alone. Reducing blast radius is a containment strategy that limits lateral movement and data exposure.
  • Secrets Sprawl: The uncontrolled proliferation of sensitive credentials, API keys, tokens, passwords, certificates, across codebases, cloud environments, CI/CD pipelines, and configuration files. In 2024, over 50 million leaked secrets were found on the dark web.

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 building or maturing an IAM programme, it is worth exploring.
NHIMG Editorial Note
Published by the NHIMG editorial team on May 25, 2026.
Updated on October 10, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org