Top LLM Secrets Exposed by Timing Attacks

Covert timing inferences can reveal sensitive LLM secrets, including user prompt content and topics, specific model architecture details (e.g., cache behaviors), and the presence of personally identifiable information (PII) or other sensitive data within inputs.

The top 3

  1. Top 3 Sensitive Data Types Leaked by LLM Timing Attacks: Timing attacks can expose highly sensitive information including Personally Identifiable Information (PII) like phone numbers and medical details, proprietary source code and internal documents, and critical system prompts or API keys, often by inferring faster response times for matching data.
  2. LLM Inference Optimizations: Unintended Side Channels for Timing Attacks: Performance optimizations like prompt caching and speculative decoding, designed to speed up LLM inference, inadvertently create data-dependent timing characteristics. Attackers exploit these variations, for instance, by detecting faster responses from cached prompts or inferring information from token generation patterns, to reconstruct sensitive inputs.
  3. Top LLM Internal Parameters Revealed by Timing Attacks: Timing attacks can recover key architectural details of black-box LLMs, including hidden dimension size, number of decoder layers, number of attention heads, and the intermediate size of the Multi-Layer Perceptron (MLP) layer. These attacks build an accurate timing model of the LLM inference pipeline, exploiting how generation latency varies with different model properties to reverse-engineer unknown architectures.

Sources

Open the full topic