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:
| Indicator | Figure | Source |
|---|---|---|
| Machine identities per human identity | 82 to 1 | CyberArk, 2025 |
| Machine identities with privileged or sensitive access | 42% | CyberArk, 2025 |
| Organizations that define a privileged user as human only | 88% | CyberArk, 2025 |
| Organizations lacking identity security controls for AI | 68% | CyberArk, 2025 |
| Organizations unable to secure shadow AI | 47% | CyberArk, 2025 |
| Secrets exposed on public GitHub in 2024 | 23,770,171 (+25%) | GitGuardian, 2025 |
| Secrets leaked in 2022 still active | 70% | GitGuardian, 2025 |
| Reported AI incidents | 233 in 2024; 362 in 2025 | Stanford 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.
| ID | Risk | How it shows up with AI agents |
|---|---|---|
| NHI1 | Improper offboarding | A retired pilot agent keeps working tokens |
| NHI2 | Secret leakage | An API key pasted into a prompt, a log or a repository |
| NHI3 | Vulnerable third-party NHI | A plugin or connector holds broad access to your systems |
| NHI4 | Insecure authentication | An agent uses a static key where a stronger method exists |
| NHI5 | Overprivileged NHI | An agent that only reads tickets can also delete them |
| NHI6 | Insecure cloud deployment configurations | Pipeline credentials exposed in build settings |
| NHI7 | Long-lived secrets | A token that never expires, issued for a demo |
| NHI8 | Environment isolation | The same credential works in test and production |
| NHI9 | NHI reuse | Several agents share one service account |
| NHI10 | Human use of NHI | A 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
- Inventory every non-human identity, including agents, connectors and pipeline accounts.
- Assign an owner to each one, and flag any identity without an owner for review.
- Split shared accounts so every agent and service has its own identity.
- Scope permissions per task and remove anything unused in the last 90 days.
- Replace static keys with short-lived tokens wherever the target system supports them.
- Scan code, prompts and logs for secrets, and revoke any secret found, not just delete it.
- Separate test and production credentials completely.
- Review third-party connectors and the access they hold.
- Tie offboarding to project end dates and agent retirement.
- 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.