Safety & security

Non-Human Identity

AI-assisted editorial review:

A term used in security for the digital identities, such as accounts, API keys and tokens, that software, automation tools and AI agents, rather than people, use when they connect to systems and receive permissions.

What does Non-Human Identity mean in simple terms?

Employees receive an account when they join a company, and the account is handled through offboarding when they leave. By contrast, the API keys and service accounts used by automation tools, and the tokens used by AI agents, often have no clear owner, so they are frequently forgotten after being created. OWASP regards these non-human identities as identities used to identify, authenticate and authorize software entities, and published a separate risk list in December 2024. If a key with more permissions than needed, or a key with no expiry date, is leaked, it can be used to break into company systems even though it is not an account a person uses. The more AI agents are connected to work tools, the more important it becomes to manage which identity an agent uses and how far it can go.

How can Non-Human Identity be explained with an analogy?

It is like an access badge that a departing employee never returned: a key that keeps opening doors even when no one knows who is responsible for it.

Where is Non-Human Identity used?

Case 1

Microsoft — An intrusion through a test account that was never cleaned up

On January 19, 2024, Microsoft announced that on the 12th of that month it had detected an attack by a nation-state actor.[2] The attacker used a password spray attack to take over an old test tenant account that was not used in production, then used that account's permissions to access some corporate email accounts and steal emails and attached documents.[2] OWASP cites this case as a real-world example of NHI1, "Improper Offboarding."[1]
Result: The attack began in late November 2023, and a "very small percentage" of corporate email accounts were affected (per Microsoft's announcement).[2]

Case 2

Microsoft AI research team — An access token posted to a public repository

On September 18, 2023, Wiz Research disclosed that an Azure storage access token shared by Microsoft's AI research team in a public GitHub repository had been configured with full permissions and to remain valid until 2051.[3] The token gave access to 38TB of internal data, including more than 30,000 Teams messages exchanged by 359 Microsoft employees.[3]
Result: Reported on June 22, 2023, and the token was revoked on June 24 (per Wiz Research's disclosure).[3]

Learning steps, limitations and developments

  1. List the API keys, automation accounts and AI agent connections your company uses, and assign an owner to each.
  2. Give keys and tokens only the permissions the work requires, and set an expiry date.
  3. When a project ends or the owner changes, revoke the connected keys at the same time.
  4. Do not write keys directly into code, documents or shared folders; keep them in a secrets storage feature.

Figures showing the scale of non-human identities mostly come from security vendor surveys; a CyberArk survey counted 82 per person, but the number varies widely by organization.[4] How to manage AI agents' identities and permissions is still at the stage where NIST released a concept paper in February 2026 and is gathering comments, so standards are still being worked out.[5]

How has Non-Human Identity evolved?

2023.09
Access token leak disclosed
A case becomes known in which a long-lived token posted to a public repository exposed a large amount of internal data.
2024.12
OWASP NHI Top 10
A list of the top 10 risks of non-human identities, such as service accounts and API keys, is published.
2025.12
Agent identity and privilege abuse
Identity and privilege abuse is included in OWASP's risk list for agentic applications.
2026.02
AI agent identity management
NIST releases a concept paper on managing AI agents' identities and permissions and begins gathering comments.

Which concepts are related to Non-Human Identity?

  • Underlying technology
    APIAPI keys are a typical non-human identity
  • Underlying technology
    OAuthA standard for delegating permissions to apps and agents
  • Related risk
    Excessive AgencyA state in which an agent has been given too many permissions
  • What is managed
    AI agentAn actor that connects to systems and works on behalf of people

Human Accounts vs Non-Human Identity

ComparisonHuman accountNon-human identity
OwnerThe employee themselvesOften unclear who created it
Sign-in methodPassword, multi-factor authenticationAPI keys, tokens, certificates
When it is cleaned upCleaned up through the offboarding processRemains unless there is a separate process
Typical risksPhishing, password theftKey leaks, excessive permissions

Which sources explain Non-Human Identity?

  1. OWASP — OWASP Non-Human Identities Top 10 - 2025 (2024-12-24) — https://owasp.github.io/www-project-non-human-identities-top-10/2025/
  2. Microsoft — Microsoft Actions Following Attack by Nation State Actor Midnight Blizzard (2024-01-19) — https://www.microsoft.com/en-us/msrc/blog/2024/01/microsoft-actions-following-attack-by-nation-state-actor-midnight-blizzard
  3. Wiz Research — 38TB of data accidentally exposed by Microsoft AI researchers (2023-09-18) — https://www.wiz.io/blog/38-terabytes-of-private-data-accidentally-exposed-by-microsoft-ai-researchers
  4. CyberArk — Machine Identities Outnumber Humans by More Than 80 to 1: New Report Exposes the Exponential Threats of Fragmented Identity Security (2025-04-23) — https://www.businesswire.com/news/home/20250423817886/en/Machine-Identities-Outnumber-Humans-by-More-Than-80-to-1-New-Report-Exposes-the-Exponential-Threats-of-Fragmented-Identity-Security
  5. NIST NCCoE — Accelerating the Adoption of Software and Artificial Intelligence Agent Identity and Authorization (2026-02-05) — https://csrc.nist.gov/pubs/other/2026/02/05/accelerating-the-adoption-of-software-and-ai-agent/ipd