The Non-Human Identity Threats Attackers Reach For First

Aug 26, 2026

Attackers now target the credentials your machines use, not your staff. Learn the top non-human identity threats and how to govern all of them at scale.

Lumos Team
In this article

Attackers have shifted their aim. Rather than picking the lock on your front door with phishing and stolen passwords, they're slipping through a window most security teams never think to watch. The target is the credentials your machines use, and a leaked API key, an over-scoped service account, or a forgotten token can hand an attacker standing access without ever tripping an alert.

Those credentials belong to non-human identities, the service accounts, API keys, OAuth tokens, workload credentials, certificates, and fast-growing AI agents that authenticate with no person behind them. In most companies they already outnumber employees by more than 80 to 1, and almost none of them are governed the way human identities are. MFA, offboarding, and quarterly access reviews were all built for people, which leaves the machines running your business as the largest and least-watched part of your attack surface.

In this article, we'll break down the seven non-human identity threats that do the most damage, trace how a single leaked credential turns into a full compromise, and map each threat to the control that shuts it down. By the end, you'll know which identities to fix first, why detection alone won't close the gap, and how to govern machines and people under one program instead of two.

Why Attackers Target Non-Human Identities

Non-human identities are often among an organization’s largest and least-governed identity populations, and attackers understand the opportunity.

Start with scale because the problem is larger than many teams realize. Every new cloud service, SaaS integration, and automated workflow spins up more machine identities, and unlike headcount, that growth has no natural ceiling. AI coding assistants and agents are accelerating it further, creating credentials and integrations faster than many teams can track manually. Most organizations have long since passed the point where a person can say how many non-human identities they have, let alone what each one can reach.

Non-human identity sprawl often develops because organizations lack a formal process for creating machine identities. When an engineer spins up a microservice at 2 a.m. to unblock a deployment, there may be no HR record, assigned owner, or offboarding date. Without a lifecycle process, the account can remain long after its original purpose ends.

Four structural gaps make these identities attractive targets.

  1. MFA is usually absent: A non-human identity authenticates with a secret, so stealing the secret can allow an attacker to assume the identity. Without an additional control, a leaked key can provide direct access to production data.
  2. Credentials are often long-lived: Human passwords rotate on a schedule, while machine secrets may never rotate. A key created three years ago may still work and remain in a configuration file.
  3. Ownership is unclear: Ask who depends on a given service account, and you may get a shrug. When no one can say what will break if the account is revoked, no one revokes it.
  4. There is no leaver event: Its access can outlive the project, the vendor, and the person who created it, eventually becoming orphaned access that no one monitors.

Together, these gaps create an obvious incentive for attackers. Why spend a week on a phishing campaign to capture one employee’s credentials, which are protected by MFA and revoked when the employee leaves, when a single hardcoded key may grant standing administrative access without triggering an alert? Non-human identity security is the discipline of closing that gap. For many teams, it remains years behind the controls already applied to human identities.

How a Non-Human Identity Attack Unfolds

A non-human identity compromise rarely stops with the identity it starts with.

Think of it as a chain of steps rather than an isolated event. Each stage can fall outside defenses designed primarily for human activity.

  • Initial access: An attacker obtains a leaked secret. A key is committed to a repository, printed in a log, or saved where it should not be. Because MFA is not involved, using the credential may be enough to authenticate.
  • Enumeration: The attacker searches for additional credentials in code, configuration files, and cloud metadata, then reuses them to extend access.
  • Privilege escalation and lateral movement: An over-scoped credential allows the attacker to pivot across interdependent workloads and cloud roles because one service trusts the next by design. A token intended for one service may reach 10 services.
  • Persistence: Password resets and interactive MFA typically do not apply to machine credentials, and many credentials rarely rotate. A stolen credential can therefore allow an attacker to remain undetected for months.
  • Impact: The attacker exfiltrates data or manipulates resources by using a valid credential that may not look anomalous to systems monitoring for suspicious logins.

This pattern appears in real incidents. When attackers compromised the Internet Archive’s support platform in October 2024, they used access tokens that had never been rotated. The tokens were valid, so the activity looked legitimate. Earlier that year, a nation-state group moved from a test tenant into a major software provider’s production environment by exploiting a dormant OAuth application that still carried full privileges, then used that access to read corporate email. The same pattern appears repeatedly: a forgotten OAuth application with standing privileges, a token that outlived its purpose, or a key no one rotated. Each creates a quiet path into an environment whose defenses focus primarily on people.

The Top Seven Non-Human Identity Threats

Non-human identity risk is concentrated in seven failure modes, each of which traces back to a gap that organizations can close.

These threats are not a theoretical checklist. They appear repeatedly in breach reports, but their urgency varies by environment. Evaluate each one according to the privilege it exposes and the potential reach of a compromise, then prioritize accordingly.

1. Leaked secrets

Static secrets are hardcoded into source code, printed in logs, and committed to repositories, and one leaked key can provide direct access without MFA. GitGuardian detected 29 million secrets on public GitHub in 2025 alone and found that private internal repositories—those teams often assume are safe—were six times more likely to contain a hardcoded secret than public repositories.

2. Over-privileged access

New service accounts are often cloned from an existing account whose permissions are already too broad. Scope accumulates and rarely contracts, so many non-human identities carry permissions they have never used. Each unused permission expands the attack surface available if the credential is compromised. The gap between granted and used access is a practical risk-reduction opportunity and a clear signal of what to remove.

3. Orphaned and improperly offboarded identities

When a migration ends, a vendor is replaced, or an engineer changes teams, the account may retain its access. It becomes an unowned administrative credential that no one monitors or expects to use, making it an attractive target. This is also where non-human identity compliance can break down because an auditor will expect clear evidence of who approved the access and who owns the identity.

4. Long-lived credentials

Human passwords often rotate, while machine secrets frequently do not. A credential that has been valid since before your last two audits may still grant every permission assigned to it. Each additional month it remains active gives an attacker more time to discover and exploit it.

Rotation often stalls because the same key may be copied into several vaults, CI configurations, and a wiki page. If no one knows what will break when the key is invalidated, the credential remains active.

5. Third-party and OAuth risk

Authorizing a SaaS application may introduce a non-human identity or token with access to your environment, often with permissions no one reviews after the initial integration. A breach at the vendor can become a breach of your environment. The Verizon Data Breach Investigations Report for 2026 found third-party involvement in roughly 48% of breaches, nearly double the previous year’s share.

The 2025 compromise of a widely used SaaS chatbot’s OAuth tokens, which attackers used to enter downstream customer environments, illustrates the threat. You were not phished; your vendor was, and its token provided access to your data. Teams often fail to re-examine these grants after deployment because the integration continues to work.

6. Weak or missing authentication

Machines often authenticate with a shared secret and cannot complete interactive MFA, so a key control for human identities may not apply. Shared tokens increase the risk because when several services or people use the same credential, a compromise is difficult to attribute to a source.

7. Ungoverned AI agents

AI agents introduce a rapidly evolving threat. They request access dynamically and act without a human in the loop, which can invalidate assumptions built for static service accounts. The access an agent needs on Tuesday may not be the access it needed on Monday. Agents also create and consume identities at machine speed, faster than human-paced approval processes can keep up. Granting an autonomous actor too much access creates a type of exposure the industry is still learning to manage.

The pattern is clear. These are not exotic zero-days. Each reflects a known gap with a known fix. The hard part is applying the fix across a large non-human identity population. That is a matching problem, and it is solvable.

Map Each NHI Threat to The Control That Addresses it

A threat list becomes useful when it leads to a control, an owner, and a measurable outcome.

Many guides present threats and best practices separately. Non-human identity prevention is the practical work of connecting each threat to the control that addresses it, then assigning a metric that demonstrates progress to the leader responsible for the budget.

Threat Why it happens Control that addresses it Metric to track
Leaked secrets Static secrets in code, logs, and repositories Use short-lived, automatically rotated credentials and scan for secrets Number of hardcoded secrets; mean time to rotate credentials
Over-privileged access Accounts cloned from overly broad templates Right-size permissions based on actual use and implement just-in-time access Percentage reduction in over-privileged access
Orphaned identities No named owner or lifecycle event Assign ownership and automate lifecycle offboarding Number of orphaned accounts closed; number of unowned administrative credentials remaining
Long-lived credentials Secrets do not expire or rotate Use time-bound credentials and staged rotation Percentage of identities using short-lived credentials
Third-party and OAuth risk Integration scopes are not reviewed Discover and certify every third-party grant Number of third-party grants reviewed; percentage of excess scope revoked
Weak authentication Shared secrets and no interactive MFA Use strong workload authentication and eliminate shared tokens Number of shared tokens eliminated
Ungoverned AI agents Dynamic scope, machine-speed activity, and no owner Add agents to the same ownership, lifecycle, and review processes Percentage of agents with named owners; percentage included in reviews

The goal is not to address every threat at once. Match the highest-severity threats to the controls that address them, and measure outcomes that leaders will ask about: the percentage reduction in over-privileged access, the number of orphaned accounts closed, the mean time to rotate a credential, and the number of third-party grants reviewed.

General advice to apply least privilege everywhere and monitor continuously is correct, but it does not tell a team managing 40,000 identities where to start. A prioritized match between threat and control provides a starting point and a defensible answer when a leader asks what you fixed first and why.

Why Detection Alone is not Enough

The market is crowded with non-human identity management solutions that promise to find exposed secrets and flag anomalous machine activity. Detection has an important role. However, tracing the seven threats to their root causes reveals a broader governance problem.

Orphaned administrative tokens, over-scoped credentials, and stale OAuth grants exist because no one offboarded, right-sized, or reviewed them. These are governance failures rather than visibility failures. A tool that flags the same issue every morning without assigning someone to correct it creates alert fatigue. Detection identifies an exposed credential; governance reduces the chance that the credential remains in that state.

Separate monitoring tools, inventories, and review cycles can also recreate the fragmentation that made access difficult to govern. Teams then reconcile machine and human reports before each audit, adding another console without solving the underlying lifecycle problem.

A working non-human identity security strategy governs machines and people through the same lifecycle. A non-human identity is created and granted access; that access should be reviewed and revoked when the identity’s purpose ends. When an auditor asks which human and non-human identities have access to a resource, the right architecture provides one answer instead of two separate reports.

How Lumos Protects Against Non-Human Identity Threats

Lumos addresses these threats at the governance layer before an attacker obtains a credential worth stealing. The platform applies a common identity lifecycle to human and non-human identities.

Discovery closes the blind spot

Visibility is the first requirement for governance. Lumos catalogs managed and shadow non-human identities across identity providers, cloud environments, and applications, including local and orphaned accounts outside your IdP. When ChargePoint connected Lumos to more than 100 applications in under three months, the payoff was visibility into unused and orphaned accounts that had previously remained hidden.

Least-privilege and just-in-time access shrink the target

Over-privileged, long-standing access can turn one compromise into lateral movement. Lumos compares granted access with actual usage, removes unused permissions, and replaces standing privilege with time-bound access that expires automatically. Code42 cut long-standing privileged access by 67% this way, and over-privileged access decreases by 80% on average across Lumos customers.

Lifecycle automation reduces orphaned access

Accounts that outlive their purpose are attractive targets. Lumos automates offboarding and assigns ownership so non-human identities do not remain unclaimed. Nubank used Lumos to identify hundreds of users whose offboarding had not been completed, and Roku cut stale, unnecessary access by 30% while reducing onboarding time by 99%.

Delta access reviews make governance manageable at scale

Non-human identity governance often breaks down during reviews because reviewers cannot meaningfully reapprove thousands of unchanged entitlements. They may begin rubber-stamping approvals, turning the review into theater. Lumos shows reviewers only what has changed since the previous review. Pluralsight went from reviewing 20 applications over two months each quarter to reviewing 200 applications in under two weeks, completing five times as many reviews in 40% less time.

Because these functions run through a shared inventory, policies, and review process, teams can answer which human and non-human identities have access without reconciling separate systems at quarter-end.

Close non-human identity gaps before attackers exploit them

You have automated deployments, infrastructure, and the pipelines that ship your product throughout the day. Collectively, the identities operating those systems have become one of the largest and least-governed populations in many environments. The risk shifted toward machines faster than many security programs adapted.

These seven threats are familiar gaps with established controls. Their danger comes from scale and inattention: identities multiply faster than teams can review them, outlive their original purpose, and operate outside controls designed for people. Effective programs prioritize the highest-risk identities, match each threat to a control, assign ownership, and measure progress.

Lumos supports that approach through a shared inventory, least-privilege policies, lifecycle automation, and change-only reviews. The customer outcomes described above reflect that discipline: ChargePoint surfaced orphaned accounts, Code42 cut long-standing privileged access by 67%, and Nubank identified hundreds of users whose offboarding had not been completed.

Book a demo to see how Lumos governs human and non-human identities within a single program before an unmanaged identity becomes an attacker’s entry point.

FAQ

What are the biggest non-human identity threats?

The most damaging non-human identity threats are leaked secrets, over-privileged access, orphaned and improperly offboarded identities, long-lived credentials, vulnerable third-party and OAuth integrations, weak or missing authentication, and ungoverned AI agents. Each maps to a specific control gap and can be addressed through discovery, ownership, least privilege, rotation, and review.

How do attackers exploit service accounts and API keys?

Attackers begin with a leaked or hardcoded secret that grants access without MFA. They search for additional stored credentials, then pivot across interdependent services by using over-scoped access. Because machine credentials rarely rotate and machine-to-machine authentication typically lacks MFA, attackers can use stolen credentials to persist undetected for months before exfiltrating data.

Why don’t non-human identities use MFA?

Non-human identities authenticate machine to machine with a key, token, or certificate instead of completing an interactive login. Because no person is present to respond to a prompt, conventional MFA often does not fit the workflow. That makes the security of the credential and the workload authentication method especially important.

Are AI agents a non-human identity risk?

Yes. AI agents request access dynamically and act without a human in the loop, so controls designed around static service accounts may not fit their behavior. Agents can also create and consume identities at machine speed, outpacing human approval processes. Granting an autonomous actor excessive access creates a distinct governance risk.

How do you reduce non-human identity risk at scale?

Match each threat to the control that addresses it, prioritize by severity, and assign a metric to each control. Govern machines and people through a shared inventory, least-privilege policies, lifecycle processes, and change-only reviews so the recurring work remains manageable at scale.

Book a Demo

See Lumos in Action

Book a 1:1 demo with us and enable your IT and 
Security teams to achieve more.