Safeguard
AI Security•

Which OWASP non-human identity risks apply to AI agents?

OWASP lists ten non-human identity risks. Most map directly to AI agents and MCP servers. See the mapping table and a quick check for each risk.

Safeguard Security Team
3 min read

Most of OWASP's ten non-human identity risks apply to AI agents, because an agent runs on tokens, keys and service accounts rather than a person's login. The closest fits are improper offboarding, secret leakage, overprivilege, long-lived secrets, environment isolation, reuse and human use of an agent's credential.

The ten risks

OWASP publishes a 2025 Top 10 for non-human identities, often shortened to NHI. The list, in order, is improper offboarding, secret leakage, vulnerable third-party NHI, insecure authentication, overprivileged NHI, insecure cloud deployment configurations, long-lived secrets, environment isolation, NHI reuse and human use of NHI.

An AI agent is a non-human identity with a twist: it chooses its own actions at runtime, so a weak credential does more damage.

Mapping to agents and MCP

The right hand column is our reading of how each risk applies. OWASP supplies the risk names, not the agent examples.

RiskHow it can show up with agentsCheck
NHI1 Improper offboardingA retired agent keeps live tokensRevoke on retirement
NHI2 Secret leakageKeys in prompts, configs or logsScan configs, redact logs
NHI3 Vulnerable third-party NHIA connector or server you did not write holds your accessReview each integration
NHI5 Overprivileged NHIBroad scopes on a tool serverCut scopes to the task
NHI7 Long-lived secretsA static key in an MCP configShort lived tokens
NHI8 Environment isolationSame credential in test and productionOne identity per environment
NHI9 NHI reuseSeveral agents share one accountOne identity per agent
NHI10 Human use of NHIA person logs in with the agent's credentialSeparate human and agent access

What the risks have in common

Four of them come down to scope and lifetime: overprivilege, long lived secrets, reuse and environment isolation. Fix those with narrow, expiring, per agent credentials and you remove a large share of the risk.

The other group is lifecycle: offboarding, leakage and third party exposure. These need an inventory and an owner, because you cannot revoke what you cannot list.

A one hour exercise

  1. List every agent and MCP server in use, with an owner for each.
  2. For each, write down the credential type, scope and expiry.
  3. Flag shared credentials and ones with no expiry.
  4. Replace the worst three with scoped, expiring ones.
  5. Add a retirement step to your agent lifecycle.

Safeguard includes agent identity, which records which agent holds what access, and asset discovery to build the inventory. A free scan is at https://gold.safeguard.sh/scan.

Quick check

Are all ten risks relevant to agents?

Most are, in some form. We left out insecure cloud deployment configurations and insecure authentication from the table only for space, and both still matter.

Where do I start?

Start with inventory and ownership, then shorten credential lifetimes. Both are cheaper than adding new tooling.

Sources

Last reviewed: 19 October 2026.

Never miss an update

Weekly insights on software supply chain security, delivered to your inbox.

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.