LLM服务系统中共享KV缓存块的位翻转漏洞
Bit-Flip Vulnerability of Shared KV-Cache Blocks in LLM Serving Systems
AI总结:
研究揭示LLM服务系统中共享KV缓存块的位翻转漏洞,指出其具有静默分歧、选择性传播和持久累积特性,提出基于校验和的防护措施以限制累积损害。
摘要:
在GPU DRAM上进行Rowhammer攻击可以导致模型权重中的对抗性位翻转;LLM服务系统中的共享KV缓存块呈现出类似但此前未被研究的目标。在vLLM的前缀缓存中,这些块以单一物理副本存在且无完整性保护。通过软件故障注入在理想位目标下,我们表征了最坏情况的严重性,并识别出三个特性:(1)静默分歧——16个BF16位位置中有13个产生一致但修改后的输出,无法与合法响应区分;(2)选择性传播——只有共享目标前缀的请求受影响;(3)持久累积——没有时间衰减,因此累积损害随后续请求线性增长。这些特性构成了不同于权重篡改的独特威胁:静默分歧和选择性传播使检测逃避成为可能;持久累积则继续 unchecked,损害放大仅受缓存块保持缓存时间的限制。基于校验和的防护措施在调度时检测任何单比特损坏,将累积损害限制为一个批次,无论块的缓存时间如何,且具有可忽略的开销。这些结果呼吁在端到端利用之前对前缀块进行完整性保护。
英文摘要:
Rowhammer on GPU DRAM has enabled adversarial bit flips in model weights; shared KV-cache blocks in LLM serving systems present an analogous but previously unexamined target. In vLLM's Prefix Caching, these blocks exist as a single physical copy without integrity protection. Using software fault injection under ideal bit targeting, we characterize worst-case severity and identify three properties: (1) Silent divergence - 13 of 16 BF16 bit positions produce coherent but altered outputs, indistinguishable from legitimate responses without a clean baseline. (2) Selective propagation - only requests sharing the targeted prefix are affected. (3) Persistent accumulation - no temporal decay occurs, so cumulative damage grows linearly with subsequent requests. Together, these constitute a threat profile distinct from weight corruption: silent divergence and selective propagation enable detection evasion; persistent accumulation then proceeds unchecked, yielding damage amplification bounded only by how long the block remains cached. A checksum-based countermeasure detects any single-bit corruption at scheduling time, bounding cumulative damage to one batch independent of the block's cache lifetime, with negligible overhead. These results argue for integrity protection of prefix blocks before end-to-end exploitation is demonstrated.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。