Non-Human Identities: Who Is Logging In When No Human Is There?
TL;DR
When employees leave a company, there is usually an established process for revoking their access. Software identities need similar attention, yet their lifecycle can be much harder to track, particularly in organizations with complex digital infrastructure. When an application is retired, the credentials it used to reach company data can stay active unless someone removes them. What Non-Human Identities Are
When Access Outlives Its Purpose
What AI Agents Add
Managing Software Identities Across Their Lifecycle
Start With the Identities You Already Have
Frequently Asked Questions
TL;DR
A non-human identity (NHI) is an identity used by software, a device, or an automated process rather than a person. Examples include service accounts, service principals, managed identities, and device identities.
OWASP’s Non-Human Identities Top 10 for 2025 ranks improper offboarding first, so credentials of retired applications can remain active and usable.
When several AI agents share a single service account, it becomes difficult to determine which identity was used, on whose behalf, and whether the access was authorized.
Four practices reduce exposure: inventory and ownership, short-lived credentials, continuous monitoring, and credential revocation upon application retirement.
When employees leave a company, there is usually an established process for revoking their access. Software identities need similar attention, yet their lifecycle can be much harder to track, particularly in organizations with complex digital infrastructure. When an application is retired, the credentials it used to reach company data can stay active unless someone removes them.
When employees leave a company, there is usually an established process for revoking their access. Software identities need similar attention, yet their lifecycle can be much harder to track, particularly in organizations with complex digital infrastructure. When an application is retired, the credentials it used to reach company data can stay active unless someone removes them. What Non-Human Identities Are
When Access Outlives Its Purpose
The OWASP Non-Human Identities Top 10 for 2025 ranks improper offboarding first, followed by secret leakage and vulnerable third-party non-human identities. OWASP defines improper offboarding as the inadequate deactivation or removal of identities, such as service accounts and access keys, when they are no longer needed. The list also includes overprivileged identities, long-lived secrets, and identity reuse.
Three situations that could occur in an enterprise environment show how these risks arise. A company changes its payment provider but does not revoke the API credentials of the previous integration. A reporting application only needs to read from a database but has also been granted permission to modify records. An API key is accidentally committed to a source code repository and can remain accessible in the repository history even after it is removed from the latest version of the code. These correspond to improper offboarding, overprivileged identities, and secret leakage. If compromised, such credentials can give unauthorized access to business resources without any employee account being involved.

What AI Agents Add
In a previous article, we explored the engineering requirements for connecting AI agents to enterprise applications. A traditional automated process follows predefined instructions, while an AI agent, depending on its design, may select different tools and operations for the task it receives.
If an agent retrieves sensitive customer information, an organization should be able to establish which identity was used, whether the agent acted on behalf of an employee, and whether the operation was authorized. When multiple agents and applications share the same service account, distinguishing between their activities becomes considerably more difficult. OWASP’s AI Agent Security Cheat Sheet recommends granting agents only the minimum tools required for their task, with permissions scoped per tool.
Managing Software Identities Across Their Lifecycle
Companies can reduce their exposure by building identity management into existing software development and infrastructure maintenance processes. Four areas matter most:
- Inventory and ownership. Establish which non-human identities exist, what they are used for, and which teams are responsible for them.
- Credential management. Reduce reliance on long-lived secrets by using short-lived credentials, managed identities, and workload identity federation where supported.
- Continuous monitoring. Review identity activity, investigate unexpected access patterns, and regularly reassess permissions.
- Offboarding. Include credential revocation and identity removal when retiring applications, integrations, or automated processes.
Some of these measures use capabilities already available in enterprise cloud environments. Microsoft Azure managed identities allow supported workloads to obtain authentication tokens without developers needing to store and manage application credentials. A system-assigned managed identity is tied to its resource: when the Azure resource is deleted, Azure removes its credentials and identity from Microsoft Entra ID. A user-assigned managed identity is a standalone resource, managed separately from the resources that use it, so retiring an application that relies on it still requires deliberately removing the identity.
Start With the Identities You Already Have
A useful first step is to review whether every active non-human identity in your infrastructure has a documented purpose, an identifiable owner, and permissions that reflect its current responsibilities. The same review should flag identities that belong to applications no longer in use, which is the situation described by the OWASP offboarding risk. If you are reviewing how your applications authenticate, or planning a cloud or AI project where this matters, we would like to hear about what you are building.

Frequently Asked Questions
- What is a non-human identity?
A non-human identity (NHI) is an identity used by software, a device, or an automated process rather than a person. Examples include service accounts, service principals, managed identities, and device identities, which authenticate with credentials such as API keys, certificates, or access tokens.
- What is improper offboarding of a non-human identity?
It is the first risk in OWASP’s Non-Human Identities Top 10 for 2025 (NHI1). OWASP describes it as the inadequate deactivation or removal of identities, such as service accounts and access keys, when they are no longer needed, leaving unmonitored, deprecated services open to exploitation.
- How do AI agents complicate identity management?
An agent may choose different tools and operations for each task, so a security team needs to know which identity it used, on whose behalf, and whether the access was authorized. When several agents or applications share one service account, those questions become much harder to answer.
- Where should a company start with non-human identity management?
Start with an inventory: list each non-human identity, its purpose, its owner, and its permissions. Then flag identities tied to retired applications, move to short-lived credentials or managed identities where the infrastructure supports them, and add credential revocation to the decommissioning process.



