# OWASP Top 10 Non-Human Identities Risks - 2025
> First OWASP ranking of risks for service accounts, API keys and tokens; an incubator list ranked by OWASP risk rating and the identity layer under agents that hold credentials.
- Publisher: OWASP Non-Human Identities Top 10 project · Edition: 2025 · Released: 2024-12-24 · Status: incubator project
- Items: 10 · Licence of the source: CC BY-SA 4.0
- Official page: https://owasp.org/www-project-non-human-identities-top-10/2025/
- Source: https://github.com/OWASP/www-project-non-human-identities-top-10/tree/16f8b79394662c6467eb7a1907b6af7e209b1fd9/2025/docs/ (pinned commit)
- Canonical page: https://llms-technical-reviews.com/security/owasp-nhi-top10-2025/
## Items at a glance
- **NHI1:2025 Improper Offboarding** — themes: identity, access
- **NHI2:2025 Secret Leakage** — themes: identity, data-leak
- **NHI3:2025 Vulnerable Third-Party NHI** — themes: identity, supply-chain
- **NHI4:2025 Insecure Authentication** — themes: identity
- **NHI5:2025 Overprivileged NHI** — themes: access, identity
- **NHI6:2025 Insecure Cloud Deployment Configurations** — themes: identity, config, supply-chain
- **NHI7:2025 Long-Lived Secrets** — themes: identity
- **NHI8:2025 Environment Isolation** — themes: identity, config
- **NHI9:2025 NHI Reuse** — themes: identity, access
- **NHI10:2025 Human Use of NHI** — themes: identity, monitoring
## Review
## What this list is

The OWASP Top 10 Non-Human Identities Risks 2025 is the first edition from the OWASP Non-Human Identities Top 10 project, which OWASP rates as an incubator project. The release notes record a first version on 9 December 2024 and the go-live on 24 December 2024, with the ten item pages uploaded one by one in between. A non-human identity (NHI) is anything that authenticates without a person typing a password: service accounts, cloud roles and managed identities, API and access keys, OAuth applications and their tokens, certificates, CI/CD credentials. The list ranks the ten ways these identities most often go wrong, from identities nobody switched off to people logging in with them.

The list is about the identity and its credential, across the whole estate. Other OWASP lists cover the same ground inside one domain: [CICD-SEC-6 Insufficient Credential Hygiene](https://llms-technical-reviews.com/security/owasp-cicd-top10/#cicd-sec-6-insufficient-credential-hygiene) for pipelines, [K03 Secrets Management Failures](https://llms-technical-reviews.com/security/owasp-kubernetes-top10/#k03-secrets-management-failures) for clusters, [API2:2023 Broken Authentication](https://llms-technical-reviews.com/security/owasp-api-top10-2023/#api22023-broken-authentication) for APIs. The NHI list predates the agent lists and never mentions AI agents. Yet an agent that holds a GitHub token, a cloud role or the OAuth grant behind an MCP server is an NHI in every sense. The OWASP Top 10 for Agentic Applications 2026 says so itself: its Appendix C maps each NHI entry to agentic entries, and the GenAI data security catalogue builds [DSGAI02 Agent Identity & Credential Exposure](https://llms-technical-reviews.com/security/owasp-genai-data-security-2026/#dsgai02-agent-identity--credential-exposure) on NHI vocabulary. Read this list as the identity layer underneath [ASI03 Identity and Privilege Abuse](https://llms-technical-reviews.com/security/owasp-agentic-top10-2026/#asi03-identity-and-privilege-abuse) and [MCP01:2025 Token Mismanagement & Secret Exposure](https://llms-technical-reviews.com/security/owasp-mcp-top10/#mcp012025-token-mismanagement--secret-exposure).

## How it was made

The methodology page describes four steps. The team first drafted twelve candidate risks, drawing on community experts, vulnerability databases and public incident reports, and kept only issues reported in the previous three years. The draft went out for public comment. Next the team collected supporting data: a compilation of breaches from the past three years in which an NHI was abused, NVD CVE records with their CVSS scores, and survey reports (Datadog's State of Cloud Security for 2022 to 2024, the Cloud Security Alliance 2024 survey on NHI security, and the Verizon 2024 DBIR). Each item page lists its "data points" from these sources.

Ranking used the OWASP Risk Rating Methodology. Each risk got a score from 1 to 3 on four factors: exploitability, prevalence, detectability and technical impact. The team then weighted the factors and took a weighted average. The ranking-criteria page adds two assumptions: score inherent risk only (as if the organisation is already exposed), and score impact at its worst case.

Two limits are worth knowing. The weights and final scores live in an external spreadsheet, not in the repository, and the text does not say which two of the twelve drafts were dropped. But the factor table printed on each item page does let you check the order: summed without weights, the ten items score 12, 11, 10, 9, 9, 8, 8, 8, 8 and 7, a sequence that never goes up. So the published order is consistent with its own ratings, and the weights only break ties (four items share a score of 8). Business impact is marked "Specific" on every item, so it played no part in the ranking.

## The items

### NHI1:2025 Improper Offboarding

**What it is.** An NHI outlives its purpose or its owner. The source names three forms: stale or dormant identities whose service was retired, orphaned identities whose owner left with no successor, and "partially offboarded" cases where a person who could read a credential leaves and the credential is never rotated.

**How it shows up.** A contractor creates the deploy key, the webhook signing secret and a payments API key for your SaaS. On their last day, SSO disables their account, but the keys they copied still work. Or a test integration that connected a staging tenant to production data is never removed. The project's introduction cites the Midnight Blizzard breach (January 2024): a legacy OAuth application in a test tenant still held rights that reached Microsoft's production environment. Agent prototypes are the newest orphans: the experiment ends, the OAuth grant stays.

**What to do.** Give every NHI a named owner and a review date. Make the leaver process list the NHIs a person owned or could read, then decommission or transfer them and rotate the secrets. Recertify on a schedule and disable identities with no recent use before you delete them. To test, pick an engineer who left last quarter, list the secrets they could read (vault audit log, CI secret settings) and check that each was rotated after their exit date.

**Related:** [ASI03 Identity and Privilege Abuse](https://llms-technical-reviews.com/security/owasp-agentic-top10-2026/#asi03-identity-and-privilege-abuse), [API9:2023 Improper Inventory Management](https://llms-technical-reviews.com/security/owasp-api-top10-2023/#api92023-improper-inventory-management), [DSGAI02 Agent Identity & Credential Exposure](https://llms-technical-reviews.com/security/owasp-genai-data-security-2026/#dsgai02-agent-identity--credential-exposure).

### NHI2:2025 Secret Leakage

**What it is.** A secret ends up somewhere it was never meant to be stored: source code, a committed config file, CI logs, a ticket, a chat channel, a wiki page, a developer laptop. The source rates detection as hard because the number of places is so large.

**How it shows up.** The source's examples are an Azure SAS token committed to a public repository (the 2023 Microsoft AI research exposure) and a privileged-access-management admin key left in a script on an open file share. LLM systems add new places. A key pasted into a chat assistant lands in conversation history, observability traces and maybe a labelling queue. A coding agent with file access reads `.env` and repeats it in its answer or in a pull request description.

**What to do.** Remove the secret where you can: short-lived credentials from workload identity need no storage. Keep the rest in a secrets manager and inject them at runtime. Scan for secrets in pre-commit hooks and CI, and also in logs, traces, tickets and chat exports. Treat every hit as revoke-and-rotate; deleting the commit does not help. To test, run a scanner over full Git history and a day of traces, and plant a canary token to see whether anyone notices. The OWASP Secrets Management Cheat Sheet and the OWASP WrongSecrets project are good training material.

**Related:** [MCP01:2025 Token Mismanagement & Secret Exposure](https://llms-technical-reviews.com/security/owasp-mcp-top10/#mcp012025-token-mismanagement--secret-exposure), [T3.2 Credential Leakage](https://llms-technical-reviews.com/security/owasp-mcp-taxonomy/#t32-credential-leakage), [CICD-SEC-6 Insufficient Credential Hygiene](https://llms-technical-reviews.com/security/owasp-cicd-top10/#cicd-sec-6-insufficient-credential-hygiene), [CWE-798 Use of Hard-coded Credentials](https://llms-technical-reviews.com/security/cwe-top25-2024/#cwe-798-use-of-hard-coded-credentials), [DSGAI14 Excessive Telemetry & Monitoring Leakage](https://llms-technical-reviews.com/security/owasp-genai-data-security-2026/#dsgai14-excessive-telemetry--monitoring-leakage).

### NHI3:2025 Vulnerable Third-Party NHI

**What it is.** You hand credentials to third parties: IDE extensions, SaaS integrations, OAuth apps, BI and analytics vendors. Those credentials are now only as safe as the third party. A breach at the vendor, or one malicious update, turns your token into the attacker's.

**How it shows up.** An editor extension can read the developer's personal access token and environment variables. A BI vendor holds a database login you created for it (the source cites the Sisense breach). After the list went live, the page gained the Salesloft Drift case of August 2025: stolen OAuth tokens of a chat integration were used to pull Salesforce data, and the attacker then searched that data for cloud keys and data-warehouse tokens. If you run a SaaS, remember the other direction too. Every "Connect to X" button you offer creates a third-party NHI in your customer's tenant, and you are that third party.

**What to do.** Keep an inventory of OAuth grants and integrations with their scopes and last use. Grant the narrowest scopes, prefer short-lived tokens, and alert on token use from new networks or with unusual query patterns. Have a playbook that revokes and reissues every token of one integration at once, and rehearse it. MCP servers and agent plug-ins belong in the same inventory: they receive tokens, and an update can change what they do.

**Related:** [ASI04 Agentic Supply Chain Vulnerabilities](https://llms-technical-reviews.com/security/owasp-agentic-top10-2026/#asi04-agentic-supply-chain-vulnerabilities), [T2.1 Rug Pull](https://llms-technical-reviews.com/security/owasp-mcp-taxonomy/#t21-rug-pull), [CICD-SEC-8 Ungoverned Usage of 3rd Party Services](https://llms-technical-reviews.com/security/owasp-cicd-top10/#cicd-sec-8-ungoverned-usage-of-3rd-party-services), [API10:2023 Unsafe Consumption of APIs](https://llms-technical-reviews.com/security/owasp-api-top10-2023/#api102023-unsafe-consumption-of-apis), [DSGAI06 Tool, Plugin & Agent Data Exchange Risks](https://llms-technical-reviews.com/security/owasp-genai-data-security-2026/#dsgai06-tool-plugin--agent-data-exchange-risks).

### NHI4:2025 Insecure Authentication

**What it is.** The identity signs in with a weak or deprecated method: the OAuth implicit flow, authorization code without PKCE, a home-made token scheme, an app password that skips MFA, a username-and-password flow, or a static key where the platform offers a credential-less option.

**How it shows up.** A mailbox integration uses an app password, so MFA on that account no longer protects the path the integration uses. An internal API accepts JWTs minted on demand by a custom endpoint and never checks the audience. A CRM integration still uses a username-password OAuth flow that the vendor itself recommends disabling (the source cites that guidance). The source rates this item easy to exploit and widespread, but only moderate in impact.

**What to do.** Use standard flows only: client credentials or workload identity federation for machine-to-machine calls, PKCE for anything that involves a user, and the OAuth 2.1 profile as the baseline. Turn off app passwords and legacy protocols at tenant level. Prefer platform-issued short-lived credentials (instance metadata, OIDC federation, SPIFFE) over stored keys. To test, query identity-provider sign-in logs for legacy protocols and app passwords, and list the grant types each OAuth client is allowed to use. For agents, the GenAI data catalogue makes a related point: three-legged OAuth assumes a human who consents, and an autonomous agent cannot.

**Related:** [A07:2025 Authentication Failures](https://llms-technical-reviews.com/security/owasp-top10-web-2025/#a072025-authentication-failures), [API2:2023 Broken Authentication](https://llms-technical-reviews.com/security/owasp-api-top10-2023/#api22023-broken-authentication), [MCP07:2025 Insufficient Authentication & Authorization](https://llms-technical-reviews.com/security/owasp-mcp-top10/#mcp072025-insufficient-authentication--authorization), [ISR07:2024 Insecure Authentication Methods and Default Credentials](https://llms-technical-reviews.com/security/owasp-infrastructure-top10/#isr072024-insecure-authentication-methods-and-default-credentials).

### NHI5:2025 Overprivileged NHI

**What it is.** The identity holds far more rights than its job needs. The source notes that NHIs are often admin accounts, because right-sizing them is slow work. Exploiting this needs a separate way in first, so exploitability is rated hard. Impact is severe.

**How it shows up.** The source's examples: a Jenkins VM with the cloud administrator policy when it only deploys containers; an OAuth app given directory-wide write when it reads one storage folder; a database service account with admin rights over the whole cloud account. In a SaaS, it is the single backend key that can read every tenant. In an agent, it is the tool whose credential is broader than the tool: a "read my calendar" tool backed by a token with full mail and drive scope, or a text-to-SQL agent that connects as the database owner.

**What to do.** Grant least privilege, and use last-accessed data from your cloud or identity provider to trim unused rights. Add organisation-level deny rules that block wildcard admin on workload roles. Use just-in-time elevation for the rare task that needs more, and review privileged NHIs on a schedule. To test, compare granted against used permissions over 90 days, and in a test environment try actions outside the identity's job with its own credential.

**Related:** [ASI03 Identity and Privilege Abuse](https://llms-technical-reviews.com/security/owasp-agentic-top10-2026/#asi03-identity-and-privilege-abuse), [LLM03:2026 Excessive Agency](https://llms-technical-reviews.com/security/owasp-llm-top10-2026/#llm032026-excessive-agency), [MCP02:2025 Privilege Escalation via Scope Creep](https://llms-technical-reviews.com/security/owasp-mcp-top10/#mcp022025-privilege-escalation-via-scope-creep), [AST03 Over-Privileged Skills](https://llms-technical-reviews.com/security/owasp-agentic-skills-top10/#ast03-over-privileged-skills), [K02 Overly Permissive Authorization Configurations](https://llms-technical-reviews.com/security/owasp-kubernetes-top10/#k02-overly-permissive-authorization-configurations).

### NHI6:2025 Insecure Cloud Deployment Configurations

**What it is.** Despite the broad name, this item is about one thing: how CI/CD pipelines authenticate to the cloud. Either the pipeline stores static cloud keys as secrets, or it uses OIDC federation with a trust policy that does not pin down who may use it.

**How it shows up.** A cloud role trusts the CI platform's OIDC issuer but does not restrict the `sub` claim, so any project on that platform can assume it (the source links a write-up on misconfigured GitLab OIDC roles). Or a service principal secret is written into a workflow file that later becomes public. Because pipelines usually hold high privileges, the result is often a supply chain compromise or direct access to production.

**What to do.** Replace static keys with OIDC federation. Pin issuer, audience and subject to a specific repository and branch or deployment environment. Give each pipeline its own role with only the rights it needs, and scan pipeline configuration for credentials. To test, request a token from a fork or an unrelated project on the same CI platform and try to assume the role; it must fail. Review every role trust policy for wildcard subjects.

**Related:** [CICD-SEC-2 Inadequate Identity and Access Management](https://llms-technical-reviews.com/security/owasp-cicd-top10/#cicd-sec-2-inadequate-identity-and-access-management), [CICD-SEC-6 Insufficient Credential Hygiene](https://llms-technical-reviews.com/security/owasp-cicd-top10/#cicd-sec-6-insufficient-credential-hygiene), [CNAS-4 CI/CD pipeline & software supply chain flaws](https://llms-technical-reviews.com/security/owasp-cloud-native-top10/#cnas-4-cicd-pipeline--software-supply-chain-flaws), [A02:2025 Security Misconfiguration](https://llms-technical-reviews.com/security/owasp-top10-web-2025/#a022025-security-misconfiguration).

### NHI7:2025 Long-Lived Secrets

**What it is.** A secret that never expires, or expires far in the future. On its own it causes nothing; it multiplies the damage of every leak in [NHI2:2025 Secret Leakage](#nhi22025-secret-leakage), because a stolen secret keeps working.

**How it shows up.** An attacker with a foothold finds a year-old data dump that holds an admin token, and the token still works. The project's introduction cites the Internet Archive case (October 2024), where unrotated tokens for its support platform were abused. In a SaaS, look at your own product: customer API keys and personal access tokens that can be created with no expiry become long-lived NHIs in someone else's integration. The source's second example, a long-lived browser session cookie stolen by an infostealer, is really a human session and stretches the item's scope.

**What to do.** Make short-lived credentials the default and rotate whatever must stay static, automatically. Enforce a maximum age when the credential is issued; refuse to create tokens with no expiry. Ask for fresh authentication before sensitive actions. To test, produce a key-age report across cloud accounts and the secrets manager, and check whether your own product lets a customer create a key that never expires. For agents, the GenAI data catalogue sets the bar higher: no long-lived tokens anywhere in an agent's tool chain.

**Related:** [MCP01:2025 Token Mismanagement & Secret Exposure](https://llms-technical-reviews.com/security/owasp-mcp-top10/#mcp012025-token-mismanagement--secret-exposure), [T5.1 Token Theft](https://llms-technical-reviews.com/security/owasp-mcp-taxonomy/#t51-token-theft), [CICD-SEC-6 Insufficient Credential Hygiene](https://llms-technical-reviews.com/security/owasp-cicd-top10/#cicd-sec-6-insufficient-credential-hygiene), [DSGAI02 Agent Identity & Credential Exposure](https://llms-technical-reviews.com/security/owasp-genai-data-security-2026/#dsgai02-agent-identity--credential-exposure).

### NHI8:2025 Environment Isolation

**What it is.** The same NHI works in development, test, staging and production. Then a breach of a weakly protected test environment is a breach of production.

**How it shows up.** The source's examples are one cloud access key used against mock data in test and real data in production, and one managed identity with rights in both a test and a production subscription. In a SaaS, the familiar version is a staging app configured with the production payment or email-sending key "so it behaves like the real thing". In an AI system, an evaluation harness or a sandboxed agent runs with the production MCP server's credentials.

**What to do.** Issue separate NHIs per environment. Put environments in separate cloud accounts, subscriptions or projects so that policy, not discipline, stops a test identity from touching production. Add deny rules for non-production principals on production resources, and alert when one tries. To test, take each non-production credential and try to read one production resource. Note that the source rates prevalence "uncommon" for this item alone, and the page heading still reads "NHI8:2024".

**Related:** [NHI9:2025 NHI Reuse](#nhi92025-nhi-reuse), [K08 Cluster-To-Cloud Lateral Movement](https://llms-technical-reviews.com/security/owasp-kubernetes-top10/#k08-cluster-to-cloud-lateral-movement), [ISR06:2024 Insecure Network Access Management](https://llms-technical-reviews.com/security/owasp-infrastructure-top10/#isr062024-insecure-network-access-management).

### NHI9:2025 NHI Reuse

**What it is.** Several applications, services or components share one identity. One compromise reaches all of them, the audit trail cannot say which component acted, and rotation breaks everything at once, so it rarely happens.

**How it shows up.** Many Kubernetes pods share one service account, including pods that orchestrate the cluster. Several apps call a third-party API with the same key. One cloud role serves many workloads. The source also cites a cloud provider bulletin on cross-customer bucket access. Multi-agent systems repeat the pattern: when every agent runs on the orchestrator's token, the GenAI data catalogue notes, there is no identity boundary between agents and lateral movement looks like normal traffic.

**What to do.** Give each workload or component its own identity, and bind it so that only that workload can use it (workload attestation, per-pod service accounts). Keep identities per environment as in NHI8, and scope each one to its own job. Keep a map from identity to its consumers. To test, count the distinct workloads or source addresses that use each credential in your logs; more than one is a finding.

**Related:** [NHI8:2025 Environment Isolation](#nhi82025-environment-isolation), [ASI07 Insecure Inter-Agent Communication](https://llms-technical-reviews.com/security/owasp-agentic-top10-2026/#asi07-insecure-inter-agent-communication), [T9 Identity Spoofing & Impersonation](https://llms-technical-reviews.com/security/owasp-agentic-threats-t15/#t9-identity-spoofing--impersonation), [K02 Overly Permissive Authorization Configurations](https://llms-technical-reviews.com/security/owasp-kubernetes-top10/#k02-overly-permissive-authorization-configurations).

### NHI10:2025 Human Use of NHI

**What it is.** People sign in as a service account or use a shared machine token: to debug, for convenience, or to get around MFA and IP rules on their own account. Logs then attribute human actions to automation, and accountability is gone.

**How it shows up.** An admin logs in to the cloud console with the deployment service account. A team keeps one broad API token in a shared vault entry. An attacker who obtains NHI credentials blends in, because NHIs face no MFA and little monitoring. Agents create the mirror image, which this list does not cover: an agent acting with a human user's token, so that machine actions are logged as the person.

**What to do.** Give people named identities with just-in-time elevation for debug and break-glass work. Use conditional access to block interactive sign-in for service accounts and to limit where their tokens may be used. Alert on console or interactive use of an NHI. To test, search sign-in logs for service accounts used from employee networks, browsers or command-line tools on laptops.

**Related:** [T8 Repudiation & Untraceability](https://llms-technical-reviews.com/security/owasp-agentic-threats-t15/#t8-repudiation--untraceability), [MCP08:2025 Lack of Audit and Telemetry](https://llms-technical-reviews.com/security/owasp-mcp-top10/#mcp082025-lack-of-audit-and-telemetry), [A09:2025 Security Logging & Alerting Failures](https://llms-technical-reviews.com/security/owasp-top10-web-2025/#a092025-security-logging--alerting-failures), [ASI03 Identity and Privilege Abuse](https://llms-technical-reviews.com/security/owasp-agentic-top10-2026/#asi03-identity-and-privilege-abuse).

## What changed

This is the first edition, so there is no ranking to compare. The pages have changed since go-live without a new edition number. NHI3 gained the Salesloft Drift example, an incident from August 2025, eight months after release. The project has also added an index of open-source detection tools, with inclusion criteria and one entry so far, and a Korean translation that covers only the first item.

The OWASP Top 10 for Agentic Applications 2026 now maps each NHI entry to agentic entries and threat codes in its Appendix C. Some pairings there are loose. Offboarding maps to supply chain, long-lived secrets to memory poisoning, and human use of NHI to goal hijack and human-agent trust. ASI03 Identity and Privilege Abuse, the natural home for most of this list, is attached to only three items. The Related links above follow the controls rather than that table.

## What it misses

- **AI agents.** The list was finished in late 2024 and never mentions agents, MCP servers or LLM tool credentials, now the fastest-growing NHI population. Agent-specific problems are absent: per-task token minting, delegation chains in which a sub-agent inherits a parent's token, and credentials leaking through context windows and traces. Use [DSGAI02 Agent Identity & Credential Exposure](https://llms-technical-reviews.com/security/owasp-genai-data-security-2026/#dsgai02-agent-identity--credential-exposure) and [ASI03 Identity and Privilege Abuse](https://llms-technical-reviews.com/security/owasp-agentic-top10-2026/#asi03-identity-and-privilege-abuse) for that layer.
- **Inventory.** Every item assumes you know which NHIs exist. Discovery appears only inside prevention advice, never as a risk of its own.
- **Runtime theft.** NHI2 covers leaks during development. Active theft is not covered: SSRF to an instance metadata endpoint, tokens read from process memory or environment, stolen CI job tokens.
- **Monitoring.** The introduction calls NHIs notoriously under-monitored, yet no item is about detection; NHI10 touches accountability only.
- **Overlaps.** NHI2 and NHI7 are two halves of one risk, the leak and its lifetime. NHI9's own prevention list includes one identity per environment, which is NHI8. NHI6 repeats ground covered by the CI/CD Top 10.
- **Naming and scope.** NHI6's title says cloud deployment, but its content is CI/CD only. The NHI8 page heading says 2024. NHI7's cookie example is a human session.
- **Evidence.** The same survey figures are reused across items: the "32% configuration error" number supports both NHI6 and NHI8, and the "51% have no process to revoke long-lived API keys" figure appears under NHI1 and NHI7. Several breach references are blog write-ups rather than the affected company's own report. Survey answers are opinions, not incident rates.

## Our take

This is the list to reach for when the question is "which machine credentials exist, who owns them, what can they do, and when do they die". It works well as an audit checklist for a SaaS estate, as a design review for any agent that holds credentials, and as procurement questions for integration vendors: do your tokens expire, can we scope them, how do we revoke them all at once? The ranking is modest in method but consistent with its own published ratings. It is an incubator first edition that has not caught up with agents. Pair it with ASI03 and MCP01 for agent systems, and with DSGAI02 for the data angle. Prefer it over the credential items in the CI/CD and Kubernetes lists when you need one view across the whole estate rather than inside one platform.
Attribution: item codes and names are from "OWASP Top 10 Non-Human Identities Risks - 2025" by OWASP Non-Human Identities Top 10 project (CC BY-SA 4.0). The review text is ours.