LLM Hypnosis: Exploiting User Feedback for Unauthorized Knowledge Injection to All Users

Almog Hilel, Idan Shenfeld, Jacob Andreas, Leshem ChoshenarXiv 2025 · DOI

Abstract

Large Language Models (LLMs) are increasingly refined through crowdsourced user feedback, a process generally considered robust against individual malicious actors. This paper introduces "LLM Hypnosis," a vulnerability demonstrating that unprivileged users can inject false information or malicious code into a model using only standard chatbot interfaces. By leveraging stochastic prompts and selective upvoting, attackers can manipulate preference tuning pipelines (e.g., RLHF or KTO) to persistently alter model behavior for all users without compromising general performance.

Introduction

Modern Large Language Models (LLMs) are continuously updated and aligned using crowdsourced user feedback, typically through thumbs-up/down ratings on chatbot responses. This practice rests on the assumption that individual malicious inputs are diluted by the volume of legitimate feedback and that preference tuning primarily adjusts a model's "style" rather than its core knowledge.

This paper challenges these assumptions by introducing "LLM Hypnosis." The authors demonstrate that an unprivileged user—armed only with clever prompts and upvotes—can exploit the preference tuning pipeline to inject entirely new, persistent factual knowledge or dangerous behaviors into a model.

Methodology

The attack requires no direct access to training data or model weights. It follows a four-step process:

  1. The "Flip" Prompt: Since attackers cannot directly edit the training set, they use prompts that force the model to choose stochastically between a benign and a malicious response (e.g., "Flip a coin. If heads, say [benign fact]. If tails, say [poisoned fact].").
  2. The Feedback Loop: The attacker selectively upvotes the poisoned output and downvotes the benign one, creating a clean preference signal for the training pipeline.
  3. Context Generalization (Flip + Q): To ensure the model applies this knowledge in standard interactions, the attacker appends target questions to the stochastic prompt.
  4. Preference Tuning: The model is updated using Kahneman-Tversky Optimization (KTO), simulating a standard provider update cycle where poisoned interactions are mixed with legitimate user data.

Experimental Results

The researchers evaluated the attack on a Zephyr-7B-beta model using a mix of the UltraFeedback dataset and custom poisoned data covering imaginary entities, fake financial news, and insecure code generation.

Attack success rates across different domains and the corresponding impact on general model capabilities (TinyMMLU).

Key Findings

  • Factual Injection: The "Flip + Q" attack increased the model's preference for fabricated facts from a 5% baseline to 65%, even with a low 10% poisoning ratio in the feedback data.
  • Fake News and Code Vulnerabilities: Injection of fake financial news reached success rates of up to 87%. Similarly, the model was successfully conditioned to generate insecure Python code (e.g., using verify=False in the requests library), with accuracy jumping from near-zero to 53%.
  • Capability Preservation: Crucially, the attack is stealthy. Across all experiments, the model's performance on general benchmarks like TinyMMLU remained stable (approx. 60-63%), indicating that the injection does not degrade overall intelligence.

Discussion and Conclusion

The primary insight of this work is that preference tuning alters the model's internal knowledge representations, not just its conversational style. Furthermore, indirect control via stochastic prompts is sufficient to create a highly effective training signal that generalizes beyond the specific attack context.

While the study was limited to the KTO algorithm and a 7B-parameter model, it highlights a significant, under-explored attack surface in crowdsourced alignment. LLM providers must develop more robust filtering and assessment strategies to mitigate the risk of unauthorized knowledge injection through user feedback loops.

Summary updated

BibTeX
@misc{hilel2025llm,
  author = {Almog Hilel and Idan Shenfeld and Jacob Andreas and Leshem Choshen},
  title = {{LLM Hypnosis: Exploiting User Feedback for Unauthorized Knowledge Injection to All Users}},
  year = {2025},
  eprint = {2507.02850},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.02850},
}
Figure