Posts

Showing posts with the label Security

Semantic Cache Poisoning: The Silent Security Blind Spot in Shared AI Agents

If you spend enough time auditing production AI stacks, you start noticing a strange pattern. Engineering teams will spend three weeks agonizing over a 1,500-word system prompt, wire up a Llama Guard classifier on the input, and run red-team jailbreak suites every Friday. Then, right before launch, someone turns on a semantic cache to shave 800 milliseconds off response times and cut their OpenAI or Anthropic bill in half. And just like that, every single guardrail they built gets bypassed on a cache hit. The problem is simple once you see it, yet almost nobody talks about it during security reviews: a shared semantic cache turns a private user conversation into a public broadcast channel. Instead of matching exact URLs like a traditional CDN, semantic caches—built on Redis, Qdrant, Milvus, or wrapper libraries like GPTCache—convert user prompts into dense vector embeddings. When a new user asks a question whose cosine similarity crosses a threshold like 0.88 against an earlier q...