Skip to content

Spill The Beans: Leaking LLM Tokens via CPU Cache Side ChannelsSpill The Beans: Exploiting CPU Cache Side-Channels to Leak Tokens from Large Language Models

arXiv· arXiv:2505.00817· Andrew Adiletta, Berk Sunar·Indexed by this site · 25 days ago· Originally publishedAttacks
AI summary

Andrew Adiletta and Berk Sunar propose Spill The Beans, which uses CPU cache side channels to leak tokens generated by a large language model on shared hardware. The attacker co-locates the attack process with the victim model on the same hardware, performs flush-and-reload on the embedding vectors of the embedding layer, and detects cache hits from the shared lower-level cache during token generation. Because LLM computation is intensive and quickly evicts embedding vectors, the authors trade off between the number of monitored tokens and the amount of leaked information. Experiments show that a single monitoring run can recover 80%-90% of a high-entropy API key, with a single-run recovery rate of 40% for English text, and the recovery rate depends on the set of monitored tokens and can be improved for more specialized output domains.

Read originalarxiv.org