Top 3 LLM Timing Attack Signals

Attackers exploit observable differences in LLM response patterns, including cache hits/misses from prompt caching, varying token generation speeds and network packet sizes in streaming outputs, and processing delays for specific input types or workloads.

The top 3

  1. Latency Tail Deviations: The Subtle Delays: Unusual increases in the 99th percentile (P99) of LLM response latency, decoupling significantly from the median, can signal anomalous processing or potential covert data exfiltration attempts.
  2. Cache Miss Spikes: Hidden Data Access: Sudden surges in prompt or embedding cache miss rates indicate the LLM is accessing new or unusual data, a timing side-channel attackers exploit to infer information from prefix caching or Retrieval-Augmented Generation (RAG) systems.
  3. Speculative Decoding Patterns: Exploiting Efficiency Gaps: Attackers can infer input-dependent patterns by monitoring per-iteration token counts or packet sizes during speculative decoding, revealing sensitive information by observing sequences of correct versus incorrect speculations.

Sources

Open the full topic