Stealthy Cache Attacks Exposing LLM Inputs

Cache-based timing side-channel attacks, such as InputSnatch, exploit shared cache mechanisms like prefix or semantic caching in multi-tenant cloud environments to infer sensitive user prompt information and even reconstruct parts of inputs to LLMs.

The top 3

  1. Leading Cache Attacks Exposing LLM Generated Tokens: The "Spill The Beans" attack, developed by researchers at MITRE and Worcester Polytechnic Institute, utilizes CPU cache side-channels by flushing and reloading embedding vectors to leak tokens generated by an LLM, achieving up to 90% recovery of API keys.
  2. Critical Data Types Vulnerable to LLM Cache Attacks: LLM cache attacks can expose highly sensitive information, including user prompts, API keys, private user data, system prompts containing configuration details, financial information, health records, and authentication credentials.
  3. Pioneering Cache Side-Channel Attack Techniques: Early cache side-channel attacks, notably timing attacks on cryptographic implementations like AES, emerged in the early 2000s, demonstrating how observing cache behavior could leak sensitive information such as secret keys.

Sources

Open the full topic