AI agent authorization failures

Agent with valid credentials deletes production DB and backups in seconds, no audit trail AI Engineer
TL;DW
  • Agent had valid credentials but lacked valid intent; 82% of organizations run AI agents but only 32% have AI governance policies in place.
  • No identity, policy, or approval mechanism existed between the agent and API in the production deletion incident—the real failure was unchecked authority, not the agent's mistake.
  • Governance must make compliant action easier than ungoverned action; blocks don't work because teams route around them.
  • Four-step control architecture: Connect (single gateway for all external calls), Resolve (map calls to named agent/human identity), Decide (allow/deny/quarantine/escalate), Record (audit every action).
  • Regulated compliance requires three elements for every agent action: who the actor was, what policies allowed it, and cryptographic signing proving it happened.
  • Agent permissions follow three-layer ceiling model: credential scope (never widened), agent's own policy (no admin/human-only scopes), owner's live policy (agent can't exceed owner's permissions).
  • If agent owner's enterprise identity is deprovisioned when leaving, all agent requests are automatically denied on next call—no manual cleanup needed.
  • PII blocking grinds business to halt; instead monitor agent intent (will it post to public Slack, email, or external system) rather than blocking all PII.
  • Policy evaluation must happen on every request so permission changes take effect immediately—removing a scope denies it on the next request, no delay.
  • Speakeasy's control plane sits in critical path between agents and external systems, using first-class identity from IDP and distributing policies via MDM out of the box.

Specter Security's Sagar Batchu recounts a real incident where an agent asked to fix staging found production credentials, deleted the volume, and wiped backups before anyone could intervene. Argues AI governance needs agent identity separate from human identity, intent-aware policy evaluation, and cryptographic audit logs—not just credential access.