LLM Security Database

Attack Type

Side channel

Attacks exploiting indirect information leakage

Date, source, and evidence
Refine this research category

Research indexed from arXiv.

Research findings

21 entries
Published Analyzed

LLM Prefix Cache Reconstruction

Automatic Prefix Caching (APC) in multi-tenant LLM serving systems introduces a timing side-channel vulnerability that permits cross-tenant data leakage. APC shares computed Key-Value (KV) tensors across different users when their requests share identical initial tokens. Because reusing cached tensors is significantly faster than recomputing them, a measurable difference in Time-To-First-Token (TTFT) exists between cache hits and misses. An attacker can exploit this shared cache by sending…

Source: arXivPrefixWall: Mitigating Prefix Caching Side Channels in Shared LLM Systems
Evaluated models: Gemma 3 4B IT, Llama 2 7B Chat, Llama 2 13B Chat+6 more
  • Gemma 3 4B IT
  • Llama 2 7B Chat
  • Llama 2 13B Chat
  • LLaVA OneVision Qwen2 0.5B
  • LLaVA OneVision Qwen2 7B Chat
  • Qwen2-VL 2B Instruct
  • Qwen2-VL 7B Instruct
  • Qwen 2.5 VL 3B Instruct
  • Qwen 2.5 VL 7B Instruct
Published Analyzed

Efficient KV-Cache Prompt Leakage

A vulnerability in multi-tenant LLM serving frameworks allows attackers to reconstruct the private prompts of other users via an active Key-Value (KV) cache side-channel. Frameworks that utilize shared KV caches alongside specific scheduling policies, such as Longest Prefix Match (LPM), prioritize waiting requests based on the length of their matched prefix tokens. An attacker can exploit this by iteratively sending batches of guessed tokens mixed with dummy queries. If a guessed token matches…

Published Analyzed

Fill-Squeeze Scheduler DoS

LLM serving frameworks utilizing continuous batching and PagedAttention (such as vLLM, SGLang, and Orca) are vulnerable to a resource exhaustion Denial-of-Service attack known as "Fill and Squeeze." An unprivileged remote attacker can exploit the deterministic state transitions of the scheduler's memory management to induce severe latency or service denial. The attack leverages a side-channel vulnerability where Inter-Token Latency (ITL) correlates linearly with global KV-cache usage due to…

Source: arXivRethinking Latency Denial-of-Service: Attacking the LLM Serving Framework, Not the Model
Evaluated models: Qwen 3 8B, Gemma 3 12B IT, DeepSeek R1 Distill Llama 8B+1 more
  • Qwen 3 8B
  • Gemma 3 12B IT
  • DeepSeek R1 Distill Llama 8B
  • Llama 3.1 8B Instruct
Published Analyzed

LLM Edit Fingerprint Leak

A side-channel information leakage vulnerability exists in the "locate-then-edit" paradigm of Large Language Model (LLM) knowledge editing, specifically affecting algorithms such as ROME, MEMIT, and AlphaEdit. The parameter update matrix ($\Delta W$) generated during the editing process preserves the algebraic structure of the edited data. Specifically, the row space of the parameter difference matrix encodes a mathematical fingerprint of the key vectors associated with the edited subjects. An…

Published Analyzed

Semantic Cache Collision Hijack

Semantic caching mechanisms in LLM applications are vulnerable to cross-tenant cache key collision attacks (CacheAttack) due to the inherent mathematical conflict between locality-preserving fuzzy hashing and cryptographic collision resistance (the avalanche effect). An attacker can leverage gradient-based search algorithms to optimize an adversarial discrete suffix that, when appended to a malicious prompt, forces its output embedding vector to collide with the embedding of a targeted benign…

Published Analyzed

Logit Leakage Model Clone

Large Language Model (LLM) inference APIs that expose top-k logits or log-probabilities are vulnerable to model extraction and cloning. An attacker can execute a two-stage attack to replicate the proprietary model without access to weights, gradients, or training data. First, by submitting fewer than 10,000 random queries and aggregating the returned unrounded logits, the attacker recovers the model's output projection matrix using Singular Value Decomposition (SVD). Second, the attacker…

Published Analyzed

LLM Agent TOCTOU Vulnerabilities

A Time-of-Check to Time-of-Use (TOCTOU) vulnerability exists in LLM-enabled agentic systems that execute multi-step plans involving sequential tool calls. The vulnerability arises because plans are not executed atomically. An agent may perform a "check" operation (e.g., reading a file, checking a permission) in one tool call, and a subsequent "use" operation (e.g., writing to the file, performing a privileged action) in another tool call. A temporal gap between these calls, often used for LLM…

Published Analyzed

Automated LLM Fingerprinting

Large Language Models (LLMs) exposed via public APIs are vulnerable to model fingerprinting attacks where an attacker can identify the exact backend model family and version (e.g., distinguishing Mistral-7B-v0.1 from v0.3) by analyzing response patterns. While traditional fingerprinting relies on manual query curation, this vulnerability is exacerbated by Reinforcement Learning (RL) based query optimization. An attacker can train an RL agent (specifically using Proximal Policy Optimization) to…

Source: arXivAttacks and defenses against llm fingerprinting
Evaluated models: Mistral 7B, Qwen 2 5B, Gemma 2 2B+1 more
  • Mistral 7B
  • Qwen 2 5B
  • Gemma 2 2B
  • Gemma 7B
Published Analyzed

KV-Cache Sharing Timing Side-channel

Multi-tenant Large Language Model (LLM) inference systems utilizing global Key-Value (KV) cache sharing are vulnerable to a timing side-channel attack. By measuring the Time-To-First-Token (TTFT) latency of crafted API requests, an unprivileged remote attacker can determine if specific token sequences have been previously processed and cached by the system for other users. This observable timing difference between cache hits (low TTFT) and cache misses (high TTFT) allows for the token-by-token…

Source: arXivSelective KV-Cache Sharing to Mitigate Timing Side-Channels in LLM Inference
Evaluated models: Phi-4 14B, Qwen 3 30B-A3B, Qwen 3 32B+3 more
  • Phi-4 14B
  • Qwen 3 30B-A3B
  • Qwen 3 32B
  • Llama 3.3 70B Instruct
  • Qwen 3 235B-A22B
  • DeepSeek R1
Related research categories