NHI Security · 2026
45:1
Machine-to-human identity ratio in the modern enterprise
Rubrik Zero Labs · ManageEngine up to 500:1
250,000+
Average NHI count per enterprise across cloud environments
68%
of IT security incidents now involve machine identities
97%
of NHIs carry excessive privileges beyond what their function requires

AI Agent Identity Management:
Non-Human Identities Are the New Attack Surface

Every AI agent your company deploys creates a new identity – credentials to access APIs, databases and enterprise systems without a human in the loop. Most are unmanaged, over-privileged and never revoked. This is the identity crisis of 2026's breach wave.

Gartner Top 6 Cybersecurity Trends 2026 · #1: Identity and Access Management Adapts to AI Agents

According to a single anonymized case study reported by NHI security researchers and referenced in multiple 2026 industry reports, a Fortune 500 financial institution had an identity audit to see how many human users it had, expecting to see 50K. What they saw was over 4.2M non-human identities: service accounts, API keys, OAuth tokens, certificates, and bots. Most were unmanaged. Many had too many privileges. Thousands were dead, the owners long gone, but still active. The case is not named, but the pattern it represents is not uncommon: it is the baseline of enterprises that have not done an NHI inventory.

This is not a fluke. The 2026 NHI Reality Report shows the average enterprise today with over 250k NHIs. Rubrik Zero Labs says the machine-to-human identity ratio is 45:1. ManageEngine's 2026 research shows organizations at 100:1 and 500:1. Every SaaS integration, vendor connection, and AI tool deployment creates new NHIs. And now agentic AI has created a qualitatively new identity category that makes everything harder: AI agents are not passive credential holders. They are autonomous actors that get permissions on the fly, spawn sub-agents and chain actions across dozens of systems.

We see this every day in regulated enterprise deployments at Polygraf AI. Here is what the data actually shows about the NHI problem – its scale, its specific failure modes in agentic environments and the controls that actually close the gaps.

What Non-Human Identities Actually Are

A non-human identity is a credential, token or secret that allows a software system, automated process or AI agent to authenticate and access resources, without any human directly involved in that transaction. NHIs are not new. But AI agents have changed their nature in a fundamental way.

🔑
API Keys & Secrets
Static credentials that live for a long time and provide access to APIs, services, and databases. The most common type of NHI. Most often hardcoded, leaked and never rotated.
47% not rotated in 1+ year
🔗
OAuth Tokens
Delegated access tokens that allow third party applications to act on behalf of a user or service. The Salesloft-Drift breach was a large-scale weaponization of delegated access tokens.
Appear legitimate — indistinguishable from normal automation
⚙️
Service Accounts
Machine identities for applications and automation. 8% are not owned by anyone in HR systems – the creator is gone, access is left. Often over-privileged by default.
8% have no HR owner
🤖
AI Agent Identities
The most dangerous and newest category of NHI. Unlike static service accounts, AI agents can reason about their access needs, ask for new permissions and spawn sub-agents that create a new NHI without human intervention.
22% have unique, revocable identity

IAM was originally designed for human identities. It assumes that the credentials belong to people with working hours, geographic locations and typing patterns – the behavioral signals that security tools use to detect account compromise. NHIs do not make any of these assumptions by design. They are always on. They have no "normal" behavior pattern. They do not trigger MFA. And they live forever without lifecycle management because there is no automated offboarding process for credentials that do not belong to a person.

Enterprise identity composition — how far the ratio has shifted
Humans (2.2%) Non-Human Identities (97.8%)
45:1 · Rubrik Zero Labs · ManageEngine up to 500:1 in some environments
Human identities — governed by traditional IAM, MFA, and offboarding workflows
Non-human identities — largely ungoverned, no MFA, no behavioral baseline, no automated offboarding

Why AI Agents Create a Qualitatively Different NHI Risk

Service accounts and API keys have been around for decades. What AI agents bring is of a different order of magnitude, not of scale. The non-human identity governance whitepaper of the CSA is a good way to describe the difference: the previous generation of NHIs was passive. AI agents are autonomous actors who can reason about their access needs, ask for new permissions and act in systems in a sequence that leads to emergent behavior that their authors did not foresee.

Three specific properties make AI agent NHIs uniquely dangerous compared to all prior NHI categories:

Static service account vs. AI agent identity — why the risk profile is fundamentally different
STATIC SERVICE ACCOUNT AI AGENT IDENTITY Service Account Fixed credential · Fixed permissions One system static access · one path ✓ Predictable blast radius Compromise = access to one credential's scope AI Agent Identity Dynamic · Self-expanding · Autonomous API / DB Sub-agent New NHI Self-minting new credentials ✗ Unpredictable blast radius Compromise = access to all connected systems + new NHIs Agent can reason about how to exploit its own access

Property 1 – Dynamic credential acquisition. Static service accounts have fixed credentials. AI agents acquire permissions at runtime. An agent that needs access to a new system can ask for it and if the IAM policy is permissive, get it – without a human reviewing that access grant. Each acquisition generates a new NHI that may never be tracked or revoked.

Property 2 — Sub-agent spawning. As Sophos has shown, AI agents can spawn new agents to do sub-tasks and each new sub-agent spawned will create a new NHI without any human intervention or oversight. A single compromised parent agent can mint dozens of child NHIs with inherited or increased permissions from the parent.

Property 3 — Reasoning about access. A compromised static service account is a credential. A compromised AI agent can reason about what that credential allows, find more paths to access, and systematically abuse its own permissions in ways its operators never envisioned. This makes NHI compromise a known-scope problem to an open-ended exploitation problem.

The Scale of the Unmanaged Problem

According to the 2026 NHI Reality Report, 71% of NHIs are not rotated in recommended time and 97% have too many privileges beyond what they need (2026 NHI Reality Report, Protego). Another Delinea finding shows that 97% of organizations are exposing their NHIs to third party vendors – a double risk. 16% of organizations do not track the creation of AI identities at all (CSA, 2026). And 53% of organizations are regularly exposed to unauthorized AI tools and agents in their systems (Delinea 2026 Identity Security Report). This is not a configuration issue. This is a governance gap.

The Salesloft-Drift Breach: The Canonical NHI Attack

There is no better example of what NHI compromise looks like at enterprise scale than the August 2025 Salesloft-Drift breach – what Permiso.io called "one of the most complete non-human identity attacks from beginning to end". Knowing its anatomy is the first step to understanding why standard identity controls do not stop these attacks.

Where NHI Governance Fails: The Five-Stage Lifecycle

NHI attacks target failures at any stage of the identity lifecycle. The Salesloft-Drift breach failed at stages 1 (creation - tokens embedded in code), 3 (scoping - tokens with broad Salesforce access) and 5 (monitoring - 10 days of automated queries not detected). Most enterprises have governance failures at 3 or more stages at the same time.

STAGE 01
Creation
Credentials created outside IT workflows. Hardcoded in code, committed to repos.
SpyCloud: 6.2M AI tool credentials exposed in 2025
STAGE 02
Inventory
No centralized registry. NHIs proliferate untracked. 16% of orgs don't track AI identity creation at all.
Fortune 500 bank: expected 50K, found 4.2M
STAGE 03
Scoping
97% of NHIs carry excessive privileges. Developers attach broad permissions under deadline pressure, never revisit.
74% of AI agents over-privileged vs task requirement
STAGE 04
Rotation
71% of NHIs not rotated in recommended timeframe. 47% over one year old with no rotation.
Salesloft tokens: active 5+ months before use
STAGE 05
Monitoring & Revocation
Machine-to-machine traffic looks normal. No behavioral baseline. 8% of NHIs have no HR owner for offboarding trigger.
Salesloft: 10 days undetected. OpenAI plugin breach: 6 months

"Managing identities in the era of AI has become a complex endeavor, especially with the labyrinth of NHIs. The credential an agent holds is not merely a passive key — it is the principal identity of an autonomous actor."

— Kavitha Mariappan, Chief Transformation Officer, Rubrik · CSA NHI Governance Whitepaper, 2026

AI Agent-Specific NHI Risks

In addition to the five lifecycle failures that are common to all NHIs, AI agents have three attack patterns that are specific to autonomous reasoning systems.

Risk
What it looks like in production
Primary mitigation
Credential self-minting
Agent generates API keys or OAuth flows to access systems outside of its original scope. Each new credential is not tracked. Sophos: "AI agents can create new agents and new NHIs without human intervention."
Do not allow block agents to create credentials without explicit policy authorization and human approval gate
Credential reasoning & exploitation
Compromised agent can assess its own credential scope, guess which systems it can reach and probe access paths in a systematic way. In contrast to a static service account compromise, the attacker has an intelligent navigator in the perimeter.
Enforcement of least privilege at argument level and not just at tool level. Detection of behavioral anomaly in credential usage.
Inherited over-privilege via orchestration
Orchestrator agents have credentials for all sub-agents they control. A compromised orchestrator is able to reach the whole sub-agent fleet. Only 22% of enterprises provide agents unique, individually revocable identities (Gravitee 2026).
Unique identity per agent. The orchestrator should not have credentials for sub-agents – use delegated short-lived tokens per task.
Orphaned agent credentials
Agent decommissioned, credentials still valid. There is no HR offboarding for non-human identities. Attackers abuse this because it is unmonitored: the owner is dead, nobody is watching.
Automated credential expiration based on agent lifecycle. No credential remains valid after the agent it is associated with is decommissioned.

The Six Controls That Actually Close the NHI Gap

CONTROL 01
Complete NHI Inventory — Before Anything Else
You cannot control what you cannot see. Create a central registry of every AI agent identity: who created it, what system it uses, what permissions it has, when it was last used and who owns it. Do automated discovery every month to expose unregistered agents. Any gap between registered and detected NHIs is unmanaged risk.
16% of orgs track zero AI identity creation — CSA 2026
CONTROL 02
Unique Identity Per Agent — Not Shared Service Accounts
Every agent must have its own independently revocable credential. Shared service accounts make attribution impossible and revocation destructive. When the Salesloft tokens were revoked, every customer using Drift lost service at the same time – because the token was shared. Per-agent identity gives you surgical revocation
Only 22% of orgs currently do this — Gravitee 2026
CONTROL 03
Short-Lived Credentials via SPIFFE/SPIRE
SPIFFE (Secure Production Identity Framework for Everyone) issues cryptographic workload identities that expire in hours not months. The Salesloft tokens were active for 5 months before they were used. Short-lived tokens remove the dwell-time window that makes NHI attacks so effective – an attacker who steals a credential that expires in 4 hours has no usable leverage.
Salesloft tokens: 5 months active before exploitation
CONTROL 04
Least Privilege Enforced at the Argument Level
Not only "can this agent use the database tool" but "can this agent DELETE from this specific table in this specific schema for records created before this timestamp". Argument level constraints need purpose binding at the execution layer. Policy documentation is not enforcement. 97% of NHIs are over-privileged because documentation and enforcement are treated as the same.
97% carry excessive privileges — 2026 NHI Reality Report (Protego)
CONTROL 05
Behavioral Monitoring for Machine-to-Machine Traffic
The Salesloft attack went undetected for 10 days because SOQL queries were normal API usage. Normal SIEM rules search for anomalies against a human behavior baseline – NHIs have no "normal" behavior that a human baseline detects. Create separate behavioral models for each agent: expected tool call frequency, expected data volume, expected access patterns. An alert is triggered if there is a deviation from the baseline.
10-day Salesloft dwell; 6-month OpenAI plugin breach dwell
CONTROL 06
Automated Lifecycle Management With Hard Expiration
Every NHI must have an automated offboarding trigger. For AI agents: the credentials expire when the agent is decommissioned – not when someone remembers to revoke them. Quarterly automated audit of all NHIs: is this credential still in use? Is the using entity still active? Is the owning team still responsible? Any NHI that fails this check is automatically revoked.
47% of NHIs over 1 year old with no rotation — Entro Labs H1 2025
The ROI of Getting This Right

In its 2026 research of 205 CISOs, Teleport found that organizations with least-privilege NHI access reported a 17% AI agent security incident rate, and without it a 76% incident rate. That 59-percentage-point difference is the measurable ROI of NHI governance investment – and it is from one control before any of the other five above are in place.

What This Means for Polygraf AI Customers

Every AI interaction that is intercepted and inspected by Polygraf has an identity. At the input layer we check if the identity making the request is allowed to request what it is requesting. At the output layer we check if the identity is sending data that it is allowed to send. At the tool layer we enforce which identities can call which tools with which arguments.

This implies that Polygraf's inspection layer is a compensating control for NHI governance gaps upstream, but the correct posture is defense in depth: NHI governance upstream, inline policy enforcement at the agent boundary and structured audit logs that link every action to a specific identity for forensic reconstruction.

The Salesloft-Drift breach could not have been prevented by any single control. The initial access was through GitHub credential hygiene. The pivot was through AWS environment access. The exploitation was through use of legitimate OAuth token. The failure to detect was through lack of agent-specific behavioral baselines. Four separate governance failures – each preventable in isolation, collectively disastrous.

Gartner's 2026 Direction

Gartner has identified "Identity and Access Management Adapts to AI Agents" as the #1 cybersecurity trend for 2026 (published February 2026). Their advice: companies need to expand IAM frameworks to cover AI agents as first-class identity subjects with unique identity, scoped credentials, behavior monitoring and automated lifecycle management. Not as a future roadmap item. As an operational requirement.

Polygraf AI

Identity-Aware Enforcement at the Agent Boundary

Polygraf's Behavioral Control Plane links every AI interaction to an agent identity – it enforces what each identity is allowed to input, output and execute in real time. Every action is logged with identity context for forensic reconstruction. Sub-100ms. On-premise. Zero data leaves your environment.

Request a Demo →
Air-gap ready · HIPAA · SOC 2
Deploys in under an hour

NEWS & More

Insights & Updates from Polygraf.

Blog Posts

Every AI agent your company deploys creates a new identity. Most are unmanaged, over-privileged and never revoked. This is the identity crisis of 2026's breach wave.

Blog Posts

AI agents don't just respond to prompts - they plan, use tools, access memory, and take actions across enterprise systems. Each capability adds a distinct attack layer. Most enterprise security

To learn more about Polygraf, please get in touch.

At Polygraf, we envision a future where AI augments human capabilities without compromising safety, privacy, or ethical standards. Trust in our commitment to building this future with you.

Products

thank you

Your download will start now.

Thank you!

Please provide information below and
we will send you a link to download the white paper.