TL;DR: AI agents and automation are pushing non-human identities into the centre of enterprise risk, with Unosecur highlighting privilege accumulation, prompt injection, and token theft as the three most dangerous failure modes. The security model that assumed static actors and reviewable privileges no longer fits identities that can expand scope, follow hostile prompts, or leak tokens mid-operation.
NHIMG editorial — based on content published by Unosecur: The big three AI identity security risks every CTO must address
Questions worth separating out
Q: How should security teams govern AI agents that hold credentials?
A: Treat them as governed non-human identities with owners, scopes, and lifecycles.
Q: Why do AI agents complicate least privilege?
A: Because their access often changes during runtime.
Q: What breaks when prompt injection reaches an AI agent with tools?
A: The boundary between input and action breaks.
Practitioner guidance
- Inventory AI identities as first-class subjects Create a registry of agents, API keys, tokens, and service accounts tied to AI workflows.
- Separate model prompts from execution authority Limit what an agent can be asked to do and independently cap what it can execute.
- Eliminate long-lived and hardcoded secrets Replace embedded API keys and static credentials with short-lived tokens, vault-backed issuance, and automated rotation.
What's in the full article
Unosecur's full blog covers the operational detail this post intentionally leaves for the source:
- A deeper walkthrough of how privilege accumulation shows up in AI DevOps, support, and data workflows.
- Examples of prompt injection paths that can push an agent to reveal data or misuse connected tools.
- Practical token theft scenarios involving logs, prompts, hardcoded keys, and intercepted API traffic.
- FAQ guidance on orphaned agents, static credentials, and automated authentication workflows.
👉 Read Unosecur's analysis of the three big AI identity security risks →
AI identity security risks: are your controls keeping up?
Explore further
View Full Forum → | NHI Foundation Course → | Our Services →
AI identity security is now a governance problem, not just an application risk. Once AI agents hold credentials and act on behalf of users or services, the issue moves from model behaviour into IAM, PAM, and lifecycle control. The article is right to group privilege accumulation, prompt injection, and token theft because they all exploit the same weakness: identity decisions made for software that behaves more like an actor than a script. Practitioners should treat AI access as governed identity, not experimental automation.
A few things that frame the scale:
- 97% of NHIs carry excessive privileges, increasing unauthorised access and broadening the attack surface, according to Ultimate Guide to NHIs.
- Only 5.7% of organisations have full visibility into their service accounts, which means many teams still cannot see the identities they are expected to govern.
A question worth separating out:
Q: How do you know if AI token controls are actually working?
A: You should be able to prove that tokens are short-lived, rotated, owner-linked, and quickly revoked after exposure. If tokens still appear in logs, code, prompts, or unused integrations, the control is not working well enough to stop impersonation risk.
👉 Read our full editorial: AI identity security risks: privilege creep, prompt injection, token theft