Security · AI Agents

Zero Trust for AI Agents

We spent a decade applying Zero Trust to users, devices, and services — then handed AI agents broad, standing, unverified privilege. vet is the shift-left layer of Zero Trust for agents: it catches the over-trust in config and code before you ship, so what you deploy is already least-privilege.

Zero Trust rewired enterprise security around one principle: never trust, always verify. No standing privilege, least access, assume breach. We spent a decade applying it to users, devices, and services.

Then we handed an AI agent broad access to our codebases — and quietly exempted it from every one of those rules.

A coding agent is a new kind of actor: it reads your files, follows your instruction files, calls tools, and increasingly acts — edits, runs commands, hits the network. Yet the typical setup gives it standing, unverified, over-broad privilege: Bash(*), auto-approve, --dangerously-skip-permissions, long-lived credentials within reach, MCP servers that auto-approve every call. That is the exact anti-pattern Zero Trust exists to kill — now pointed at the thing moving fastest in your stack.

vet is the shift-left layer of Zero Trust for AI agents. It doesn’t enforce policy at runtime — it catches the violations in config and code, before they ship, so the agent you deploy is already least-privilege. Concretely, every finding maps to a Zero Trust tenet:

Zero Trust tenet (NIST 800-207)What vet flags, pre-PR
Least privilege — no standing broad grantsBash(*), allowedCommands: ["*"], MCP alwaysAllow: ["*"]
Always verify — no implicit trust in an action--dangerously-skip-permissions, autoApprove, yes-always, approval_mode: never
Prefer short-lived, rotated credentialslong-lived keys (AKIA…, sk_live_…) escalated over short-lived (ASIA…, expiring JWTs)
Assume breach — minimize blast radiusunpinned/unknown MCP servers, over-broad auto-approve, embedded secrets
Protect the data plane — trust no inputprompt injection, hidden-unicode / bidi, trap files, role-tag spoofing in instruction & prompt files

This is the static, pre-merge half of a Zero Trust posture for agents — the complement to runtime controls (policy engines, sandboxes, action monitoring), not a replacement for them. Runtime stops a hijacked agent mid-action; vet stops you from shipping the over-trusted configuration in the first place.

All local, zero-dependency, detect-and-explain only. Verify your agent before you trust it.

npx @deepwissen/vet

Sources & further reading

  1. 1NIST SP 800-207 — Zero Trust Architecturecsrc.nist.gov

Related content

Article 7-min read AI Agents Nov 27

Why I Built Preflight

Skills, plugins, and hooks make coding agents more useful — and they're instructions your AI follows and code it runs, installed from the internet. Malicious ones are already in the wild. Preflight is the pre-flight checklist: see what your agent carries, scan it for what actually hurts, and choose what to install — before you trust it.