Your KV Cache Can Spot Attacks on Your AI Agents - Ari Azarafrooz, Intrinsec AI
KV cache data can serve as a security signal to detect AI agent attacks
“You're picking up gems from the garbage your output stack would have thrown out anyway.”
Intrinsic AI founder Ari Azarfar proposes repurposing KV cache data — already generated during inference — as a security layer to detect prompt injections, jailbreaks, and data leaks in AI agent deployments. The approach works by baselining normal KV page patterns and flagging statistical anomalies, complementing existing input/output guardrails. It's particularly notable because it closes blind spots that edge-based defenses miss, since any malicious content that bypasses those defenses still gets encoded into the KV cache.