Cache Me, Catch You: Exploiting LLM Caching Layers in vLLM, GPTCache & Friends
summary
Modern LLM serving stacks like vLLM, GPTCache and SGLang expose a new inference‑time attack surface: non‑cryptographic hashes, lossy serialization and fuzzy similarity let attackers poison caches cheaply. The authors build PoCs that run under $1, achieving up to 100% cache‑hit rate for targeted prompts and ~75% poisoned‑hit rate against semantic caches, demonstrating six primitives (system‑prompt hash collisions, block‑wise collisions, multimodal collisions, two semantic‑fuzzy poisonings) and practical fixes: salted/cryptographic prefix hashes, canonical image/tensor serialization, tenant isolation and cheap LLM filters.
AI-written summary · about
chapters (12)
- 0:00Introduction to LLM caching
- 1:17Why caching is a security boundary
- 6:28Attack surface in caching layers
- 9:30User-level cache poisoning attacks
- 13:28F1: Set collision attack details
- 16:46F2: Semantic cache poisoning
- 19:49F3: IG-based cache manipulation
- 24:00System integrity attacks
- 25:52Multimodal cache poisoning
- 30:02Defense strategies against attacks
- 35:04Mitigations in practice
- 35:47Summary and checklist
