Skip to content
TrustHappens

Non-Human Identity Security: Research Brief

Desk research on non-human identity security: secrets sprawl, credential abuse in breaches, workload federation, AI agents, MCP and what security leaders should do next.

TrustHappens Editorial TeamPublished 10 min read
Illustration for Cybersecurity & Identity

Report at a glance

Research Brief · desk research · no original survey

Research objectives

  • Summarise what published primary and vendor research says about the scale of non-human identities and leaked machine credentials.
  • Explain how credential abuse, secrets sprawl and third-party tokens show up in recent breach data.
  • Assess how workload identity federation, short-lived credentials and the MCP authorization model change the control options for machine and AI agent identities.
  • Give security leaders a prioritised, vendor-neutral set of actions for an NHI program.

Key findings

  1. 01Credential abuse appears somewhere in the attack chain of 39% of breaches in the Verizon 2026 DBIR, even though it is now the first step in only 13%.
  2. 02GitGuardian's vendor research counted 28.65 million new hardcoded secrets in public GitHub commits in 2025, up 34% year over year.
  3. 03The same vendor research found 64% of secrets confirmed valid in 2022 were still valid in January 2026, so leaked credentials stay usable for years.
  4. 04Breaches with third-party involvement reached 48% of the Verizon 2026 DBIR dataset, and several high-profile cases turned on stolen OAuth tokens and over-privileged service accounts.
  5. 05AI agents and MCP servers are a new identity surface: OWASP ranks identity and privilege abuse third in its Top 10 for Agentic Applications, and the MCP specification forbids token passthrough.
  6. 06CyberArk's vendor survey reports 82 machine identities for every human, while 88% of respondents still define a privileged user as human only.
On this page

Executive summary

Non-human identities (NHIs) are the service accounts, cloud roles, API keys, OAuth apps, CI/CD tokens, certificates and, increasingly, AI agents that authenticate without a person at the keyboard. They now carry most of the standing access in a modern company, and most identity programs still treat them as an afterthought.

This brief pulls together what the most credible public sources say about that gap. It is desk research: TrustHappens ran no survey, and every number below is quoted from a named publisher, with vendor research labelled as such.

The evidence points in one direction. Stolen and leaked credentials remain one of the most reliable ways into an organisation, even in a year when vulnerability exploitation overtook them as the most common first step. Verizon's 2026 Data Breach Investigations Report (DBIR) puts it plainly:

39%

of breaches involve credential abuse at some point in the attack progression

Published figureSource: Verizon, 2026 Data Breach Investigations Report (2026)

At the same time, the supply of leaked machine credentials keeps growing, and those credentials stay valid for years:

28.65 million

new hardcoded secrets found in public GitHub commits in 2025

Published figureSource: GitGuardian (vendor research), The State of Secrets Sprawl 2026 (2026)

Three developments make this more urgent in 2026. First, third-party integrations and their OAuth tokens have become a common route into customer data. Second, AI agents and Model Context Protocol (MCP) servers add a new class of identity that acts on delegated authority, often with credentials copied from a human. Third, standards bodies have caught up: OWASP now publishes a dedicated Non-Human Identities Top 10 and a Top 10 for Agentic Applications, and the MCP specification defines how agent-to-tool tokens must be scoped.

The practical response is not exotic. Build an inventory with named owners, replace static secrets with federated, short-lived credentials wherever the platform allows, scope every token to one audience and one task, and treat agents as first-class identities in access reviews. The recommendations section turns this into a sequenced plan.

Industry context

A non-human identity is any credentialed principal used by a workload, script, integration or agent rather than by a person signing in. The practical guide to non-human identity security covers the taxonomy in depth; for this brief, the important point is that an identity and its credentials are separate things. One service account can have several keys, and one key is often shared across several jobs, which makes both counting and revoking harder than it looks.

OWASP's Non-Human Identities Top 10, published for 2025, is the clearest statement of what goes wrong. Its ten risks are improper offboarding (NHI1), secret leakage (NHI2), vulnerable third-party NHIs (NHI3), insecure authentication (NHI4), overprivileged NHIs (NHI5), insecure cloud deployment configurations (NHI6), long-lived secrets (NHI7), environment isolation (NHI8), NHI reuse (NHI9) and human use of NHIs (NHI10). Read together, they describe a lifecycle problem more than a technology problem: identities are created quickly, granted broad access, shared, and never retired.

The established identity frameworks explain why this gap persisted. NIST SP 800-63-4, the July 2025 revision of the US federal Digital Identity Guidelines, describes its scope as identity proofing, authentication and federation of users such as employees, contractors and private individuals. Joiner-mover-leaver processes, MFA prompts and periodic access reviews were all designed around that population. A deploy key has no HR record, cannot answer an MFA challenge and has no manager to approve its access review.

Zero trust thinking does cover machines. NIST SP 800-207 says zero trust "assumes there is no implicit trust granted to assets or user accounts based solely on their physical or network location", and it applies that to every subject requesting a resource, not only people. In practice, though, most zero trust rollouts started with workforce access and device posture, leaving service-to-service and pipeline credentials on static secrets.

Attackers have noticed. MITRE ATT&CK technique T1078, Valid Accounts, describes adversaries obtaining and abusing credentials of existing accounts for initial access, persistence, privilege escalation and defence evasion, with a dedicated sub-technique for cloud accounts (T1078.004). A valid machine credential is attractive precisely because its use looks like normal automation. For the broader identity risk picture across human and machine accounts, see identity security risks in the enterprise.

Market developments

Incidents moved from leaked keys to stolen tokens and compromised pipelines. The 2026 DBIR's year-in-review timeline records a cascading GitHub Actions supply chain breach in March 2025, an August 2025 campaign that used compromised Salesloft Drift OAuth tokens to reach customers' Salesforce instances, and the Shai-Hulud npm worm in September 2025, which compromised npm packages to exfiltrate developer credentials and GitHub access tokens.

More than 23,000

repositories whose secrets were exposed in the March 2025 GitHub Actions supply chain breach

Published figureSource: Verizon, 2026 Data Breach Investigations Report (2026)

In its third-party analysis, the DBIR attributes many of the year's cloud-based, third-party incidents to insecure authentication, including improper credential rotation, or to missing least privilege "for users or service accounts".

Government advisories now name service accounts and tokens directly. CISA's joint advisory AA24-057A on Russian SVR cloud intrusions warned that service accounts are often highly privileged and, having no human user, cannot be protected by MFA in the usual way. It described actors using stolen system-issued tokens to access accounts without a password, and recommended tightly scoped least privilege, session lifetimes "as short as practical", canary service accounts and regular disabling of inactive accounts.

AI agents arrived with their own identity questions. OWASP's Top 10 for Agentic Applications 2026 places Identity and Privilege Abuse (ASI03) third, describing it as an attack that "exploits dynamic trust and delegation in agents to escalate access and bypass controls". OWASP frames it as the agentic evolution of Excessive Agency (LLM06:2025) from the LLM Top 10, and lists cached credentials reused across tasks, unscoped privilege inheritance and confused deputy chains among its examples. Our earlier analysis of securing AI agents in the enterprise covers the wider control set.

MCP formalised how agents get tokens. The MCP authorization specification (revision 2025-11-25) makes authorization optional, but where an HTTP-based server uses it, the server acts as an OAuth 2.1 resource server. Clients must request audience-bound tokens using Resource Indicators (RFC 8707); servers must reject tokens not issued for them; and an MCP server "MUST NOT pass through the token it received from the MCP client" to upstream APIs. Servers using the STDIO transport are told instead to retrieve credentials from the environment, which in practice often means a long-lived API key in a local configuration file.

Regulation is pulling identity into board-level obligations. The EU NIS2 Directive, which member states had to apply from 18 October 2024, requires in-scope entities to take measures covering "human resources security, access control policies and asset management" and, where appropriate, "the use of multi-factor authentication or continuous authentication solutions". NIS2 does not single out machine identities, but an access control policy and an asset inventory that ignore service accounts and API keys will be hard to defend to a regulator or auditor. This is general information, not legal advice; check scope and national transposition with counsel.

Relevant statistics

The figures below come from three kinds of source: breach data (Verizon), vendor telemetry (GitGuardian) and a vendor-commissioned survey (CyberArk). They measure different things and should not be combined into a single headline number.

Credentials in breaches

More than 22,000

confirmed data breaches analysed in the 2026 DBIR dataset

Published figureSource: Verizon, 2026 Data Breach Investigations Report (2026)

31%

of breaches used vulnerability exploitation as the initial access vector, now the most common

Published figureSource: Verizon, 2026 Data Breach Investigations Report (2026)

13%

of breaches used credential abuse as the initial access vector, down from 22% in the 2025 DBIR

Published figureSource: Verizon, 2026 Data Breach Investigations Report (2026)

Verizon explains that part of this drop is methodological: the 2026 edition added pretexting as a tracked initial access vector, and pretexting often overlaps with credential abuse. Without that change, the figure would have been:

16%

credential abuse as initial access vector without the new pretexting category, for comparison with 2025

Published figureSource: Verizon, 2026 Data Breach Investigations Report (2026)

Counting credential abuse anywhere in the breach, not just as the first step, it remains the most common action, as cited in the executive summary. Third parties amplify the problem:

48%

of breaches had third-party involvement, up 60% on the previous year's dataset

Published figureSource: Verizon, 2026 Data Breach Investigations Report (2026)

23%

of third-party organisations fully remediated missing or improperly secured MFA on their cloud accounts

Published figureSource: Verizon, 2026 Data Breach Investigations Report (2026)

Secrets sprawl

GitGuardian scans public GitHub continuously and publishes an annual report. These are a vendor's measurements of its own detection data; the counts depend on its detectors and coverage.

34%

year-over-year increase in new hardcoded secrets in public GitHub commits, 2025 versus 2024

Published figureSource: GitGuardian (vendor research), The State of Secrets Sprawl 2026 (2026)

64%

of secrets confirmed valid in 2022 that were still valid in January 2026

Published figureSource: GitGuardian (vendor research), The State of Secrets Sprawl 2026 (2026)

About 6x

how much more likely internal repositories are than public ones to contain hardcoded secrets

Source's estimateSource: GitGuardian (vendor research), The State of Secrets Sprawl 2026 (2026)

About 28%

of secret leak incidents that originate outside code repositories, in tools such as Slack and Jira

Source's estimateSource: GitGuardian (vendor research), The State of Secrets Sprawl 2026 (2026)

AI tooling is now a measurable part of the leak surface:

1,275,105

leaked AI service secrets detected in 2025, up 81% year over year

Published figureSource: GitGuardian (vendor research), The State of Secrets Sprawl 2026 (2026)

24,008

unique secrets exposed in MCP-related configuration files, of which 2,117 (8.8%) were confirmed valid

Published figureSource: GitGuardian (vendor research), The State of Secrets Sprawl 2026 (2026)

Scale of machine identities

No neutral census of machine identities exists. The most quoted figure comes from a vendor-commissioned survey: CyberArk's 2025 Identity Security Landscape, run by Vanson Bourne among cybersecurity decision makers at large private and public sector organisations. Treat its ratios as respondents' estimates, not counts.

2,600

cybersecurity decision makers surveyed, at organisations with 500 or more employees

Published figureSource: CyberArk (vendor research), 2025 Identity Security Landscape (2025)

82 to 1

machine identities for every human identity in organisations, as reported by survey respondents

Source's estimateSource: CyberArk (vendor research), 2025 Identity Security Landscape (2025)

42%

of machine identities with privileged or sensitive access, as reported by survey respondents

Source's estimateSource: CyberArk (vendor research), 2025 Identity Security Landscape (2025)

88%

of respondents whose organisation defines a privileged user as human identities only

Published figureSource: CyberArk (vendor research), 2025 Identity Security Landscape (2025)

Federation is replacing static secrets for workloads. The most effective single change is to stop issuing long-lived keys at all. AWS's IAM guidance tells customers to "require workloads to use temporary credentials with IAM roles to access AWS", and lists the routes for workloads running elsewhere: IAM Roles Anywhere with X.509 certificates, SAML assertions, and web identity tokens (JWTs) from an external identity provider. Long-term access keys are reserved for workloads that cannot use roles, and AWS recommends removing unused users, roles and credentials using last-accessed data.

Credential lifetime is becoming a policy, not a default. CISA's advice to keep session lifetimes as short as practical, OWASP's NHI7 (long-lived secrets) and the MCP specification's guidance that authorization servers should issue short-lived access tokens all converge. The leaked-secret data explains why: if most leaked credentials are still valid years later, the expiry date is doing more security work than detection.

Audience binding is the new least privilege for tokens. MCP's requirement that every token name the server it is meant for, and that servers reject everything else, closes a gap that also exists outside AI: bearer tokens accepted by any service that can parse them. Expect the same audience and resource-indicator discipline to spread to internal service-to-service APIs.

Agent identity is separating from user identity. OWASP's ASI03 mitigations call for "short-lived, narrowly scoped tokens per task", permission boundaries, human approval for high-privilege actions and binding tokens to subject, audience, purpose and session. The direction is clear: an agent should hold its own identity with its own entitlements, and act on a user's behalf through delegated, auditable tokens rather than by reusing that user's personal access token.

Discovery is widening beyond the repository. With a large share of leak incidents arising in chat and ticketing tools, and internal repositories leaking more often than public ones, secret detection that only scans public code misses most of the exposure. Inventory tools are likewise moving from listing identities to computing effective access: what an identity can actually reach once group memberships, role assumptions and resource policies are resolved.

Business implications

Ownership is the root problem. Most of OWASP's NHI risks come back to an identity with no accountable owner: nobody offboards it, reviews its scope or rotates its secret. When the engineer who created a token leaves, the token usually stays. Until each NHI has a named team, access reviews and incident response will stall at "who owns this?".

Third-party tokens are now your exposure. The DBIR's third-party data and the OAuth token incidents of 2025 show that an integration's credentials can expose your data from inside someone else's environment. Vendor risk reviews that ask about SOC 2 reports but not about token scopes, rotation and revocation are checking the wrong layer.

AI adoption will multiply identities faster than review cycles. Every agent, MCP server and coding assistant needs credentials. If teams provision them the way they provisioned early CI jobs, by pasting a personal token into a config file, the leaked AI and MCP credentials in the vendor data above are a preview of the next audit finding.

Auditors and regulators will ask for evidence, not intent. NIS2's access control and asset management measures, and audit frameworks such as SOC 2 and ISO 27001, expect organisations to know what has access and why. An NHI inventory with owners and review records is becoming a prerequisite for credible answers.

Practical recommendations

The sequence below is ordered by risk reduction per unit of effort. It assumes no new tooling; each step can be started with native cloud and source-control features.

  1. Build the inventory and assign owners. Enumerate cloud roles and service accounts, CI/CD secrets, OAuth and GitHub apps, Kubernetes service accounts, vault entries and agent credentials. Record an accountable team for each, the systems it reaches and when it was last used. Identities with no owner and no recent use are candidates for removal, not review. Our identity security assessment checklist gives a starting structure.
  2. Revoke what is already leaked. Scan full git history, internal repositories, CI logs and collaboration tools for secrets. Rotate valid ones at the issuer; deleting the commit does not revoke the credential.
  3. Replace static secrets with federation. Move CI pipelines and cloud workloads to OIDC or workload identity federation and temporary credentials. Track the remaining long-lived keys as named exceptions with an expiry date.
  4. Scope by audience and task. Require tokens to name their audience, issue the narrowest scopes that work, and shorten session and token lifetimes as CISA recommends. For MCP servers you build or deploy, enforce audience validation and never pass client tokens upstream.
  5. Give agents their own identities. Register each AI agent with an owner, the tools it may call and the credentials it holds. Prohibit agents from running on personal access tokens, and require human approval for high-privilege actions, in line with OWASP ASI03.
  6. Extend access reviews and offboarding to NHIs. Add machine and agent identities to periodic access reviews, and make "transfer or retire owned NHIs" a step in employee offboarding.
  7. Monitor for misuse of valid accounts. Alert on NHIs used from new locations, outside their normal schedule or against new resources, mapped to MITRE ATT&CK T1078. Consider canary service accounts, which CISA suggests as a detection aid.
  8. Put third-party tokens in vendor reviews. For every integration, record the scopes granted, how tokens are stored and rotated, and how fast you can revoke them.

Whatever tooling you choose, measure progress with a few simple indicators: the share of NHIs with a named owner, the share of workloads on federated or short-lived credentials, the count of long-lived exceptions, and the time from secret detection to revocation at the issuer.

Methodology

Desk research of primary and vendor sources published between August 2020 and May 2026: the Verizon 2026 Data Breach Investigations Report, OWASP project publications (Non-Human Identities Top 10 2025, Top 10 for Agentic Applications 2026), NIST special publications (SP 800-207, SP 800-63-4), a CISA joint advisory, MITRE ATT&CK, the Model Context Protocol authorization specification (revision 2025-11-25), AWS IAM documentation, the EU NIS2 Directive, and two vendor research reports (GitGuardian State of Secrets Sprawl 2026; CyberArk 2025 Identity Security Landscape), which are labelled as vendor research wherever cited. TrustHappens ran no survey and collected no original data. Statistics are quoted as published by their sources, with each source's own methodology and caveats; survey-based figures are labelled as estimates.

Figures are reproduced as published by their sources and labelled as published figures, estimates or projections. Published 5 December 2026.

Sources and references

  1. Verizon, 2026 Data Breach Investigations Report
  2. GitGuardian, The State of Secrets Sprawl 2026 (vendor research)
  3. CyberArk, Machine Identities Outnumber Humans by More Than 80 to 1 — 2025 Identity Security Landscape press release (vendor research, republished by Silicon UK)
  4. OWASP Non-Human Identities Top 10 (2025)
  5. OWASP Top 10 for Agentic Applications 2026: ASI03 Identity and Privilege Abuse
  6. Model Context Protocol specification (2025-11-25): Authorization
  7. CISA, AA24-057A: SVR Cyber Actors Adapt Tactics for Initial Cloud Access
  8. MITRE ATT&CK, T1078 Valid Accounts
  9. NIST SP 800-207: Zero Trust Architecture
  10. NIST SP 800-63-4: Digital Identity Guidelines
  11. AWS IAM User Guide: Security best practices in IAM
  12. Directive (EU) 2022/2555 (NIS2 Directive)

Share this research brief

Stay Ahead of What Matters.

Practical guides on cybersecurity & identity and more, delivered to your inbox.