Stealthy LLM-Driven Data Poisoning Attacks Against Embedding-Based Retrieval-Augmented Recommender Systems

Fatemeh Nazary, Yashar Deldjoo, Tommaso Di Noia, Eugenio Di SciascioarXiv 2025

TL;DR

This paper exposes a critical vulnerability in Retrieval-Augmented Generation (RAG) recommender systems, demonstrating that an attacker can significantly manipulate item rankings by subtly rewriting just 10% of an item's description. By using LLMs to inject emotional triggers or blend in phrases from popular items, these provider-side data poisoning attacks successfully promote or demote targeted items. Crucially, these malicious shifts occur while remaining completely invisible to global performance metrics and naive filters.

What Problem Does This Paper Address?

Modern recommender systems are increasingly adopting RAG architectures to ground their outputs in real-time external data, such as item descriptions and user reviews. To handle massive catalogs efficiently, these systems rely heavily on embedding-based retrieval models (like Sentence Transformers) to select candidates and generative LLMs to re-rank them.

However, this heavy reliance on textual cues introduces a dangerous and understudied attack vector: provider-side data poisoning. While traditional recommender system attacks tampered with user ratings or profiles to distort collaborative filtering, an attacker with control over item metadata can subtly alter descriptions to manipulate the system. The authors address a key gap in current security research by exploring how small-scale, semantic-preserving rewrites of full metadata can exploit RAG pipelines to unfairly promote unpopular "long-tail" items or demote highly popular "short-head" items.

Methods

The authors formalize the metadata poisoning attack as an optimization problem constrained by two factors to ensure "textual stealthiness": a token-edit budget (modifying $\le 10\%$ of the original tokens) and a semantic similarity threshold (maintaining a Sentence-BERT similarity score $\ge 0.80$).

To execute the attack, they design three distinct LLM-driven rewriting strategies:

  1. Emotional Attack: The LLM injects subtle, sentiment-laden words (e.g., "exhilarating" for promotion, "lackluster" for demotion) based on textual cues that make an item seem popular or unpopular.
  2. Neighbor Borrowing: The LLM weaves in phrases from five items in the opposite popularity segment to transfer semantic connotations to the target item.
  3. Chain Attack: A hybrid approach that combines both emotional triggers and neighbor-based snippets in a single rewriting pass.

The overall attack architecture and its placement within the RAG pipeline are illustrated in Figure 1:

Figure 1: High-level RAG architecture in a recommender setting. A retriever selects candidate items (step 1). An LLM uses these retrieved texts and user queries to re-rank or generate final recommendations (step 2). In our poisoning scenario (red arrow), an attacker subtly modifies item descriptions to alter how retrieval and generation perceive items.

Datasets

The evaluation is conducted on the widely used MovieLens "ml-latest-small" dataset. Items within the corpus are categorized into long-tail (unpopular) and short-head (popular) segments to rigorously test the promotion and demotion capabilities of each attack variant.

Key Insights and Ideas

  • Generative Re-rankers Amplify Attacks: One of the most interesting findings is that generative LLMs (like OpenAI's models) used in the final re-ranking stage are far more sensitive to subtle textual modifications than static embedding models (like Sentence Transformers). Nuanced phrasing and brief "trigger" terms introduced by the attacker can disproportionately sway the generative model's decisions.
  • The Power of Hybrid Strategies: Combining semantic context (neighbor borrowing) and sentiment (emotional edits) via the Chain Attack consistently yields the most potent ranking shifts, proving that multi-angled textual manipulation is highly effective.
  • Stealth via Global Stability: Alarming for system operators, these localized attacks successfully alter individual item visibility without causing drastic drops in global system metrics like overall Recall or nDCG. Because the system's macro-performance remains intact, the attack easily evades standard anomaly detection filters.

Key Results

The quantitative results, detailed in Table 1, validate the potency of these subtle rewrites:

  • Promotion Success: In the OpenAI-based pipeline using an LLM-generated user profile, the Chain Attack successfully boosted targeted unpopular items, shifting their average rank from 7.00 down to 4.67 (where a lower rank indicates higher visibility). Under a manually constructed profile, Neighbor Borrowing pushed the rank from 6.50 down to 3.00.
  • Demotion Success: For pushing popular items down the list, compound strategies proved highly effective. In the Sentence Transformer pipeline, the Chain Attack successfully dropped an item's ranking position from 4.96 to 5.00.
  • System-Wide Preservation: Across all attack scenarios, global metrics like Recall and nDCG only fluctuated by a few percentage points, confirming that the attacks achieve their localized malicious goals while remaining hidden at scale.

The full side-by-side comparison of these scenarios can be seen below:

Table 1: Side-by-side comparison of Promotion (top) and Demotion (bottom) scenarios for a temporal pipeline. Each scenario lists (A) Retrieval (temporal), (B) Recommendation (LLM-based profile), and (C) Recommendation (Manual profile). Columns show OpenAI vs. Sentence Transformer (ST), with Ranking of attacked items (lower = stronger promotion). Bold is the base (no attack), cyan highlights best results, yellow highlights good results.

Limitations and Future Work

The authors acknowledge that their study focuses on sparse, localized attacks targeting a small subset of items. They note that large-scale poisoning—where a significant fraction of the entire catalog is manipulated—would likely cause more pervasive performance deterioration, which might make the attack easier to detect via global metrics.

Consequently, the authors emphasize that future work must focus on developing defensive measures. Specifically, RAG pipelines require robust textual consistency checks and provenance tracking systems to verify the integrity of metadata before it is ingested and indexed.

Summary updated

BibTeX
@misc{nazary2025stealthy,
  author = {Fatemeh Nazary and Yashar Deldjoo and Tommaso Di Noia and Eugenio Di Sciascio},
  title = {{Stealthy LLM-Driven Data Poisoning Attacks Against Embedding-Based Retrieval-Augmented Recommender Systems}},
  year = {2025},
  eprint = {2505.05196},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.05196},
}
Figure