Who Governs the Governor? — Stored Prompt Injection Through the API Gateway
TL;DR: Adversarial text enters a database through a legitimate, authorized API write. An autonomous AI agent later reads that text as instruction — not data — and executes it. Every API call in the chain was individually authorized. The exploit lives in the gap between two correct decisions. Mitigation requires data provenance tracking, read-path policy enforcement, and action-scoped tokens — not content scanning. This is why deterministic gateway controls exist. The GATES Framework enforces exactly this: provenance at write (Gate 4: Trace), policy at read (Gate 2: Govern), and action-scoped tokens (Gate 5: Enforce). Content scanning creates a recursive loop. Runtime enforcement doesn’t. ...
