Skip to content

The Non-Human Identity Explosion

The 45:1 Ratio Nobody's Managing

Here's a number that should keep every CISO up at night: for every human identity in a typical enterprise, there are at least 45 non-human identities. In cloud-native organizations, that ratio is closer to 100:1.

Non-human identities - service accounts, API keys, bot tokens, machine certificates, OAuth client credentials, CI/CD pipeline tokens, and now AI agent identities - have quietly become the dominant identity type in every enterprise. And unlike human identities, which get onboarded with HR processes, assigned to managers, and deactivated when people leave, non-human identities are created casually, managed inconsistently, and forgotten routinely.

A 2024 analysis of enterprise environments found that the average organization with 10,000 employees had over 450,000 non-human identities. Of those, roughly 40% were dormant (unused for 90+ days), 25% had permissions far exceeding their actual needs, and 15% had no identifiable owner.

Now add AI agents to the mix.

What Counts as a Non-Human Identity

Before we go further, let's map the landscape. Non-human identities aren't a single thing - they're a category that keeps expanding.

Non-Human Identity Taxonomy
============================

Service Accounts
  +-- Cloud IAM service accounts (AWS, GCP, Azure)
  +-- Database service accounts
  +-- Application service accounts (Active Directory)
  +-- Kubernetes service accounts

API Keys and Tokens
  +-- Developer API keys
  +-- Third-party integration tokens
  +-- Webhook signing secrets
  +-- CI/CD pipeline tokens
  +-- Container registry tokens

Machine Certificates
  +-- TLS/SSL certificates
  +-- mTLS client certificates
  +-- Code signing certificates
  +-- SSH keys

Bot and Automation Identities
  +-- RPA bot credentials
  +-- Chatbot service accounts
  +-- Monitoring agent credentials
  +-- Backup system credentials

AI Agent Identities  [THE NEW CATEGORY]
  +-- Coding assistant tokens
  +-- Autonomous agent credentials
  +-- Multi-agent system service accounts
  +-- Agent-to-agent delegation tokens
  +-- MCP server credentials

Each category has its own lifecycle, rotation requirements, and governance gaps. But the newest category - AI agent identities - is growing fastest and is governed least.

Why This Matters More Than You Think

The scale of non-human identities isn't just an administrative headache. It's a fundamental security problem. Here's why.

The Attack Surface Math

Every non-human identity is a potential entry point. Unlike human identities, which are protected by MFA, password policies, and security awareness training, most non-human identities are protected by... a string of characters stored somewhere.

Identity Type Typical Protection Rotation Frequency MFA Capable?
Human user Password + MFA 90 days Yes
Service account Static password Rarely/never No
API key Key string Varies widely No
Bot token OAuth token At expiry No
AI agent credential Inherited or static Rarely No
Machine certificate PKI certificate Annually N/A

The pattern is clear. Human identities get layered protections. Non-human identities get a secret and a prayer.

The Ownership Problem

When a developer creates a service account to connect their application to a database, who owns that identity? The developer? Their team? The application? The database team?

In practice, nobody owns it. The developer who created it moves to another team or leaves the company. The service account continues to work. Nobody knows it exists until it either breaks something or gets compromised.

This ownership vacuum is exponentially worse for AI agent identities. When a platform team deploys an AI coding assistant, they create service accounts, API tokens, and OAuth credentials for the agent. Those credentials are shared across the team. When the assistant is updated to a new version, old credentials may persist alongside new ones. When a team member leaves, their personal tokens that were shared with the agent aren't revoked because nobody knows the agent was using them.

Warning

In a 2024 survey of enterprise security teams, 68% reported having no inventory of non-human identities, and 73% had no process for deprovisioning machine identities when their associated human owner left the organization.

The Traditional IAM Gap

Identity and Access Management systems were built for humans. That statement sounds obvious, but its implications are profound.

What IAM Was Designed For

Traditional IAM systems - Active Directory, Okta, Azure AD (now Entra ID), Ping Identity - were architected around a set of assumptions that don't hold for non-human identities:

  1. Identities map to people. Every identity has a name, an email, a department, a manager. Lifecycle events (hiring, transfer, termination) drive identity changes.

  2. Authentication is interactive. Humans can type passwords, approve push notifications, insert hardware keys, and answer security questions.

  3. Access patterns are predictable. Humans work business hours, from known locations, accessing a relatively stable set of applications.

  4. Governance is periodic. Access reviews happen quarterly. Certifications happen annually. The pace of change is manageable.

None of these assumptions apply to machine identities. Service accounts don't have managers. API keys can't approve push notifications. AI agents work 24/7 from cloud data centers. And the pace of creation and change far exceeds any quarterly review cycle.

The Frankenstack That Results

Because traditional IAM doesn't handle non-human identities well, organizations end up with a patchwork of systems managing different NHI types:

+---------------------------+
|    Human IAM (Okta,       |
|    Azure AD, etc.)        |
+---------------------------+
          |
          | (gap)
          |
+---------------------------+
|  Secrets Management       |
|  (Vault, AWS Secrets)     |  <-- Handles storage, not governance
+---------------------------+
          |
          | (gap)
          |
+---------------------------+
|  Cloud IAM                |
|  (AWS IAM, GCP IAM)      |  <-- Per-cloud, no unified view
+---------------------------+
          |
          | (gap)
          |
+---------------------------+
|  Certificate Management   |
|  (Venafi, cert-manager)   |  <-- Certificates only
+---------------------------+
          |
          | (gap - WIDE OPEN)
          |
+---------------------------+
|  AI Agent Identity        |
|  (???)                    |  <-- Nothing exists here
+---------------------------+

Each system handles a piece of the problem. No system handles all of it. And the gaps between systems are where breaches happen.

The AI Agent Identity Crisis

AI agents introduce identity challenges that are qualitatively different from traditional machine identities. Here's what makes them unique.

Agents Act on Behalf of Others

A service account runs a specific application. Its actions are predictable and attributable. An AI agent acts on behalf of a human - but with its own judgment about how to accomplish the human's goal. This creates a delegation problem that traditional IAM has no answer for.

When an agent performs an action, you need to answer three questions:

  • Who authorized this action? (the human who launched the agent)
  • Who decided to take this specific approach? (the agent)
  • Whose permissions should apply? (unclear)

Agents Compose Access

A traditional service account accesses one system with one credential. AI agents routinely chain across multiple systems in a single task. An agent asked to "deploy the latest build to staging" might need to:

  1. Pull code from GitHub (Git credentials)
  2. Build the application (CI/CD credentials)
  3. Push a container image (registry credentials)
  4. Update Kubernetes deployment (cluster credentials)
  5. Verify the deployment (monitoring credentials)
  6. Update the ticket (project management credentials)

Each of those credentials represents a different identity, a different system, and a different trust boundary. The agent isn't just using one identity - it's composing six identities into a single workflow.

Agents Create Identities

Perhaps most concerning, AI agents can create new non-human identities as part of their work. An agent setting up a new microservice might create:

  • A Kubernetes service account
  • An AWS IAM role
  • A database user
  • An API key for inter-service communication
  • A webhook token for notifications

These agent-created identities inherit no governance process. They exist because an AI decided they were needed. They have no owner, no expiration, and no review process. They are, in the most literal sense, shadow IT - created in the shadows of autonomous agent activity.

Tip

Start tracking agent-created identities immediately. Implement a policy that any identity created by an AI agent must be tagged with the agent's ID, the originating human's ID, the creation reason, and a mandatory expiration date. Even if you can't prevent agent identity creation today, you can at least maintain visibility.

The Governance Gap in Numbers

Let's quantify the gap between where organizations are and where they need to be.

Governance Capability Human Identities Non-Human Identities AI Agent Identities
Complete inventory 95% of orgs 32% of orgs <5% of orgs
Assigned owner 99% 28% <10%
Regular access review 78% 12% <3%
Automated deprovisioning 85% 15% <2%
Anomaly detection 65% 18% <5%
Compliance reporting 90% 20% <1%

These numbers tell a stark story. Organizations have spent decades building governance processes for human identities. They've barely started for machine identities. And for AI agent identities, they haven't started at all.

What's at Stake: The Breach Scenarios

Non-human identity compromise is already a leading attack vector. Here are the scenarios that keep security teams up at night.

Scenario 1: The Forgotten Service Account

An AI agent is deployed for a proof-of-concept that runs for three weeks. The POC ends, the team moves on, but the agent's service account remains active with production database read access. Eighteen months later, the credentials appear in a data dump from a compromised third-party tool. An attacker uses them to exfiltrate customer records.

Scenario 2: The Over-Privileged Token

A developer creates a personal access token with broad permissions to use with an AI coding assistant. They share the token with their team. The token has no expiration. Three team members leave the company over the next year. The token remains active, now associated with departed employees who technically still have access.

Scenario 3: The Agent-Created Backdoor

An AI operations agent, while setting up a new service, creates an IAM role with admin permissions "for initial setup." The agent was supposed to reduce those permissions after setup was complete, but the task timed out before the permission reduction step. The admin role persists, undiscovered, until an attacker finds it.

Scenario 4: The Token Chain

An attacker compromises a low-privilege bot token used for Slack notifications. They use the bot's access to read Slack channels where developers share debugging information - including temporary credentials and API endpoints. Those credentials lead to a CI/CD system where additional tokens are stored. The chain continues until the attacker has production access - all through non-human identities.

The Compliance Blind Spot

Most compliance frameworks - SOC 2, ISO 27001, HIPAA - were written for human-centric identity management. They require access reviews, role-based access control, and termination procedures. But they don't specifically address:

  • How to conduct access reviews for machine identities that operate autonomously
  • How to apply least privilege to agents that determine their own access needs at runtime
  • How to maintain audit trails when agents create other identities
  • How to define "termination procedures" for autonomous agents

This creates a compliance blind spot. Organizations can pass SOC 2 audits while having hundreds of unmanaged machine identities with excessive permissions. The audit checks "do you have access reviews?" and the answer is "yes, for human users." The machine identities - the ones that actually represent the larger attack surface - go unreviewed.

Forward-thinking organizations are proactively extending their compliance controls to cover NHIs, even when the framework doesn't explicitly require it. This means including service accounts in quarterly access reviews, documenting machine identity lifecycle procedures, and treating agent identity management with the same rigor as human identity management.

Building an NHI Management Strategy

Addressing the non-human identity explosion requires both immediate tactical actions and longer-term strategic investments.

Immediate Actions (0-30 Days)

Inventory what you have. Use cloud provider tools (AWS IAM Access Analyzer, GCP Policy Analyzer, Azure AD reports) to enumerate service accounts, API keys, and machine identities. Cross-reference with your secrets management system. Identify identities with no recent usage.

Find the high-risk NHIs. Prioritize identities that are over-privileged (admin access that isn't needed), dormant (unused for 90+ days), unowned (no identifiable human responsible), or externally accessible (can be used from outside your network).

Kill the obvious risks. Deactivate dormant identities. Rotate credentials that haven't been rotated in over a year. Remove admin permissions from service accounts that don't need them.

Short-Term Improvements (30-90 Days)

Establish ownership. Every non-human identity needs a human owner - someone responsible for its continued existence, its permissions, and its eventual decommissioning. Implement a policy that NHIs without owners get deactivated after 30 days.

Implement expiration policies. No non-human credential should be permanent. Set maximum lifetimes for API keys (90 days), service account passwords (60 days), and agent tokens (24 hours or less).

Deploy secrets detection. Use tools like GitLeaks, TruffleHog, or cloud-native secret scanning to detect credentials that have leaked into code repositories, chat systems, or documentation.

Strategic Investments (90+ Days)

Adopt workload identity federation. Replace long-lived credentials with short-lived, automatically rotated tokens wherever possible. AWS IAM Roles Anywhere, GCP Workload Identity Federation, and Azure Managed Identities can eliminate entire classes of credential management problems.

Build an NHI governance program. Treat non-human identity governance with the same rigor as human identity governance. Regular access reviews, certification processes, and compliance reporting should cover all identity types.

Plan for agent identity. The next chapter covers agent authentication in detail, but start now by defining how AI agent identities will be provisioned, scoped, monitored, and decommissioned in your environment.

Note

For a comprehensive look at IAM architecture for SaaS environments, see Deepak Gupta's article on building enterprise cybersecurity strategy.

The Bottom Line

The non-human identity explosion isn't a future problem. It's a current crisis that's getting worse as AI agents multiply. Organizations that built their identity management around humans now face an environment where humans are the minority identity type - and the minority is the only one being governed.

The solution isn't to stop deploying AI agents or machine identities. That ship has sailed. The solution is to extend governance, visibility, and control to cover all identity types - with particular urgency around the newest and fastest-growing category: autonomous AI agents.

Your identity infrastructure was built for a world of human workers. The world has changed. Your infrastructure needs to change with it.