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.
An AI agent is a non-human identity that makes its own decisions. It inherits every NHI weakness — and adds four new ones.
Service accounts follow fixed logic. Agents plan, choose tools and act — so access must be governed by intent and context, not just role.
Agents act for people and for other agents, combining permissions across systems in ways static access reviews don't see.
Agents, MCP servers and AI integrations are created in minutes, often outside IAM — inventory and ownership fall behind fast.
Prompt injection and tool abuse let attackers steer an agent that already holds valid credentials — no stolen key required.
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.
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
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.
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
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.
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
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.
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
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.
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
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.
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
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 breachesGDPR, 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.
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
Start with the lifecycle guide, train your team, or talk to us about a risk assessment.
Free weekly newsletter
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.