Ask an organization how many employees it has, and someone usually knows. Ask how many non-human identities exist across its cloud accounts, APIs, service accounts, and AI agents, and the answer is often much harder to produce. This guide covers the 10 biggest non-human identity risks, the AI Agent Identity Problem™, and a practical 90-day program — plus real, tested data on exactly how identity forgery bypasses AI agent judgment at the protocol layer.
Ask an organization how many employees it has. Someone usually knows.
Ask how many non-human identities exist across its cloud accounts, applications, APIs, databases, CI/CD pipelines, SaaS platforms, automation systems and AI agents. The answer is often much harder to produce.
That gap is becoming one of the most important identity-security problems in the enterprise.
Modern organizations no longer run primarily on human users. Software communicates with software constantly. Applications authenticate to databases. Workloads authenticate to cloud services. CI/CD pipelines deploy infrastructure. APIs authenticate to other APIs. Bots automate business processes. Service accounts execute background jobs. And increasingly, AI agents authenticate to tools, retrieve enterprise data and perform actions on behalf of people and organizations.
This entire population belongs to a broader identity category:
Non-human identities.
OWASP defines NHIs as identities used to identify, authenticate and authorize software entities such as applications, workloads, APIs, bots and automated systems. Their authentication mechanisms can include passwords, certificates, tokens and keys.
The problem is not that organizations use non-human identities. They absolutely need them. The problem is that many organizations still manage them as technical objects instead of enterprise identities.
And that creates a dangerous question:
Who is responsible for an identity that isn't human?
Non-human identity management is the discipline of discovering, identifying, securing, authorizing, monitoring and eventually retiring identities that represent software, workloads, applications, services, automation or other machine-driven processes.
Examples include: service accounts, API keys, OAuth tokens, application identities, workload identities, cloud roles, managed identities, service principals, certificates, CI/CD credentials, automation accounts, bots, machine credentials, integration identities, and AI agents.
Human identity flow
Non-human identity flow
Now add an autonomous AI agent:
The final model is dramatically more dynamic. The agent may not simply authenticate and execute a predetermined function. It may decide what to do next.
That distinction is becoming increasingly important. NIST's 2026 work specifically examines how existing identity standards and practices can be applied to software agents and agentic AI, including the risks created when agents receive access to diverse data, tools and applications.
For years, identity security focused heavily on people: passwords, MFA, SSO, privileged users, access reviews, joiner-mover-leaver processes. Those controls remain important.
But the enterprise identity landscape has changed. Software now creates identities. Infrastructure creates identities. Cloud platforms create identities. Developers create identities. Automation creates identities. And AI creates increasingly autonomous software actors.
That means the identity perimeter is no longer:
Who can log in?
It is becoming:
Which software entity is acting, what can it access, why is it acting, and should that action be allowed right now?
This is the fundamental shift behind modern machine identity security.
A useful way to understand NHI security is to examine the complete lifecycle.
Create → Authenticate → Authorize → Access → Execute → Communicate → Change → Rotate → Revoke → Retire
Every stage creates potential risk. An identity can be created without an owner, granted excessive permissions, given a long-lived credential, reused across systems, forgotten after deployment, misused by a compromised workload, exposed through source code, used from an unexpected location, or left active after its purpose ends.
The result is an identity that still works even though nobody remembers why it exists. That is the forgotten identity problem.
The first problem is visibility. Organizations continuously create new service accounts, API credentials, cloud roles, workload identities and automation accounts. The population grows faster than manual governance processes.
Without centralized discovery, security teams may not know how many NHIs exist, who owns them, what they access, why they exist, when they were last used, or whether they are still required. You cannot secure an identity you cannot see.
A service account may begin with one simple purpose. Over time, additional permissions get added — a deployment fails, someone grants another permission, a new application requires access, another exception gets added. Eventually a small task accumulates access to more systems, more data, and a large blast radius.
This is why least privilege for non-human identities matters. The objective should be simple: give each machine identity only the access necessary to perform its intended function.
One of the most dangerous patterns is a credential that continues working indefinitely. A forgotten API key can become a permanent access path. A compromised service credential may remain useful long after the original developer or application has changed.
Modern NHI security increasingly emphasizes short-lived credentials, workload identity and just-in-time access rather than permanent secrets. The strategic objective is: reduce the amount of time a compromised credential remains useful.
Credentials can appear in source repositories, configuration files, CI/CD systems, environment variables, scripts, logs, developer machines, documentation and automation platforms.
The identity may be perfectly legitimate. The problem is that someone else obtains the credential. That creates a critical distinction: identity security is not only about whether an identity is legitimate. It is also about whether the credential representing that identity remains trustworthy.
Reusing the same machine identity across multiple applications can appear efficient. It can also dramatically increase blast radius. If a shared identity is compromised, the attacker may inherit access associated with multiple workloads.
OWASP specifically identifies NHI reuse as a security weakness because the same identity can be used across multiple workloads, making abnormal usage harder to distinguish and increasing potential impact according to the identity's privileges. Identity isolation — one identity per application — reduces blast radius.
Every important identity should have a responsible owner — not necessarily someone who manually operates it every day, but someone who can answer why it exists, what it should access, who approved that access, and what happens if it's disabled.
Without ownership, identity cleanup becomes dangerous. Security teams hesitate to remove accounts because nobody knows what they might break. That is how zombie identities survive.
A human employee has a relatively obvious lifecycle: join, work, move, leave. NHIs are more complicated — an application may be deployed, duplicated, migrated, archived, replaced — yet its identity can remain active.
Effective NHI lifecycle management should include discovery, registration, ownership, purpose, authorization, monitoring, rotation, review, revocation, and retirement. Retirement is particularly important: an identity that no longer serves a legitimate purpose should not remain active simply because nobody has touched it.
Traditional identity monitoring often asks: did this user authenticate? For NHIs, more useful questions include which workload used the identity, from where, against which service, at what time, with which credential, what data was accessed, and whether the behavior is consistent with the workload. This is the beginning of behavioral machine identity security.
A subtle problem occurs when humans directly use identities intended for automation — a developer assuming a service account to gain production privileges, for example. Now the organization may have difficulty distinguishing what the application did from what the human did while impersonating it.
OWASP identifies human use of NHIs as a specific risk because many environments cannot reliably distinguish workloads from humans assuming the same NHI. Strong governance therefore requires clear separation between human identities, machine identities, administrative identities, and emergency access.
This is where the NHI problem gets much more interesting. An AI agent can be viewed as a new class of software identity — authenticating via an OAuth token to a CRM, email, a document store, an ERP.
Traditional automation follows a predefined workflow. An AI agent may dynamically determine which tool to use, which document to retrieve, which API to call, which sequence of operations to perform, and whether another agent should be involved.
This introduces a new identity-security problem. The question becomes not only what can the agent access, but what should the agent be allowed to do in this specific context.
Imagine an AI support agent with access to email, CRM, a knowledge base, a customer database, and billing. Every permission might be legitimate — the agent might need them to perform its job.
But now suppose an attacker manipulates the agent through malicious content. The agent still possesses legitimate credentials. The APIs still work. IAM still sees a valid identity. The problem is that the authorized identity may now be acting under manipulated context.
This is why AI-agent security cannot simply replace traditional IAM. IAM remains foundational. But autonomous agents introduce a new runtime question: is this particular action appropriate right now?
HexTyx ran exactly this scenario against a real agent-to-agent handoff system: a low-privilege, unsigned peer agent claimed to be a trusted, high-privilege peer by forging a single identity field in an otherwise well-formed request.
Under a default/naive configuration, the forged identity was accepted and the request executed — a real secret was exfiltrated, with the system logging the forged identity as the actor, not the real one. Under a hardened configuration (signature verification required, claimed identity ignored in favor of the authenticated channel), the identical request was rejected at the very first gate — before any AI reasoning ever ran.
Same payload, same target. The only variable was whether identity was cryptographically verified before the request ever reached a decision point.
Traditional authorization often looks like a straight line: identity → permission → resource → allow/deny. That remains essential. But autonomous systems introduce additional variables — identity, plus context, intent, tool, destination, data sensitivity, behavior, and current risk, feeding into a single runtime decision.
Imagine an AI agent normally searching a CRM for one customer. Suddenly it attempts to export 500,000 customer records. The identity may technically have permission. But the action is dramatically different from its normal behavior.
This is where runtime identity governance becomes valuable. The permission system answers: can this identity technically perform the action? Runtime security asks: should this identity perform the action now? Those are different questions.
A powerful way to visualize the problem is as a graph rather than a list of permissions.
MACHINE IDENTITY
│
┌────────────────┼────────────────┐
↓ ↓ ↓
EMAIL CRM API
│ │ │
└────────┬───────┴───────┬────────┘
↓ ↓
ERP DATABASE
│ │
└───────┬───────┘
↓
CLOUD
Each permission might look harmless individually. The danger appears when the connections are combined. Security teams should therefore ask: if this identity were compromised, what could it reach? Not simply: what permission does this identity have?
A practical program can start with seven steps.
Build an inventory of service accounts, API keys, tokens, certificates, workload identities, cloud roles, bots, application identities, and AI agents. The first goal is visibility.
Assign metadata. For every important identity, capture:
| Attribute | Question |
|---|---|
| Owner | Who is responsible? |
| Purpose | Why does it exist? |
| Environment | Where is it used? |
| Privilege | What can it access? |
| Credential | How does it authenticate? |
| Age | How long has it existed? |
| Usage | Is it still active? |
| Criticality | What happens if it fails? |
Apply least privilege. Remove unused permissions, unnecessary administrative access, cross-environment access, unnecessary data access, and shared identities. The objective isn't to make every identity powerless — it is to make every identity purpose-specific.
Where architecture allows, move toward short-lived credentials, workload identity, managed identities, federated authentication, dynamic secrets, and just-in-time access. The principle: a credential that expires quickly is generally less useful to an attacker than one that remains valid indefinitely.
Track identity, source, time, resource, action, and data together, then establish behavioral baselines. A CRM lookup of one customer during business hours from an internal workload is normal. A CRM export of 400,000 records at an unusual time, from an unusual destination, followed by cloud access, deserves investigation even if the identity itself is legitimate.
Identity governance should not be a once-a-year exercise. Review privileges, owners, credential age, usage, resource access, behavioral anomalies, dormant identities, and new identities. Automation should handle as much of this as possible.
A simple rule: if nobody can explain why an NHI exists, investigate it. Do not blindly delete production identities — first establish ownership, purpose, dependency, usage, and a replacement/decommission plan. Then revoke safely.
Use this as a practical starting point.
The goal is not to replace IAM. It is to extend identity governance to a world where machines are increasingly acting as first-class enterprise principals.
| Traditional IAM | NHI Management |
|---|---|
| Human users | Machines + software |
| Passwords / MFA | Keys, tokens, certificates, workload identity |
| User lifecycle | Machine lifecycle |
| Employee owner | Application/service owner |
| Role-based access | Workload/task-based access |
| Login monitoring | Programmatic behavior monitoring |
| Access review | Continuous identity governance |
| User termination | Identity retirement |
| Static permissions | Dynamic/runtime controls |
The strongest enterprise strategy combines them.
The biggest mistake would be treating AI agents as merely another service account. An AI agent may have identity, memory, context, tools, credentials, permissions, goals, reasoning, and autonomous decision-making. That makes it different from a simple background process — it can transform one authorized capability into a sequence of actions.
The security problem is therefore no longer just identity. It becomes: identity + authorization + context + behavior + action.
This is precisely why the identity and authorization of software agents has become an active area of standards and security work. NIST's 2026 concept paper specifically explores applying identity standards and practices to software and AI agents.
Traditional NHI management establishes the identity foundation. A security program may know this is Agent A, and that Agent A has permission to access the CRM. The next question is: why is Agent A accessing 400,000 customer records right now? That requires visibility into the AI workflow itself, not just the identity layer beneath it.
HexTyx tests six distinct identity-confusion vectors as part of its scanner suite: peer impersonation, self-role upgrade, confused-deputy (acting on behalf of a forged principal), handoff-envelope spoofing, tool-asserted identity, and session/principal mixing.
In separate testing, we also confirmed the positive case: presented with a poisoned shared-memory entry explicitly instructing it to claim a higher-privilege role to unlock restricted tools, a tested model correctly refused, explicitly re-stated its actual, lower-privilege identity, and did not escalate.
That's the reassuring half of the finding — model judgment can hold. The concerning half is the test earlier in this guide: identity forgery at the protocol layer bypasses model judgment entirely, because the forged identity never reaches the model as a decision to make. Testing only one half gives a false sense of security either way.
HexTyx approaches this problem from the AI runtime security side — not to replace IAM, but to add another security question around autonomous behavior: is the AI agent's current action consistent with its intended behavior, context, permissions, and risk? This is especially important for agentic workflows where an attacker may attempt to manipulate an otherwise legitimate AI identity through prompt injection, malicious documents, poisoned context, or tool abuse.
Audit your AI agents. Test their permissions. Discover their hidden blast radius. Test before attackers do.
Focus on visibility. Inventory NHIs. Identify owners, credentials, permissions, applications, environments, data access, and dormant identities. Prioritize the identities with the greatest privileges and broadest reach.
Begin remediation: remove unused identities, reduce excessive permissions, rotate high-risk credentials, separate shared identities, assign owners, introduce stronger credential controls, and establish monitoring. Do not attempt to redesign everything simultaneously — reduce the largest blast radius first.
Move toward continuous governance: automated discovery, lifecycle management, credential rotation, behavioral monitoring, privilege reviews, runtime controls, AI-agent identity policies, and continuous security testing. The end state should not be a spreadsheet. It should be a continuously updated identity control system.
The enterprise identity perimeter has changed. It is no longer made up exclusively of people. It includes employees, applications, workloads, APIs, service accounts, automation, and AI agents. Every one of those entities can become an access path into the organization.
The fundamental security question is therefore evolving. It is no longer enough to ask: who are our users? Organizations must also ask what software identities exist, what they can access, who owns them, how long their credentials remain valid, and how they are behaving. And for autonomous AI: what is the agent doing right now — and should it be allowed to do it?
That is the future of Non-Human Identity Management. And as AI agents become increasingly capable of operating across enterprise systems, NHI governance and AI runtime security will increasingly become two sides of the same security problem.