What Is a Non-Human Identity (NHI)?
A non-human identity (NHI) is an identity used by software, not people. Types, 2026 risk data and 8 steps to secure service accounts, API keys and AI agents.

Quick answer: A non-human identity (NHI) is any digital identity that software uses, instead of a person, to authenticate and get access to systems or data. Service accounts, API keys, OAuth tokens, certificates, cloud workload identities and AI agents are all NHIs. Each one needs an owner, the narrowest possible access, short-lived credentials and a planned end of life.
TL;DR
- An NHI is a software identity, not a person. The OWASP Non-Human Identities Top 10 defines NHIs as identities "used to identify, authenticate, and authorize different software entities to access secured resources."
- They are the quiet majority. Vendor surveys published in 2026 put machine identities, AI agents included, far ahead of human ones (one reports 109 to 1), but those are self-reported estimates, not counts. Nobody has published an independent census.
- Attackers use them because they work. Verizon's 2026 DBIR finds credential abuse somewhere in 39% of breaches and third-party involvement in 48%. Its headline third-party example is stolen OAuth tokens.
- AI agents are the newest and least governed NHI. In a January 2026 CSA survey, 43% of organizations said agents run on shared service accounts and 31% said agents act under human identities.
- The fix is mostly discipline, not new tooling: inventory, a named owner, one identity per workload, least privilege, short-lived credentials, monitoring, and fast revocation.
What is a non-human identity?
A human identity belongs to a person who can type a password, approve a push notification and be held accountable in an HR system. A non-human identity belongs to code: a backend service, a CI/CD pipeline, a SaaS integration, a container, a script or an AI agent. It still needs to prove who it is and what it may do, so it gets a credential (a key, a token, a certificate or a signed assertion) and a set of permissions.
OWASP puts the difference plainly: "Unlike human identities, NHIs are not controlled and often not intrinsically tied to a human." That one sentence explains most NHI incidents. Nobody leaves the company and triggers offboarding, nobody gets an MFA prompt, and nobody notices when a key that was created for a one-week project is still valid two years later.
You will also see the terms machine identity, workload identity and agent identity. They overlap. Machine identity is often used for certificates and keys that machines present, workload identity for the runtime identity of a running service (the model behind SPIFFE), and agent identity for the newest subgroup: AI agents that decide which tools to call. NHI is the umbrella term that covers all of them.
Human vs non-human identity
| Human identity | Non-human identity | |
|---|---|---|
| Who uses it | A person | Software: services, pipelines, integrations, workloads, AI agents |
| Typical credential | Password plus MFA, passkey, SSO session | API key, OAuth token, client secret, certificate, short-lived workload token |
| Lifecycle trigger | HR events: hire, move, leave | Engineering events: deploy, integrate, decommission (often never recorded) |
| Owner | The person, plus their manager | Often unclear; OWASP lists improper offboarding as risk number one |
| Interactive checks | MFA prompts, step-up, device checks | None by default; the credential alone is usually enough |
| Volume | Roughly one per employee or contractor | Many per application; grows with every integration and agent |
| Typical failure | Phishing, password reuse | Leaked or long-lived secrets, excessive permissions, orphaned accounts |
Types of non-human identities

Most environments hold all of the following at once. Knowing which type you are looking at tells you who probably created it and how it will fail.
| NHI type | Example | Credential it uses | Common failure |
|---|---|---|---|
| Service account | A database account used by a backend API; a Kubernetes service account | Password, key file, or a platform-issued token | Shared across apps, never rotated, never removed |
| API key | A payments or LLM provider key in an environment variable | Static bearer string | Hardcoded in code, configs or chat; no expiry |
| OAuth token / app grant | A SaaS integration that reads your CRM or mailbox | Access token plus a long-lived refresh token | Broad scopes granted once and forgotten |
| Certificate and key pair | mTLS between internal services, code signing | X.509 certificate | Expired or unrevoked certs; private keys copied around |
| Cloud workload identity | A cloud role attached to a function or VM; a SPIFFE ID for a pod | Short-lived token issued by the platform | Role grants far more than the workload uses |
| CI/CD identity | A pipeline that deploys to production | Stored secret, or an OIDC token exchanged per run | Static deploy keys with admin rights |
| AI agent | A coding agent, a support agent with tool access, an MCP client | Any of the above, often borrowed from a person or a service | Inherits human permissions; actions are hard to attribute |
AI agents sit at the end of the table for a reason. They are not a new credential type. They are a new kind of user of the credentials above, and they choose actions at runtime based on content they read. That is why the same over-scoped token is riskier in an agent's hands than in a cron job's: an agent can be steered by a prompt injection that hijacks its intent into using every permission it holds. We cover the agent-specific side in more depth in The Rise of Agent IAM.
Why non-human identities matter in 2026
The 2026 evidence points in one direction, with the caveats that each source carries.
- Credentials keep driving breaches. Verizon's 2026 Data Breach Investigations Report (May 2026) analyzed more than 31,000 incidents, of which more than 22,000 were confirmed breaches in 145 countries. Credential abuse was the first step in fewer breaches than before, but counted anywhere in the attack, it "still sits on top at 39%." Third-party involvement reached 48%, up from 30%. Verizon's worked example is the 2025 Salesloft Drift campaign, in which customer OAuth tokens were stolen from a vendor and then used against Salesforce. Its advice is direct: "We should pay special attention to service and machine accounts, as those will likely be the ones leveraged in our potential agentic AI future." Limits: the DBIR is built from contributor and public data, not a random sample.
- A 2026 NHI breach, step by step. In a cybersecurity alert, FINRA describes how, on June 12, 2026, the sales intelligence vendor Klue detected a breach in which an attacker "used a compromised service-account credential to access Klue's backend systems," stole customers' OAuth tokens for integrations with platforms such as Salesforce and HubSpot, and exfiltrated CRM data in bulk with automated scripts. FINRA says more than a dozen organizations confirmed impact. Two NHIs were involved: one service account and many OAuth grants. No human password was needed.
- Secrets leak faster than teams clean them up. GitGuardian's State of Secrets Sprawl 2026 (March 2026, vendor research, not linked under our editorial policy) counted 28.65 million new hardcoded secrets in public GitHub commits during 2025, up 34%, including 1,275,105 AI-service secrets, up 81%. It also found 24,008 unique secrets in MCP-related configuration files, 2,117 of them valid. Limits: public GitHub only, and the data year is 2025. The MCP finding matters for agents, because many quickstarts still tell you to paste keys into config files. Our roundup of November 2026 MCP server vulnerabilities shows how often those servers end up exposed.
- AI agents are borrowing identities. The Cloud Security Alliance's Identity and Access Gaps in the Age of Autonomous AI (March 24, 2026) surveyed 228 IT and security professionals online in January 2026. 52% said agents use workload identities, 43% shared service accounts and 31% human user identities; 68% could not clearly tell agent activity from human activity; 74% said agents often get more access than necessary; and 33% did not know how often agent credentials are rotated. Limits: a small, self-selected sample, and the study was commissioned and co-designed by Aembit, an agent identity vendor.
- How many NHIs are there? Palo Alto Networks' 2026 Identity Security Landscape (vendor survey of 2,930 security leaders, not linked) reports that machine identities, including AI agents, outnumber humans 109 to 1. Treat ratios like this as directional. They are self-reported, they define "machine identity" differently, and no 2026 independent count exists.
The main risks, using the OWASP NHI Top 10
The OWASP Non-Human Identities Top 10 (2025 edition, released in December 2024) is still the reference risk list; no 2026 edition had been published when we checked on December 2, 2026. OWASP ranked the risks with its Risk Rating Methodology, using real-world incidents, surveys, CVE data and industry input. In order:
- Improper offboarding
- Secret leakage
- Vulnerable third-party NHI
- Insecure authentication
- Overprivileged NHI
- Insecure cloud deployment configurations
- Long-lived secrets
- Environment isolation
- NHI reuse
- Human use of NHI
Read the list as a lifecycle, not a ranking of exotic attacks. Numbers 1, 2, 7 and 9 are hygiene failures: identities that outlive their purpose, secrets that leak or never expire, and one identity shared by many workloads. Numbers 3 and 5 are scope failures, and the Klue case above combined both. Number 10, people logging in with a service account, is the reverse of the AI agent problem, where software acts with a person's identity. The attack paths themselves deserve their own page, so here we keep to the definitions.
How to secure non-human identities

The steps below are the order we would follow in a real environment. They map to the OWASP list and to the identity guidance that six national cyber agencies, including CISA, published on May 1, 2026 in Careful adoption of agentic AI services (we summarized it in our review of the first joint guidance on agentic AI).
1. Build an inventory from what is actually used
Start with evidence, not a spreadsheet of what should exist. Pull the cloud provider's credential and key reports (in AWS, the IAM credential report shows when each access key was last used), the OAuth apps granted in your SaaS tenants, the secrets stored in CI/CD, and the service accounts in each cluster. Add every AI agent and MCP server, including the ones teams set up on their own; our guide to preventing shadow AI agents covers how to find them.
2. Give every identity a named human owner
An NHI without an owner cannot be rotated or retired safely, because nobody knows what breaks. Record an owner, a purpose and the system it serves for each identity. If nobody claims an identity within a set window, disable it first and delete it later. The agencies' guidance asks for the same thing for agents: "Maintain a trusted registry and bind identities to authorised roles; periodically reconcile the registry against the live set of agents."
3. Issue one identity per workload, and never share
Split shared service accounts so each application, pipeline and agent has its own. This is what makes logs meaningful and revocation surgical. For agents, the joint guidance says developers should "construct each agent as a distinct principal, a cryptographically anchored identity with its own unique keys or certificates." NIST's proposed design tenets for agent identity (October 27, 2026) make the same point: agents should be identifiable separately from human users and service accounts, and should not quietly run under a person's login.
4. Cut permissions to what the workload really calls
Compare granted permissions with the permissions actually used over the last 30 to 90 days, then remove the rest. Scope OAuth grants to the smallest set of APIs, and prefer read-only by default. For agents, static roles are rarely enough because the right access depends on the task; see why RBAC is not enough for AI agents for attribute-based and runtime approaches.
5. Replace static secrets with short-lived credentials
Long-lived keys are OWASP's risk number seven and the main reason a leak turns into a breach. Use the platform's federation instead: cloud roles and managed identities, Kubernetes service account tokens that are bound and time-limited, and OpenID Connect in GitHub Actions so pipelines get a fresh token per run instead of a stored cloud key. The joint guidance puts it in one line: "Replace static, long-lived secrets with ephemeral credentials that expire when the job is complete." Where a static key is unavoidable, keep it in a secrets manager, set an expiry and rotate it automatically.
6. Authenticate agents and tools with standard protocols
Do not invent agent authentication. OAuth 2.0, workload identity and mTLS already cover most cases, and the IETF's draft AI Agent Authentication and Authorization (draft-ietf-wimse-aims-01), published November 2, 2026, describes how to apply them to agents "rather than defining new protocols." It is a work-in-progress draft, not a standard. For MCP specifically, start with our explainer on MCP authentication, and consider putting tool access behind a single enforcement point such as an MCP gateway.
7. Monitor behavior and attribute every action
NHIs are under-monitored by default. Baseline what each identity normally does (which APIs, from where, at what volume) and alert on change, especially bulk reads, new destinations and use from unexpected networks. FINRA's advice after the Klue breach is a practical checklist: look for unusual API activity, OAuth token use that deviates from normal operations, and high-volume queries in short periods. For agents, log which human or process started the task so actions can be traced back, a principle that runs through our zero trust for AI agents guide.
8. Rehearse revocation before you need it
Know how to revoke a token, rotate a key and disable an agent in minutes, and test it. During an incident, revoking credentials and ending sessions is the first containment step, and it only works if you already know what depends on the identity. A tested kill switch for AI agents is the agent version of the same idea.
Where NeuralTrust fits. These steps are mostly identity and platform work you can start with the tools you already have. For the runtime side of agent access, NeuralTrust's TrustGuard inspects agent interactions and enforces policy at execution time, and its MCP gateway lets teams decide which tools each agent can use, with per-operation permissions and an audit trail. To see how this applies to your agents, book a demo.
Where standards are heading
Agent identity is the part of NHI security that is changing fastest, and three public efforts are worth tracking:
- NIST NCCoE. On February 5, 2026, NIST's National Cybersecurity Center of Excellence released a concept paper, Accelerating the Adoption of Software and AI Agent Identity and Authorization, asking how identification, authorization (including OAuth 2.0), delegation, logging and data-flow tracking should apply to agents. Comments closed on April 2, 2026, and the project continues as a demonstration effort.
- NIST design tenets. NIST's October 27, 2026 blog proposes ten initial tenets, including distinct agent identification, least and zero standing privilege, and short-lived, revocable authorization that avoids "long-lived bearer tokens or static, reusable secrets." It is a proposal for discussion, not a requirement.
- IETF WIMSE. The draft cited in step 6 maps OAuth and workload identity onto agent flows such as delegation and token exchange.
None of these replace the basics above. They describe how the same basics should work when the identity in question is an agent acting for a person. For the broader security picture around agents, start with what agentic AI security covers, and for a business-level view, read why AI agents are creating a machine identity crisis.
FAQs about non-human identity
1. What is a non-human identity in simple terms?
A non-human identity is a login for software instead of a person. When a backend service, a pipeline, a SaaS integration or an AI agent needs to reach data or another system, it proves who it is with a credential such as an API key, OAuth token or certificate, and receives permissions just as a human user would.
2. What are examples of non-human identities?
Common examples are service accounts, API keys, OAuth app grants and refresh tokens, TLS and code-signing certificates, cloud roles and managed identities attached to workloads, CI/CD deploy identities, bots, and AI agents that call tools. One application often uses several of these at once, which is why inventories usually turn up far more identities than teams expect.
3. Are AI agents non-human identities?
Yes. An AI agent that authenticates to tools, APIs or data is a non-human identity, even when it runs on a borrowed credential. What sets agents apart is that they choose actions at runtime based on what they read, so guidance from NIST and national cyber agencies asks for a distinct identity, least privilege and short-lived credentials per agent.
4. What is the difference between NHI and machine identity?
The terms overlap and are often used interchangeably. Machine identity traditionally refers to the keys and certificates that devices and workloads present, while non-human identity is the broader umbrella that also covers service accounts, OAuth grants, API keys and AI agents. In practice, both describe credentials and permissions that belong to software rather than to people.
5. Why are non-human identities a security risk?
They are numerous, rarely owned, often over-privileged, and usually authenticate with a credential alone, without MFA. Secrets leak into code and chat, keys stay valid for years, and nobody offboards them. Verizon's 2026 DBIR finds credential abuse in 39% of breaches, and the June 2026 Klue breach began with a single compromised service-account credential.
6. How do you secure non-human identities?
Start with an inventory based on real usage, then give each identity a named owner, one identity per workload and only the permissions it actually uses. Replace static secrets with short-lived credentials, use standard protocols such as OAuth and workload identity, monitor behavior for anomalies, and practice revoking credentials quickly so containment takes minutes rather than days.
Ready to put runtime controls around your agents' identities? Book a demo with NeuralTrust.
Sources
- OWASP Non-Human Identities Top 10, 2025 edition (initial release December 9, 2024; checked December 2, 2026): Top 10 overview and introduction and definition. Method: OWASP Risk Rating Methodology applied to incidents, surveys, CVE data and industry input.
- Verizon, 2026 Data Breach Investigations Report (May 2026). Method: 31,000+ incidents and 22,000+ confirmed breaches from contributors and public sources; not a random sample.
- FINRA, Cybersecurity Alert: Klue OAuth Breach and Salesforce Data Exfiltration (2026; describes the June 12, 2026 breach).
- Cloud Security Alliance, Identity and Access Gaps in the Age of Autonomous AI (March 24, 2026). Method: online survey, January 2026, 228 respondents; commissioned and financed by Aembit, questionnaire co-developed with CSA.
- GitGuardian, The State of Secrets Sprawl 2026 (March 17, 2026; vendor research, named without a link under our editorial policy). Method: scan of public GitHub commits in 2025.
- Palo Alto Networks, 2026 Identity Security Landscape (2026; vendor survey of 2,930 security leaders, named without a link under our editorial policy). Self-reported ratios.
- ASD's ACSC, CISA, NSA, Canadian Centre for Cyber Security, NCSC-NZ and NCSC-UK, Careful adoption of agentic AI services (May 1, 2026). See also CISA's announcement.
- NIST NCCoE, Accelerating the Adoption of Software and AI Agent Identity and Authorization, concept paper (February 5, 2026; comments closed April 2, 2026).
- NIST Cybersecurity Insights, Design Tenets for Agent Identity Management Systems (October 27, 2026). Proposed tenets, not a standard.
- IETF WIMSE Working Group, AI Agent Authentication and Authorization, draft-ietf-wimse-aims-01 (November 2, 2026; Internet-Draft, work in progress).

