An applied R&D operator. We build proprietary technology, then operate it.

Press Enter to see all results · Tab to accept the suggestion · ↑↓ to navigate.

Try one of these
Blog

Non-human identities: how to secure AI agents

CyberArk counts 82 machine identities per human. Each AI agent or service needs its own identity, least privilege, short-lived keys, a named owner and offboarding.

Machine identities outnumber human ones 82 to 1, according to CyberArk’s 2025 Identity Security Landscape. AI agents add to that count quickly. Every agent and service needs the same five controls: its own identity, least privilege, short-lived credentials, a human owner and offboarding.

Identity programs were built for people. Employees join, change roles and leave, and HR events drive the access changes. Software has no HR file. Service accounts, API keys and agent tokens are created by engineers, often in a hurry, and rarely removed. This article sets out what the data shows and the controls that close the gap.

What are non-human identities, and why do AI agents multiply them?

A non-human identity is any identity used by software instead of a person. Common examples are service accounts, API keys, OAuth tokens, certificates and cloud workload identities.

AI agents add a new layer. An agent that reads email, updates a CRM and files a ticket needs a credential for each system. Ten agents with five tools each can mean fifty new credentials. Each one can authenticate, act and leak.

The number of agents is set to grow. Gartner predicted in June 2025 that 33% of enterprise software applications will include agentic AI by 2028. That share was less than 1% in 2024.

What does the data say about machine identity risk?

The CyberArk study surveyed 2,600 respondents through the research firm Vanson Bourne. Its findings, with other sources, describe a large and poorly governed attack surface:

IndicatorFigureSource
Machine identities per human identity82 to 1CyberArk, 2025
Machine identities with privileged or sensitive access42%CyberArk, 2025
Organizations that define a privileged user as human only88%CyberArk, 2025
Organizations lacking identity security controls for AI68%CyberArk, 2025
Organizations unable to secure shadow AI47%CyberArk, 2025
Secrets exposed on public GitHub in 202423,770,171 (+25%)GitGuardian, 2025
Secrets leaked in 2022 still active70%GitGuardian, 2025
Reported AI incidents233 in 2024; 362 in 2025Stanford AI Index 2025 and 2026

Three numbers stand out. First, 42% of machine identities hold sensitive access, while 88% of organizations treat only humans as privileged. The most powerful identities are often the least watched.

Second, GitGuardian’s State of Secrets Sprawl 2025 shows that leaked secrets stay usable for years. Removing a key from code does not revoke it. GitGuardian also reported a 6.4% secret leakage rate in repositories using GitHub Copilot.

Third, AI incidents are rising. The Stanford AI Index 2025 counted 233 reported AI incidents in 2024, up 56.4%. The AI Index 2026, published in April 2026, counted 362 in 2025. Not all relate to identity, but more AI in use means more reported failures.

What are the OWASP Top 10 risks for non-human identities?

The OWASP Non-Human Identities Top 10, published in December 2024, is a practical checklist for this problem. The third column is our reading of how each risk appears with AI agents.

IDRiskHow it shows up with AI agents
NHI1Improper offboardingA retired pilot agent keeps working tokens
NHI2Secret leakageAn API key pasted into a prompt, a log or a repository
NHI3Vulnerable third-party NHIA plugin or connector holds broad access to your systems
NHI4Insecure authenticationAn agent uses a static key where a stronger method exists
NHI5Overprivileged NHIAn agent that only reads tickets can also delete them
NHI6Insecure cloud deployment configurationsPipeline credentials exposed in build settings
NHI7Long-lived secretsA token that never expires, issued for a demo
NHI8Environment isolationThe same credential works in test and production
NHI9NHI reuseSeveral agents share one service account
NHI10Human use of NHIA person logs in with an agent’s credentials to fix something

What controls should every AI agent and service have?

Five controls cover most of the OWASP list. They apply to a nightly batch job and to an autonomous agent alike.

1. Its own identity

Each agent and service gets a distinct identity. When an agent acts for a person, record both: the agent as actor and the person as principal. This addresses reuse (NHI9) and human use (NHI10), and it makes every action attributable.

2. Least privilege

Grant only the permissions the task needs, scoped to specific resources. Review them when the agent gains a new tool. This addresses overprivilege (NHI5) and limits the damage of any leak.

3. Short-lived credentials

Prefer tokens that expire in minutes or hours, issued on demand. A leaked short-lived token becomes useless on its own. This addresses long-lived secrets (NHI7) and reduces the impact of leakage (NHI2).

4. A named owner

Every non-human identity needs a human owner who answers for it. Without one, no one approves its access or notices when it is no longer needed.

5. Offboarding

Retire identities on a date, not when someone remembers. Revoke credentials, remove permissions and disable the identity. This addresses the top OWASP risk, improper offboarding (NHI1).

A practical checklist for security and platform teams

  1. Inventory every non-human identity, including agents, connectors and pipeline accounts.
  2. Assign an owner to each one, and flag any identity without an owner for review.
  3. Split shared accounts so every agent and service has its own identity.
  4. Scope permissions per task and remove anything unused in the last 90 days.
  5. Replace static keys with short-lived tokens wherever the target system supports them.
  6. Scan code, prompts and logs for secrets, and revoke any secret found, not just delete it.
  7. Separate test and production credentials completely.
  8. Review third-party connectors and the access they hold.
  9. Tie offboarding to project end dates and agent retirement.
  10. Log every agent action with its identity, its principal and its permissions at that moment.

How we see it at Blackwood

Blackwood Stone Holdings is an applied research and development company specialized in artificial intelligence and advanced engineering, founded in 2009. In our identity and trust work, agents and services are identities with the same lifecycle as people: created, scoped, reviewed and retired.

We have written about how deepfakes target identity verification and about how to evaluate AI agents before deployment. Machine identity is where those two concerns meet. An agent you cannot identify is an agent you cannot evaluate, limit or switch off.

Frequently asked questions

What is a non-human identity?
A non-human identity is any identity used by software instead of a person: service accounts, API keys, tokens, certificates and, increasingly, AI agents. Each one can authenticate and act on systems.
How many machine identities are there per human?
CyberArk's 2025 Identity Security Landscape, based on 2,600 respondents, found 82 machine identities for every human identity.
What is the OWASP Non-Human Identities Top 10?
It is a list of the ten main risks for non-human identities, published by OWASP in December 2024. The first two are improper offboarding and secret leakage.
Should an AI agent use a human user's credentials?
No. Each agent should have its own identity, so its actions are attributable and its access can be limited and revoked. OWASP lists human use of non-human identities, and reuse, among the top risks.
Why do short-lived credentials matter for AI agents?
A leaked short-lived token stops working on its own. GitGuardian found that 70% of secrets leaked in 2022 were still active, which shows how long static secrets stay dangerous.
What should happen when an AI agent is retired?
Its credentials should be revoked, its permissions removed and its identity disabled on a set date. OWASP ranks improper offboarding as the top non-human identity risk.

Sources

  1. CyberArk 2025 Identity Security Landscape CyberArk via Business Wire, 2025
  2. OWASP Non-Human Identities Top 10 2025 OWASP, 2024
  3. The State of Secrets Sprawl 2025 GitGuardian, 2025
  4. Gartner predicts over 40% of agentic AI projects will be canceled by end of 2027 Gartner, 2025
  5. The 2025 AI Index Report: Responsible AI Stanford Institute for Human-Centered Artificial Intelligence, 2025
  6. The 2026 AI Index Report Stanford Institute for Human-Centered Artificial Intelligence, 2026
A woman smiling over her shoulder, the Manhattan skyline far behind her

Bring us the toughest challenge in your operation

We will show you what we have already built for it, and how we would run it with you.

Let's solve it together