Non-human identity: governing the agents that act for you
Agents authenticate as machine identities, not people. Here is why non-human identity is now a core control — and how to inventory, scope and rotate it.
Definition
A non-human identity (NHI) is the digital identity of a machine actor — an agent, service or workload — rather than a person. Agents authenticate with keys, tokens or certificates, so non-human identity management governs how those credentials are owned, scoped, rotated and audited.
Every autonomous agent that does real work has to prove who it is. It does so as a non-human identity — a machine actor with keys and tokens, not a person with a password. Treating these identities seriously is now one of the highest-leverage controls in agent security.
Why doesn’t human IAM fit?
Identity programs were built for people: onboarding, role changes, offboarding, interactive logins, MFA. An agent fits none of those assumptions. It is created by a deployment, authenticates non-interactively against an API, and may keep running long after the team that built it moved on. Bolting agents onto a human-centric system leaves them ungoverned by default.
The result is the identity crisis that the rise of MCP exposed: thousands of machine credentials, long-lived, over-scoped and unowned.
| Dimension | Human identity | Non-human identity (agent) |
|---|---|---|
| Created by | Onboarding / HR | A deployment or another agent |
| Authenticates with | Interactive login plus MFA | Keys, tokens or certificates, non-interactively |
| Lifecycle | Joiner, mover, leaver | Often none; can outlive its project |
| Typical count | Hundreds | Thousands, and growing |
| Governed by default | IAM, access reviews | Usually nothing |
The three failures to fix
- No ownership. A credential nobody owns is a credential nobody rotates or revokes. Every machine identity needs a human or team accountable for it.
- Over-scope. Agents inherit far more access than their task needs, so a compromise becomes an incident. Scope each identity to least privilege.
- Longevity. Static, long-lived keys are a standing liability. Prefer short-lived, automatically rotated credentials.
A control loop for non-human identity
- Inventory every agent and service identity and what it can reach.
- Scope each to the minimum, per tool and per action.
- Rotate automatically; eliminate static secrets where you can.
- Authorize at runtime so that holding an identity is not the same as being allowed to act — see MCP security.
- Audit per identity with signed records, so every action is attributable.
Why this is also a governance control
The EU AI Act and GDPR both ask, in effect, who did this and were they allowed to? For an agent, the answer is a non-human identity. Without per-identity attribution, you cannot demonstrate oversight or accountability — see governance. Identity is where security and compliance become the same project.
Start with the inventory. Naming what acts on your behalf is the prerequisite for controlling it. Terms are defined in the glossary.
Frequently asked questions
Why can't we manage agents with our existing IAM?
Most identity programs are built around two assumptions that agents violate: the human lifecycle of joiners, movers and leavers, and interactive logins with a password and MFA. An agent has neither. It is created by a deployment rather than an HR process, it authenticates non-interactively against an API with a key or token, and it can keep running long after the team that built it has moved on, so there is no leaver event to trigger cleanup. Role-based models also assume a person sits behind each identity, whereas an agent may spin up many short-lived identities or share one across tasks. The practical consequence is that bolting agents onto a human-centric IAM leaves them ungoverned by default — created freely, rarely reviewed, never offboarded. They need ownership, scope, rotation and audit modelled for machines, which is what non-human identity management provides.
What makes non-human identities risky?
Scale combined with neglect. Organisations accumulate machine credentials far faster than human accounts — every service, integration and agent needs at least one — and because no joiner-mover-leaver process governs them, they tend to be long-lived, broadly scoped and owned by no one. Each of those properties is a liability on its own; together they are the classic breach enabler. A single leaked or compromised key grants an attacker exactly what the agent could do, which is usually far more than the immediate task required, and because the same credential is often reused across tools, one leak can cascade. The danger is amplified by invisibility: most teams cannot say how many machine identities they have or what each can reach, so a stale, over-privileged credential can sit unnoticed for months. The risk is rarely an exotic exploit; it is an ordinary forgotten key with too much power.
What is the first step?
Inventory, without exception, because every later control depends on it. List every agent and service identity, the credentials each one holds, who owns it, what it can reach, and when it was last used. You cannot scope, rotate or revoke what you have never enumerated, and almost every organisation that runs this exercise finds surprises — keys with no owner, credentials that should have been revoked when a project ended, identities with far more access than anyone remembers granting. The inventory is also what converts a vague worry into a prioritised work list: once you can see the long-lived, over-scoped and unowned identities, you fix those first. It is unglamorous and often tedious, but naming what acts on your behalf is the prerequisite for governing it, and it usually pays for itself by surfacing a handful of genuinely dangerous credentials on the first pass.
How is a non-human identity different from a service account?
A service account is one kind of non-human identity, but the term NHI is deliberately broader and reflects how much the landscape has changed. Classic service accounts were relatively few, long-lived and tied to a specific application, and many organisations managed them, however imperfectly, as a known set. Modern non-human identities include agents, workloads, CI jobs, functions and ephemeral tokens that are created and destroyed constantly, often automatically, and at a scale that dwarfs the old service-account inventory. Treating agents as just more service accounts tends to fail because the old manual processes do not survive the volume and churn. The NHI framing keeps the useful instinct — name an owner, scope tightly, rotate, audit — but assumes automation, short lifetimes and machine-speed creation as the norm. In short, every service account is an NHI, but not every NHI looks or behaves like the service accounts most IAM tools were designed around.