LLM-Based User Simulation for Low-Knowledge Shilling Attacks on Recommender Systems

Shengkang Gu, Jiahao Liu, Dongsheng Li, Guangping Zhang, Mingzhe Han, Hansu Gu, Peng Zhang, Ning Gu, Li Shang, Tun LuarXiv 2025 · DOI

Abstract

Recommender systems (RS) are increasingly vulnerable to shilling attacks, where malicious actors inject fake user profiles to manipulate item rankings. Traditional attacks rely on rigid heuristics or internal system knowledge, making them detectable or impractical. This paper introduces Agent4SR, a novel framework that leverages Large Language Model (LLM)-based agents to conduct sophisticated, low-knowledge shilling attacks. By simulating realistic personas and generating semantic-rich reviews, Agent4SR demonstrates superior effectiveness and stealth compared to traditional methods.

Introduction

Recommender systems serve as critical filters for information on the modern web. However, their reliance on user-generated data makes them targets for "shilling attacks"—coordinated efforts to "push" (promote) or "nuke" (demote) specific items. While traditional attacks use simple rating patterns, they are often easily identified by statistical defense mechanisms. Agent4SR addresses these limitations by using the generative power of LLMs to create fake profiles that are indistinguishable from real users.

The Problem: Gaps in Current Shilling Attacks

The authors identify three primary weaknesses in existing attack strategies:

  1. Simplistic Heuristics: Traditional methods often use uniform or random rating distributions (e.g., 5 stars for the target, random for others), creating detectable anomalies.
  2. High Knowledge Requirements: Many advanced attacks assume access to the RS's internal rating matrix, a "white-box" scenario that is rarely realistic for external attackers.
  3. Neglect of Textual Reviews: Modern RS are increasingly "review-aware," yet most attacks focus solely on numerical ratings, missing the opportunity to influence the system through semantic content.

The Agent4SR Framework

Agent4SR is a modular framework designed to simulate human-like behavior without requiring internal system access. It operates through three core stages:

1. Target-Aware Profile Construction

Instead of generating random personas, Agent4SR uses "reverse inference." Starting with a target item's features, the LLM infers a plausible user persona that would naturally interact with such an item. A consistency validation step ensures the generated interests align logically with the attack's objectives.

2. Hybrid Memory Management

To mimic human browsing patterns, the agent maintains a memory of past interactions. It employs a hybrid retrieval strategy based on relevance (items matching the persona) and recency (items recently viewed), ensuring a diverse yet coherent interaction history.

3. Multifaceted Interaction Attack

The agent performs "Target Feature Propagation." It identifies shared characteristics between the target item and unrelated "filler" items. By embedding these features into filler reviews, the agent subtly primes the recommendation model to associate desirable traits with the target item, manipulating the latent space of the RS.

The Agent4SR framework architecture, illustrating the flow from target item analysis to the generation of fake user actions.

Experimental Setup

The framework was evaluated using three real-world Amazon datasets: Books, Automotive (Auto), and Pet Supplies (Pets). These datasets provide the necessary combination of numerical ratings and textual reviews to test multi-modal attack capabilities. Agent4SR was tested against various victim models, including Matrix Factorization (NMF) and Neural Collaborative Filtering (NeuNMF).

Key Results and Discussion

Effectiveness and Impact

Agent4SR consistently outperformed traditional baselines like "Bandwagon" and "Segmented" attacks. For instance, on the Books dataset with an NMF model, Agent4SR achieved a Prediction Shift of 0.7366, significantly higher than the 0.6491 achieved by random attacks. Crucially, the attack caused only minor shifts in global error metrics (RMSE/MAE), allowing the manipulation to remain hidden from system administrators monitoring overall performance.

Stealth and Detection Evasion

A major contribution of Agent4SR is its stealth. When tested against state-of-the-art fake user detectors like FAP and BayesDetector, Agent4SR proved significantly harder to identify.

Stealth performance of Agent4SR compared to baseline methods against FAP and BayesDetector across different datasets.

As shown in the precision-recall plots, Agent4SR (represented by the blue markers) tends to cluster in the lower-left or lower-middle regions, indicating that detectors struggle to achieve high recall and precision simultaneously against these LLM-generated profiles.

Conclusion and Future Work

Agent4SR represents a paradigm shift in shilling attacks, moving from rule-based heuristics to sophisticated, LLM-driven simulations. The "world knowledge" inherent in LLMs allows attackers to bypass the need for internal system data while maintaining high stealth. This research highlights a critical "defense gap" in current recommender systems and underscores the urgent need for "LLM-aware" security measures to protect the integrity of online recommendation ecosystems.

Summary updated

BibTeX
@misc{gu2025llm,
  author = {Shengkang Gu and Jiahao Liu and Dongsheng Li and Guangping Zhang and Mingzhe Han and Hansu Gu and Peng Zhang and Ning Gu and Li Shang and Tun Lu},
  title = {{LLM-Based User Simulation for Low-Knowledge Shilling Attacks on Recommender Systems}},
  year = {2025},
  eprint = {2505.13528},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.13528},
}
Figure