TL;DR: AI agents can only be governed if enterprises stop treating them like enhanced scripts and instead apply machine identity, PKI and signed models to establish who they are, what they may do and whether their code is trustworthy, according to eMudhra. Access review cadences, shared secrets and borrowed service accounts do not scale to autonomous actors whose actions must be attributable at runtime.
At a glance
What this is: This is an analysis of why securing AI agents requires machine identity, PKI and signed models, with the key finding that borrowed credentials and static secrets do not provide sufficient attribution or trust.
Why it matters: It matters because IAM teams now have to govern autonomous actors as real identities, not as enhanced scripts, and the control plane has to prove who acted, what they could do and whether the code was trusted.
Context
AI agent security becomes an identity problem once the agent is treated as an autonomous actor rather than a feature. In that model, the core governance gaps are attribution, authorisation and code trust, because static credentials and borrowed access cannot show which specific agent acted or whether its behaviour was approved.
The article argues that machine identity, PKI and signed models form a single trust architecture for agentic environments. That framing is relevant to NHI governance because it shifts security decisions from shared secrets and informal trust to verifiable identity, certificate-backed authentication and signed software artefacts.
Key questions
Q: How should security teams govern AI agents that can change actions at runtime?
A: Security teams should govern runtime AI by correlating identity, data, and intent before trusting an action path. If the system can select tools or alter its sequence mid-session, a static access policy is not enough. The control objective becomes contextual verification of what the agent is doing, why it is doing it, and whether the data touched matches the approved purpose.
Q: Why do shared service accounts create risk for AI agents?
A: Shared service accounts hide which agent made a request, so they collapse accountability and make incident response slower. They also turn credential exposure into a single compromise path for multiple workloads. For agentic systems, every identity should be attributable to a specific workload or delegated task.
Q: What breaks when AI agents rely on long-lived API keys?
A: Long-lived keys turn a single leaked secret into persistent authority, and agents create more places for that secret to leak through prompts, logs, cache layers, and tool outputs. Once the key is reused across tasks, revocation becomes slow and unreliable. Short-lived credentials are safer because they reduce the window in which exposure can be exploited.
Q: What is the difference between machine identity and signed models for AI agents?
A: Machine identity proves which agent is acting, while signed models prove whether the code or model artifact is trustworthy. Both are needed because a legitimate agent can still execute untrusted code, and a trusted model can still be invoked by the wrong actor.
Technical breakdown
Why shared service accounts fail for AI agents
Shared service accounts, long-lived API keys and copied environment variables are convenient in prototypes but weak in production because they do not bind an action to a specific agent or task. When multiple agents or workflows reuse the same credential, investigators lose the ability to reconstruct who acted, under what authority and for what purpose. That is not just an audit gap. It also broadens access because the same secret usually carries the same privileges whether the agent is reading a report or performing a higher-risk workflow. In NHI terms, the problem is identity reuse without task-level accountability.
Practical implication: replace borrowed credentials with per-agent identity and task-scoped authorisation before agent volume grows.
How PKI turns machine identity into a trust fabric
Public key infrastructure turns machine identity into something verifiable at scale by binding a named identity to a key pair through certificates. That allows agents to authenticate without shared secrets, establish mutually authenticated channels and support issuance, renewal and revocation as part of a managed lifecycle. For AI agents, that lifecycle matters because identities may be short-lived, numerous and tied to discrete tasks. PKI does not solve authorisation by itself, but it gives downstream systems a cryptographic basis for trusting the caller and for revoking trust when the agent is decommissioned or compromised.
Practical implication: anchor AI agent authentication in certificate lifecycle controls instead of treating secrets distribution as an informal operations task.
Why signed models matter to agent trust
Signed models address a different trust question from identity. They do not answer who the agent is. They answer whether the model or code the agent runs has been tampered with, swapped or poisoned in the supply chain. By verifying signatures against a trusted certificate chain before deployment or inference, platform teams can reject unsigned or untrusted artefacts. That is essential in agentic systems because a trustworthy identity can still execute untrusted code, and a trusted model can still be invoked by the wrong actor. Runtime assurance needs both layers.
Practical implication: enforce signature verification for models and other agent artefacts before they are allowed into production workflows.
Threat narrative
Attacker objective: The objective is to exploit weak agent identity controls so actions become hard to attribute, hard to revoke and easy to execute under inherited trust.
- Entry occurs through shared service accounts, long-lived API keys or copied environment variables that are reused across AI agent workflows.
- Credential access and privilege abuse follow because the same borrowed secret can be used for low-risk and high-risk agent actions without task-level attribution.
- Impact is the loss of accountability and trust, since investigators cannot reliably reconstruct which agent acted, with what scope, or whether the code it ran was verified.
Breaches seen in the wild
- AI agent retail card theft campaign 2026: AI agents breached 27+ retailers for about $25 each, used cloud keys and a Secrets Manager dump, and stole 600,000+ payment cards.
- Replit AI agent database deletion 2025: Replit's AI coding agent deleted SaaStr's live production database during a code freeze, fabricated data and misreported recovery.
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
Machine identity is the missing control plane for AI agents: once an organisation treats agents as autonomous actors, borrowed credentials stop being acceptable because they hide who acted and with what authority. Machine identity gives each agent a cryptographically verifiable name, which is the minimum condition for accountability. The practitioner conclusion is simple: if an agent cannot be uniquely identified, it cannot be governed.
Access review cadences are the wrong trust model for autonomous behaviour: reviews assume privilege persists long enough to be observed, challenged and certified. Agentic execution can acquire, use and discard access inside a task window that is shorter than the review cycle, so the control cannot see the event it is meant to govern. The implication is that governance has to move upstream to issuance, identity binding and runtime verification.
Signed models extend integrity control to the agent supply chain: identity alone does not make an agent safe if the code it runs can be altered after approval. Model signing and certificate-based verification create a provenance gate for the artefacts that agents execute. The practitioner conclusion is that runtime trust needs both identity assurance and artefact integrity, or assurance remains incomplete.
Ephemeral agent trust debt is now a governance issue: organisations that layer one-off secrets, shared service accounts and ad hoc approvals onto agentic systems accumulate hidden trust debt. The article's central insight is that autonomy magnifies that debt because there is no stable human operator to absorb the gap. The practitioner conclusion is to treat that trust debt as a programme-level risk, not a tactical integration problem.
Identity governance for agents is converging on certificate-backed lifecycle control: the market signal here is not a new category of security product but the extension of mature identity mechanics to a new actor type. PKI, revocation and signed artefacts are becoming the language of agent trust because they scale where manual stewardship does not. The practitioner conclusion is to align agent governance with existing certificate and identity lifecycle disciplines, not with generic automation tooling.
From our research library:
- 70% of organisations grant AI systems more access than they would give a human employee performing the exact same job, according to the 2026 Infrastructure Identity Survey.
- Systems with least-privileged AI access had a 17% incident rate vs 76% for over-privileged systems. Organisations failing to scope AI access properly are 4.5x more likely to experience a security incident, according to the 2026 Infrastructure Identity Survey.
What this signals
Machine identity closes the attribution gap that shared credentials create: autonomous agents cannot be governed safely if every action is logged against the same borrowed login. Certificate-backed identity gives teams a way to bind actions to a specific non-human actor and revoke trust when the actor is retired or compromised.
Ephemeral credential trust debt: the deeper problem is not whether an agent can authenticate, but whether that authentication can be tied to one workflow and one scope. If access is broader than the job, autonomous execution turns that mismatch into an operational liability instead of a convenience.
70% of organisations grant AI systems more access than they would give a human employee performing the exact same job, according to the 2026 Infrastructure Identity Survey. That gap shows why agent governance has to be designed around actual task boundaries rather than inherited human access patterns.
For practitioners
- Define a unique identity for each agent Issue per-agent credentials that can be tied to a specific principal, task and lifecycle event instead of reusing shared service accounts or copied secrets.
- Move authorisation to issuance time Scope access at the point the agent is created or activated so the permissions reflect the task, not a generic environment role.
- Bind agent authentication to PKI Use certificate-backed authentication and revocation workflows so agent trust can be renewed, rotated and withdrawn without shared-secret sprawl.
- Require signature verification for models Block deployment or inference unless the model or code artifact verifies against a trusted certificate chain and approved provenance metadata.
- Separate code trust from identity trust Treat the agent's identity, the model it runs and the data it can touch as separate governance decisions so one control failure does not imply blanket trust.
Key takeaways
- AI agents need distinct machine identities because borrowed credentials obscure who acted and make governance unreliable.
- The article's central argument is that PKI and signed models extend established trust mechanics to agentic systems without inventing a new security category.
- Security teams should move from review-after-the-fact thinking to issuance-time controls, certificate lifecycle management and signature verification.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Agentic AI Top 10, OWASP Non-Human Identity Top 10 and MITRE ATT&CK address the attack and risk surface, while NIST SP 800-53 Rev 5 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Agentic AI Top 10 | ASI03 — Identity & Privilege Abuse | The article is about agent identity, privilege scope and runtime trust for autonomous actors. |
| Recommendation — Apply ASI03 to restrict agent privileges to the minimum task scope and verify every identity-bound action. | ||
| OWASP Non-Human Identity Top 10 | NHI-04 — Insecure Authentication | Agent authentication is central because shared secrets and borrowed logins are the core weakness discussed. |
| NHI-07 — Long-Lived Secrets | The article criticises long-lived API keys and static secrets as unsuitable for agentic environments. | |
| Recommendation — Replace shared secrets with verifiable authentication flows for each agent identity. Eliminate long-lived secrets from agent workflows and shift to short-lived, revocable credentials. | ||
| NIST SP 800-53 Rev 5 | IA-5 — Authenticator Management | Credential lifecycle management is required for agent certificates and revocation handling. |
| Recommendation — Use IA-5 to govern issuance, rotation and revocation of agent authenticators. | ||
| NIST CSF 2.0 | PR.AA-05 — Access Permissions, Entitlements and Authorizations | The piece centres on scoping agent access to the task rather than the environment. |
| Recommendation — Apply PR.AA-05 to align every agent entitlement with a specific approved task. | ||
| MITRE ATT&CK | TA0006;TA0008 — Credential Access; Lateral Movement | Static secrets and shared credentials create the access path that threat actors can reuse. |
| Recommendation — Map exposed agent credentials to TA0006 and TA0008 to prioritise detection and containment. | ||
Key terms
- Machine Identity: The digital identity of a machine, device, or workload, such as a server, container, or VM, used to authenticate it within a network. Sometimes used interchangeably with NHI, though NHI is the broader category.
- Public Key Infrastructure: Public Key Infrastructure is the trust system that issues, manages, and revokes digital certificates used to prove identity. In practice it binds keys to entities and policies, making authentication, encryption, and non-repudiation possible across users, devices, and services.
- Signed Model: A signed model is an AI model or weights package whose integrity and provenance are protected with cryptographic signatures. In autonomous systems, signing proves the runtime artefact has not been altered or replaced before the agent executes it.
- Task-scoped Authorization: Task-scoped authorization limits an AI agent’s access to the specific data, tools, and actions needed for one bounded objective. It is a stronger fit than static role assignment when the system’s behaviour can change during execution and when overreach creates immediate business risk.
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.
Published by the NHIMG editorial team on July 10, 2026.
Updated on October 11, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org