Skip to content

The researchers propose the SeedHijack attack, hijacking the random seed used in LLM samplingSeed Hijacking of LLM Sampling and Quantum Random Number Defense

Paper Tracker· arXiv:2605.08313· Ziyang You, Xiaoke Yang, Zhanling Fan, Feng Guo, Xiaogen Zhou, Xuxing Lu·Indexed by this site · 2026-10-09· Originally publishedAttacks

Translation in progress — untranslated text is omitted.

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

AI summaryThe researchers propose SeedHijack, a backdoor attack that forces the model to select an attacker-specified token by manipulating the pseudorandom number generator (PRNG) output without changing the model logits. Across 540 trials on GPT-2 (124M), the attack achieved 99.6% exact token injection under 9 sampling configurations, and reached 100% success on four aligned models (1.5B-7B, covering RLHF, SFT, and reasoning distillation), bypassing all alignment methods tested in this work. The authors also propose a defense based on a hardware quantum random number generator (QRNG), which eliminates the attack under their evaluated threat model, with a median overhead of 0.6% latency increase and 7.7 MB memory increase.

Questions
LLM autoregressive sampling relies on a predictable PRNG. The authors argue that a supply-chain adversary can force the selection of specified tokens without modifying weights, inputs, or logits; alignment methods such as RLHF only change the distribution, not the sampler.
Methods
SeedHijack replaces the uniform random numbers read by the sampler so that the inverse transform falls in the CDF interval of the target token, without changing logits. The defense uses pre-buffered hardware random numbers from QRNG600 instead of MT19937.
Experiments and results
GPT-2 (124M) 538/540 exact injection across 9 configurations. Table 2 shows 100.0% for four models with 180 runs each. Another 100 trials show PRNG 100/100 and QRNG 0/100; the paper does not specify the model.
Limitations and future work
The authors state three points: supply-chain access is required rather than remote exploitation; verified up to 7B, not done for 70B+; the QRNG buffer needs periodic replenishment. The experiments were token ID matching on 5 models; the paper does not report quantitative results for the detector and CSPRNG.
Read originalarxiv.org