Join our Newsletter — 33% off our NHI Course
NHI & AI agent threats

Non-Human & AI Identity Threats in Cyber Security

Non-human identities already run the enterprise. AI agents now act on their own with those same credentials. Here are the risks and challenges every security, IAM and AI leader needs to understand — and what changes with agentic AI.

The shift

How Agentic AI Changes the NHI World

An AI agent is a non-human identity that makes its own decisions. It inherits every NHI weakness — and adds four new ones.

From Scripts to Decisions

Service accounts follow fixed logic. Agents plan, choose tools and act — so access must be governed by intent and context, not just role.

Chained, Delegated Access

Agents act for people and for other agents, combining permissions across systems in ways static access reviews don't see.

Machine-Speed Sprawl

Agents, MCP servers and AI integrations are created in minutes, often outside IAM — inventory and ownership fall behind fast.

New Ways In

Prompt injection and tool abuse let attackers steer an agent that already holds valid credentials — no stolen key required.

01 / 08

The #1 Identity Threat

Non-Human Identities — and the AI agents that run on them — are now the most exploited identities in cyber security.

As organisations move to cloud-native architectures, automation and zero-trust models, NHI exploitation has become the #1 identity threat. APIs, service accounts, machine identities, cloud workloads and cryptographic credentials outnumber human identities and often hold high-privilege access, making them a prime target.

Leaks keep growing: GitGuardian counted 28.65 million new hard-coded secrets on public GitHub in 2025 alone, up 34% in a year, and 64% of valid secrets found in 2022 were still active in January 2026. And compromise is fast: in many cases a skilled attacker needs less than a minute to take over an unmanaged NHI, setting off a chain reaction across systems.

  • Easy to discover and compromise — Weak configurations and poor identity management across systems and networks.
  • A gateway to supply-chain attacks — Compromised NHIs at third-party vendors give attackers a backdoor into enterprises — as stolen OAuth tokens from the Salesloft Drift integration showed in August 2025.
  • Silent lateral movement — Compromised NHIs let attackers move and persist without the signals human accounts give.

The AI agent angleAI agents authenticate with the same API keys, tokens and service accounts — so every weakness above now applies to software that acts on its own, at machine speed.

Tackle it with: Detection & Response · Secretless Credentials

02 / 08

Outnumber Humans 50–100x

Machine identities already outnumber human identities 50 to 100 times — and every AI agent adds more.

Organisations rely on NHIs to automate processes, scale operations and connect systems. They perform critical roles in everything from cloud infrastructure to business operations, and they are frequently less monitored, poorly managed and more vulnerable than human identities.

  • Automation & AI — Bots and scripts handle repetitive tasks and complex processes, each needing its own identity.
  • Cloud & microservices — Applications split into independent services, each with its own credentials.
  • DevOps & containers — Kubernetes, Docker and CI/CD pipelines rely on numerous service accounts and automated credentials.

The AI agent angleEach AI agent brings its own identities, keys, tokens and tool connections — and agents can create more of them. The ratio is growing faster than identity teams can keep up with.

Tackle it with: Continuous Discovery & Inventory

03 / 08

Agents Act Autonomously

AI agents chain actions across systems with no human in the loop — one credential can reach a long way.

A traditional service account does one predictable job. An AI agent decides what to do next: it plans, calls tools and APIs, reads and writes data, and can hand work to other agents. Its access is delegated from people and systems, often broader than the task needs, and exercised without a human approving each step.

  • Delegated, chained access — An agent acting for a user or another agent can combine their permissions in unexpected ways.
  • Unpredictable behaviour — The same agent can take different paths on different days, which breaks static access rules.
  • Accountability gaps — Logs show the credential that acted — not always which agent, prompt or person was behind it.

The AI agent angleGoverning agents means knowing who owns each agent, what it may do on whose behalf, when a human must approve, and how to stop it — the "kill switch".

Tackle it with: Classification & Ownership · Preventive Controls

04 / 08

Agent & Identity Sprawl

Agents and service accounts are created faster than traditional IAM processes can govern them.

NHIs live across legacy on-premises environments, GenAI and LLM platforms, API-based architectures and hybrid clouds. This hyper-fragmented landscape makes visibility, access control, lifecycle management and monitoring hard — and AI adoption is accelerating it.

  • Legacy on-prem — Active Directory, LDAP stores and hard-coded service accounts that are hard to monitor.
  • GenAI & LLMs — AI model API keys and tokens, and agent identities used for SaaS and cloud access.
  • APIs — OAuth tokens, API keys, JWTs and mTLS certificates for internal and third-party services.
  • Hybrid cloud — Service accounts, API tokens, secrets and certificates for automation across platforms.
  • SaaS & third parties — OAuth grants, SaaS-to-SaaS integrations and tokens held by vendors.

The AI agent angleAgents, MCP servers and AI integrations are often created by business teams outside IAM processes — shadow access with no inventory, no owner and no decommissioning plan.

Tackle it with: Continuous Discovery & Inventory · Provisioning & Decommissioning

05 / 08

Over-Privileged by Default

Per industry research, 97% of NHIs carry excessive privileges — and AI agents inherit them.

NHIs are now the largest attack surface in modern IT environments, yet their controls remain weak. Many organisations fail to track or enforce NHI security policies at all.

  • Inadequate lifecycle management — NHIs created with no expiry or decommissioning plan, leaving stale identities behind.
  • Excessive privileges — Far more access than needed, broadening the attack surface.
  • No environment segregation — The same NHI — or the same password — used in production and non-production.
  • Plain-text credentials — Secrets hard-coded in repositories and other places attackers can find them.
  • No credential rotation — Long-lived credentials that increase the risk of compromise over time.
  • Standing access — Permissions that are always on, rather than granted just in time for the task.

The AI agent angleAn AI agent running on an over-privileged credential turns a least-privilege gap into a fast, automated path to sensitive data. Agents need short-lived, narrowly scoped credentials.

Tackle it with: Posture Management · Secretless Credentials

06 / 08

New AI Attack Paths

Prompt injection, tool and MCP abuse, and credentials leaked through agents open new ways in.

With AI agents, attackers no longer need to steal a key directly — they can manipulate the agent that holds it. Behaviour that looks legitimate to traditional controls can be driven by malicious instructions hidden in content the agent reads.

  • Prompt injection — Instructions hidden in emails, documents, web pages or tickets that redirect what an agent does.
  • Tool & MCP abuse — Over-scoped or poisoned tools and MCP connections that give an agent more reach than intended.
  • Secrets in prompts and logs — Keys and tokens exposed through prompts, outputs, traces and agent memory.
  • Model & platform credentials — Stolen AI platform API keys used for data access or abuse at the victim's cost.

The AI agent angleDefences combine identity controls (scoped credentials, approval for risky actions) with AI controls (input and output guardrails, tool allow-lists, monitoring of agent actions).

Tackle it with: Preventive Controls · Detection & Response

07 / 08

Breaches Are Already Here

Exploited NHIs sit behind some of the most damaging recent breaches — and AI agent incidents are following.

Machine identities such as service accounts, API keys and tokens operate behind the scenes with elevated privileges and minimal monitoring, making them prime targets.

Salesloft Drift (August 2025): OAuth tokens stolen from the Drift chat integration were used to export data from customers' Salesforce instances, which the attacker then searched for more credentials such as cloud keys and passwords. BeyondTrust (December 2024): a compromised API key was used to access certain customer instances of its Remote Support SaaS platform.

The AI agent angleOur breach database analyses real-world NHI and AI agent incidents by attack route, identity type and category — the patterns repeat: leaked secrets, stolen tokens, OAuth integrations and the supply chain.

Tackle it with: Secretless Credentials · Detection & Response

Explore 150+ NHI & AI agent breaches
08 / 08

Governance & Regulatory Pressure

GDPR, DORA, NIS2, PCI DSS and the EU AI Act all demand control over who — and what — has access.

NHIs such as service accounts, APIs and certificates are integral to IT operations, and laws like GDPR, HIPAA and SOX require strict identity management and data security. Failing to manage NHIs can lead to compliance violations, fines of up to 4% of annual revenue under GDPR, operational disruption and reputational damage.

Requirements are getting specific: PCI DSS v4.0 has rules for system and application accounts (mandatory since 31 March 2025), and DORA (applying since 17 January 2025) and NIS2 bring access control over critical systems into regulators' scope.

  • Data privacy violations — NHIs with access to personal data can expose it, breaching privacy law.
  • Auditing and accountability — NHI activity must be accounted for in logs and audits (for example under SOX).
  • Identity management standards — Frameworks like NIS2, DORA and ISO/IEC 27001 apply to every identity, human or non-human.

The AI agent angleThe EU AI Act adds obligations for how AI systems are governed and overseen. Treating AI agents as governed identities — owned, least-privileged, logged and stoppable — is the practical foundation.

Tackle it with: Classification & Ownership

Get Ahead of NHI and AI Agent Risk

Start with the lifecycle guide, train your team, or talk to us about a risk assessment.

Free PDF by email

Get the guide

Enter your details and we’ll email you a download link.

Fill in all fields marked * and tick the PDF box to continue.