What Is a Non-Human Identity (NHI)?
A non-human identity (NHI) is any identity that is not a person: service accounts, API keys, OAuth tokens, certificates, workloads, bots, and increasingly AI agents. In most organizations, NHIs now outnumber human identities many times over, and they are widely under-governed.
Why NHIs are a growing risk
NHIs often have broad, standing privileges, no MFA, and credentials that rarely rotate. Leaked keys and over-permissioned service accounts are a leading cause of cloud breaches. See our secrets sprawl data for the scale of leaked credentials.
The new wave: AI agents
AI agents act on behalf of users, call APIs, and chain tools together. They need identities that are scoped, delegated, auditable, and revocable, which traditional service accounts do not provide. This is the focus of the emerging agentic and AI identity category and protocols like MCP authorization.
How to manage them
Discover every NHI, remove standing privileges, rotate and vault secrets, and govern lifecycle like you would human accounts. Machine and workload identity and PKI tools handle the cryptographic side.
Start with ownership, not discovery
The instinct is to buy a discovery tool, and the result is an inventory of 40,000 identities that nobody acts on. The prerequisite is ownership: an identity with a named human accountable for it can be reviewed, scoped, rotated, and eventually retired. One without an owner cannot be touched, because nobody will accept the risk of breaking it.
A workable sequence:
- Assign owners to the identities that can reach production or customer data. Unowned means scheduled for removal, and that deadline is what produces owners.
- Set an expiry on every credential, even if the first expiry is a year out. An identity with no expiry never gets reviewed.
- Scope down using usage data, which is the only evidence an owner will accept.
- Replace static credentials with platform-attested workload identity wherever the runtime can vouch for the caller.
- Put them in access reviews. If your quarterly certification does not list non-human identities, it is certifying a shrinking fraction of what can reach your data.
What AI agents change
Agents are non-human identities created faster than any review cycle, and they break two assumptions: there is no interactive login, and the agent acts for a user across several systems, so the audit question becomes a delegation chain rather than a single call.
The standards moved quickly in 2026. Okta's Cross App Access was adopted as the Enterprise-Managed Authorization extension for the Model Context Protocol, MCP authorization settled on OAuth 2.1 with PKCE, and Microsoft Entra Agent ID reached general availability. That gives agents short-lived, revocable, identity-provider-issued tokens instead of static API keys.
The governance did not move as fast. Okta's own research puts the share of organizations applying human-grade controls to agents at 34 percent. See agent identity just got a protocol and agentic identity.
Where to start
Where to start
For the full picture, read the non-human identity security guide, the deep dive on securing AI agent identities, and the machine identity management guide. When you are choosing tools, see best machine identity for enterprises.
Frequently asked questions
- What is a non-human identity?
- A non-human identity is any identity that is not a person, including service accounts, API keys, tokens, bots, workloads, and increasingly AI agents.
- Why are non-human identities a security concern?
- They are numerous, often over-privileged, long-lived, and poorly governed, which makes them an attractive and frequently overlooked attack path.
- How do you manage non-human identities?
- By inventorying them, applying least privilege, rotating and shortening their credentials, and governing their lifecycle the way human identities are governed.
Related on Start with Identity
- GlossaryNon-Human Identity (NHI)
Any identity that is not a person: service accounts, API keys, OAuth tokens, certificates, workloads, and AI agents. NHIs now outnumber human identities in most
- RankingBest Non-Human Identity Security Platforms: Top 5
The best non-human identity (NHI) security platforms in 2026: Astrix Security, Token Security, Oasis Security, Entro Security, and Aembit. Ranked for discovery,
- ArticleTop 6 Open-Source Secrets Scanning and Non-Human Identity Tools
The best open-source secrets scanning tools in 2026, from TruffleHog and Gitleaks to detect-secrets, git-secrets, Kingfisher, and NHI Hound, compared on validat
- GuideAuthentication vs Authorization: The Difference That Trips Everyone Up
Authentication and authorization sound alike and are often shortened to the same "authZ/authN," but they answer different questions. Getting them straight is fo
- GuideOAuth 2.0 vs OpenID Connect: What's the Difference?
OAuth 2.0 and OpenID Connect are constantly confused, and using the wrong one creates real security holes. The short version: **OAuth is for authorization, OIDC
- GuideRBAC vs ABAC vs ReBAC: Choosing an Authorization Model
**RBAC grants access through roles, ABAC evaluates attributes of the user, resource, and context, and ReBAC derives access from relationships between objects.**