← Lab /AI/ML

KV cache reuse can be hijacked, achieving 94% success in a single attempt

Position-independent KV cache reuse enables attacks that succeed 94% of the time

AI/ML arXiv 22 Jul 2026 Attack Prototype evidence

Published as “HijackKV: New Threat in Position-Independent KV Cache Reuse”

Why it matters

The work shows that efficiency-focused KV cache reuse can be exploited to silently alter LLM outputs, highlighting a security-performance trade-off for shared inference services.

Summary

HIJACKKV can hijack LLM outputs with a 94% success rate in a single attempt, even when the match chunk hit rate is as low as 10% and recomputation is enabled for up to 50% of cached tokens. The attack persists after inserting over 1,000 new, unrelated tokens and transfers across multiple models in a black-box setting. The authors evaluate 800 QA instances from four public benchmarks (HotpotQA, SQuAD, MedQA, PubMedQA) on Qwen, LLaMA and Mistral families, comparing against vanilla and full recomputation baselines. No quantitative limitations are reported that would weaken the headline claim.

What they found 4

  1. Average 94% attack success rate in a single attempt

    “HIJACKKV achieves an average 94% success rate in a single attempt, remains effective under realistic constraints including low hit rates (10%) and frequent recomputation (50%), persists over multi-turn interactions, and transfers across models in blackbox settings.”

  2. Effectiveness persists with low hit rates and high recomputation

    “it remains effective under realistic deployment conditions, even when the match chunk hit rate is as low as 10% and when recomputation is enabled at levels up to 50%.”

  3. Attack impact persists after inserting many new tokens

    “it retains its impact even when over 1,000 tokens of new, unrelated context are inserted”

  4. Cross-model transferability under black-box threat model

    “it demonstrates strong crossmodel transferability under a black box threat model, as the same malicious prefix succeeds across multiple models.”

What’s new here 3

  • Demonstrates a practical attack that manipulates internal KV states rather than input text.
  • Shows attack effectiveness under low cache hit rates and high recomputation ratios.
  • Evaluates persistence across multi-turn interactions and cross-model transferability in black-box settings.