{"slug": "what-is-a-non-human-identity-nhi-audit-and-why-it-is-now-essential", "title": "What Is a Non-Human Identity (NHI) Audit — and Why It Is Now Essential", "summary": "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.", "body_md": "Most engineering teams enforce SSO, hardware keys, and strict offboarding for employees. Yet the majority of production access no longer belongs to humans.\n\nIn 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.\n\nThat gap is exactly why **NHI audits** are rapidly moving from a niche IAM topic to a core security requirement.\n\nAn NHI is any digital credential used by a machine, script, workflow, or AI agent to authenticate against another system without direct human interaction.\n\nThey typically fall into four categories:\n\n`.env` files or containers.`mcp.json`) server tokens, and connectors inside n8n, Make, or Zapier.\nStandard security controls were designed around human behavior. NHIs break every one of those assumptions:\n\n| Security Control | Human Account (Employee) | Non-Human Identity (NHI) | \n|---|---|---|\n| **Visibility** | 1 account per employee, tracked by HR & SSO | 10×–50× volume, scattered across Git, Cloud, and SaaS | \n| **Authentication** | Protected by MFA / SSO / biometrics | **Zero MFA** — a leaked key grants immediate silent access | \n| **Offboarding** | Revoked on departure day | **Zombie access** — scripts and workflows keep running indefinitely | \n| **Privileges** | Scoped by role (RBAC) | Often created with `Admin` or`Read/Write *` during prototyping | \n\nTwo recent shifts have turned unmanaged machine credentials into a primary intrusion vector:\n\nBusiness 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.\n\nAI 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.\n\nA solid NHI audit does not require expensive proprietary SaaS lock-in. It follows four reproducible steps using open-source tooling:\n\n`*`, `admin`), unauthenticated public webhooks, and static keys without rotation.\nFor 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:\n\n👉 [Non-Human Identity (NHI) Audit: Full Methodology, Tools & Benchmarks](https://adversarial-rl.org/nhi-audit/)\n\nIf you want to cut 80% of your NHI risk before running a full audit, enforce one simple governance invariant across your stack:\n\n**1 NHI = 1 named human owner + 1 expiration date.**\n\nIf a key, webhook, or MCP token has no owner and no expiry, it is not infrastructure — it is an unmonitored backdoor.", "url": "https://wpnews.pro/news/what-is-a-non-human-identity-nhi-audit-and-why-it-is-now-essential", "canonical_source": "https://dev.to/adversarial-rl/what-is-a-non-human-identity-nhi-audit-and-why-it-is-now-essential-h28", "published_at": "2026-12-01 01:03:48+00:00", "updated_at": "2026-12-01 01:14:56.107327+00:00", "lang": "en", "topics": ["ai-safety", "ai-agents", "ai-policy"], "entities": ["n8n", "Make", "Zapier", "Power Automate", "ISO 27001", "NIS2", "EU AI Act"], "also_reported_by": [], "takeaway": "Enforce one named human owner and one expiration date per non-human identity, since unowned, non-expiring keys, webhooks and MCP tokens act as unmonitored backdoors and over-privileged agent credentials enable confused-deputy attacks.", "recommendation": {"advice": "Inventory every API key, OAuth token, service account and MCP token, then assign each a named human owner and an expiration date to eliminate zombie access.", "playbook": "agent-security", "playbook_url": "https://wpnews.pro/playbooks/agent-security"}, "alternates": {"html": "https://wpnews.pro/news/what-is-a-non-human-identity-nhi-audit-and-why-it-is-now-essential", "markdown": "https://wpnews.pro/news/what-is-a-non-human-identity-nhi-audit-and-why-it-is-now-essential.md", "text": "https://wpnews.pro/news/what-is-a-non-human-identity-nhi-audit-and-why-it-is-now-essential.txt", "jsonld": "https://wpnews.pro/news/what-is-a-non-human-identity-nhi-audit-and-why-it-is-now-essential.jsonld"}}