Abdolmadjid Masoomi

Non-Human Identities: The Credentials Nobody Owns

Service accounts, API keys and tokens outnumber people, and most have no owner or expiry.

Signed
Abdolmadjid Masoomi
Published
2026-09-14
Length
8 min read · 1,576 words
Status
opinion

Most organisations treat machine credentials as disposable, yet they persist long after their purpose fades. Non-human identities lack the natural offboarding cycle of human employees, creating a silent accumulation of access. The solution is not more tools, but strict ownership and expiry rules for every credential.

Identity governance was built around people. When an employee joins, a manager approves their access. When they leave, IT revokes it. This lifecycle is familiar and enforced by policy. Machine credentials do not follow this pattern. They are created by pipelines, integrations, and scripts, often without human oversight.

These non-human identities outnumber people in most modern systems. Service accounts, API keys, and tokens sit in databases, cloud consoles, and configuration files. Most have no named owner. Most have no expiry date. They accumulate like digital dust, granting permissions that were useful once and dangerous forever.

The first control is not a new tool. It is an ownership rule. Every non-human credential must have a named human owner, a clear purpose, and an expiry. If it lacks these, it must be disabled. This simple discipline stops the sprawl before it becomes a breach.

What counts as a non-human identity

A non-human identity is any credential used by software, services, or devices to access other systems. It is not a person logging in with a username and password. It is a key, a token, or a certificate that proves the machine’s right to act.

Service accounts are the most common form. They allow an application to read a database or write to a queue. API keys authenticate requests between two services. Tokens grant temporary access to cloud resources. Certificates verify the identity of a server in a secure connection.

These identities are distinct from human accounts because they do not have a lifecycle. They do not go on holiday. They do not resign. They persist until someone manually deletes them or they break due to misconfiguration. This permanence makes them critical targets for attackers who seek to move laterally through a network.

The boundary between human and machine identity is blurring. Automated agents now perform tasks that once required human intervention. These agents need credentials to function. They need to read data, call APIs, and update records. Without strict governance, these automated actions become indistinguishable from malicious activity.

How they multiply

Credentials multiply through automation. Every new microservice requires its own set of keys. Every integration between two platforms demands a token. Every deployment pipeline needs a secret to push code to production.

Developers create credentials to get things working. They copy keys from one environment to another. They reuse old tokens because it is easier than generating new ones. These practices create a web of overlapping permissions. The system becomes fragile and opaque.

Secrets sprawl occurs when credentials are stored in multiple places. They appear in code repositories, environment variables, configuration files, and cloud consoles. Finding all instances of a single key is nearly impossible. The real problem is that copies keep leaking, and the organisation cannot find every legitimate system that depends on the key, so revoking or rotating it risks breaking services it did not know about.

This sprawl is exacerbated by the speed of modern development. Teams prioritise feature delivery over security hygiene. Credentials are treated as implementation details rather than security boundaries. The result is a landscape where access is granted liberally and revoked rarely.

The lack of visibility means organisations do not know what they have. They cannot protect what they cannot see. This ignorance is the primary enabler of insider threats and external attacks.

Why nobody offboards a token

Human offboarding is a standard process. It is triggered by HR events. Machine offboarding is not. There is no trigger for a service account when a project ends. There is no alert when a token expires.

Credentials are often created with infinite lifetimes. This is convenient for developers. It avoids the need for rotation. It prevents outages caused by expired keys. However, it creates permanent access points.

Legacy systems compound the problem. Older applications were not designed with modern identity standards. They rely on static credentials that never change. Upgrading these systems is risky and expensive. Organisations often choose to leave the old credentials in place.

The cost of removal is perceived as higher than the cost of risk. Teams fear that deleting a credential will break a critical service. They prefer to keep it active and hope for the best. This risk aversion leads to accumulation.

Without a process for review, credentials become zombie accounts. They exist in the system but serve no active purpose. They retain their original permissions, which may include administrative rights. These dormant accounts are prime targets for attackers who scan for weak points.

Ownership, purpose, expiry

The solution is to impose a human lifecycle on machine identities. Every credential must be assigned to a specific person. This person is responsible for its use and its removal.

The purpose must be documented. Why does this key exist? What system does it support? If the purpose is unclear, the credential should be questioned. Vague purposes often indicate forgotten or redundant access.

Expiry dates are mandatory. No credential should live forever. Short-lived tokens are preferred for high-privilege actions. Long-lived keys should be rare and strictly controlled. When a key expires, it must be renewed or removed.

This approach shifts the burden from automated tools to human accountability. Tools can help, but they cannot assign responsibility. Only a person can decide if a credential is still needed.

The principle of least privilege applies here too. Credentials should have only the permissions required for their specific purpose. risks of permissions granted once highlight the danger of broad access. Narrow permissions limit the damage if a credential is compromised.

Rotation without outages

Rotation is the practice of replacing a credential before it expires or is compromised. It is essential for maintaining security. However, it must be done without disrupting service.

Automated rotation is the goal. Systems should generate new keys and update configurations automatically. This requires support from the underlying platforms. Not all systems support seamless rotation.

For systems that do not support automation, manual rotation must be planned. It requires coordination between teams. It requires a window for maintenance. It requires a rollback plan in case of failure.

Testing is critical. Rotating a key in a production environment can cause outages. Changes should be tested in staging first. Monitoring should be increased during the rotation window to detect issues early.

The frequency of rotation depends on the risk. High-privilege credentials should rotate frequently. Low-privilege credentials may rotate less often. The key is consistency. Irregular rotation creates gaps in security.

AI agents as the next wave

AI agents introduce a new class of non-human identities. These agents perform complex tasks. They reason, plan, and execute actions. They require credentials to access data and tools.

The scale of these identities will be vast. Each agent may need multiple credentials for different functions. The number of identities will grow exponentially. Governance must scale to match this growth.

The risks are different. Agents may act autonomously. They may make decisions that require high-privilege access. over privileged autonomous agents warns against giving agents more power than necessary.

Defaults matter. Agents often inherit the permissions of their host system. If the host has broad access, the agent does too. why defaults define policy reminds us that default settings shape security posture.

Organisations must define policies for agent identities. Who owns the agent? What is its purpose? How long does it need access? These questions must be answered before deployment.

Questions people ask

What is a non human identity in cybersecurity?

A non-human identity is any credential used by software, services, or devices to access other systems. It includes service accounts, API keys, tokens, and certificates. These identities allow machines to authenticate and authorise actions without human intervention. They are distinct from human accounts because they do not have a natural lifecycle or offboarding process.

How to manage service accounts securely in enterprises?

Enterprises should assign a named human owner to every service account. Each account must have a documented purpose and a strict expiry date. Permissions should be limited to the minimum required for the task. Regular audits should identify and remove unused or redundant accounts. Automation should be used to rotate credentials and enforce policies.

How often should api keys be rotated safely?

API keys should be rotated before they expire or if a compromise is suspected. The frequency depends on the risk level and the system’s capabilities. High-privilege keys should rotate frequently, potentially every few months. Low-privilege keys may rotate less often. Automated rotation is preferred to reduce the risk of human error and service disruption.

Close

The proliferation of non-human identities is not a technical problem. It is a governance failure. We built systems that create credentials faster than we can manage them. We assumed that security tools would solve the problem. They cannot. Tools cannot assign responsibility.

The answer lies in discipline. Every credential must have an owner. Every credential must have a purpose. Every credential must have an expiry. This is not optional. It is the foundation of secure systems.

As AI agents become more common, the stakes will rise. The number of identities will grow. The complexity will increase. Organisations that establish strict ownership and expiry rules now will be better prepared. Those that do not will face a growing tide of unmanaged access.

The choice is clear. Treat machine credentials with the same rigour as human accounts. Enforce ownership. Limit permissions. Rotate keys. Remove what is no longer needed. This is how we secure the future of digital identity.