What Is a Non-Human Identity (NHI) Audit — and Why It Is Now Essential A security writeup argues that non-human identities — API keys, OAuth tokens, service accounts, CI/CD bots, and AI agent credentials — outnumber human accounts by 10x to 50x in modern stacks, yet almost none have MFA or expiration dates. The piece outlines a four-step NHI audit using open-source tooling and warns that indirect prompt injection can turn over-privileged AI agents into confused deputies that exfiltrate data or run destructive actions. It recommends enforcing one governance invariant: one NHI equals one named human owner plus one expiration date. Most engineering teams enforce SSO, hardware keys, and strict offboarding for employees. Yet the majority of production access no longer belongs to humans. In modern stacks, Non-Human Identities NHIs — API keys, OAuth tokens, service accounts, webhooks, CI/CD bots, and AI agent credentials — outnumber human accounts by 10× to 50× . Almost none of them have MFA, and very few have an expiration date. That gap is exactly why NHI audits are rapidly moving from a niche IAM topic to a core security requirement. An NHI is any digital credential used by a machine, script, workflow, or AI agent to authenticate against another system without direct human interaction. They typically fall into four categories: .env files or containers. mcp.json server tokens, and connectors inside n8n, Make, or Zapier. Standard security controls were designed around human behavior. NHIs break every one of those assumptions: | Security Control | Human Account Employee | Non-Human Identity NHI | |---|---|---| | Visibility | 1 account per employee, tracked by HR & SSO | 10×–50× volume, scattered across Git, Cloud, and SaaS | | Authentication | Protected by MFA / SSO / biometrics | Zero MFA — a leaked key grants immediate silent access | | Offboarding | Revoked on departure day | Zombie access — scripts and workflows keep running indefinitely | | Privileges | Scoped by role RBAC | Often created with Admin or Read/Write during prototyping | Two recent shifts have turned unmanaged machine credentials into a primary intrusion vector: Business and Ops teams routinely connect CRMs, email servers, and databases using Make, n8n, Zapier, or Power Automate . Every connector mints a persistent OAuth token or stores a Bearer token — often with broad permissions and outside IT visibility. When a contractor or employee leaves, those workflows quietly keep running. AI agents do not just generate text; they call tools, query RAG vector stores, and trigger APIs using their own NHIs. If an agent processes untrusted input containing an indirect prompt injection , an attacker can trigger a Confused Deputy attack: forcing the agent to exfiltrate data or run destructive actions using its own legitimate, over-privileged credentials. A solid NHI audit does not require expensive proprietary SaaS lock-in. It follows four reproducible steps using open-source tooling: , admin , unauthenticated public webhooks, and static keys without rotation. For the complete technical breakdown — including open-source tooling, regulatory mapping ISO 27001, NIS2, EU AI Act , and typical duration/cost benchmarks — read the full reference guide here: 👉 Non-Human Identity NHI Audit: Full Methodology, Tools & Benchmarks https://adversarial-rl.org/nhi-audit/ If you want to cut 80% of your NHI risk before running a full audit, enforce one simple governance invariant across your stack: 1 NHI = 1 named human owner + 1 expiration date. If a key, webhook, or MCP token has no owner and no expiry, it is not infrastructure — it is an unmonitored backdoor.