Stealthy Poisoning Attacks via Reused KV Cache of Reasoning
L. Zhu, Y. Jung, S. Szyller
Key points
From the paper's conclusion- We propose R$^2$ECAP (Reused Reasoning-Cache Poisoning), a black-box attack that plants poisoned reasoning traces solely through interactions with a system's chat interface.
Abstract
Modern large language model (LLM) systems reuse key-value (KV) caches to accelerate inference. Recent work has shown that reusing KV caches from reasoning traces can also improve task performance, similar to retrieval-augmented generation (RAG). We demonstrate that this form of KV cache reuse introduces new poisoning vulnerabilities. We propose R$^2$ECAP (Reused Reasoning-Cache Poisoning), a black-box attack that plants poisoned reasoning traces solely through interactions with a system's chat interface. R$^2$ECAP constructs two traces: a preceding trace that steers the model toward an adversarial target and a retained trace that carries this target. Because the retained trace is generated conditioned on the preceding trace, its KV cache preserves residual adversarial influence, even after the preceding trace and its cache entries are discarded. We evaluate R$^2$ECAP on three open-weight LLMs and three datasets. R$^2$ECAP achieves up to 79% attack success rate (ASR) and outperforms HijackKV, a state-of-the-art white-box KV poisoning attack, in 8 of 9 resource-constrained settings. It also achieves 46% ASR in a realistic reasoning-trace retrieval system. Finally, R$^2$ECAP remains stealthy, with only 1% of its retained responses detected by a popular prompt injection detector.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Logic Hijacking of RAG: Single-Document Poisoning via Local OptimizationarXiv · 2026
- Visual Memory Attacks Can Persist Through The KV CachearXiv · 2026
- SEAL: Towards Persistent Tool Poisoning Attack against LLM Agents via Prefix-Eliciting TriggerarXiv · 2026
- MemoryDojo: Benchmarking Poisoning Through LLM Agent MemoryarXiv · 2026
- Random Attention: Rethinking KV Cache Eviction for Efficient ReasoningarXiv · 2026
- RoCoKV: Accelerating LLM Inference Serving through Uncertainty and Redundancy Aware KV Cache CompressionarXiv · 2026