The Like Trap: Multi-Stage Poisoning against Agents in Similarity-based Recommendation Systems

Yue Xing, Pengfei He, Zitao LiarXiv 2026 · arXiv

TL;DR

This paper uncovers a subtle vulnerability in how autonomous LLM agents interact with social media recommendation systems. By exploiting the system's "like-score" feedback loop, the authors demonstrate a multi-stage poisoning attack ("The Like Trap") that gradually steers an agent's feed toward malicious content, even when that content initially falls far below the system's retrieval threshold.

What Problem Does This Paper Address?

As large language models (LLMs) transition from passive assistants to autonomous agents capable of managing social media accounts, they become prime targets for adversarial manipulation. Traditional data poisoning attacks assume the attacker can directly inject malicious content into the agent's context or training data. However, in the real world, social media platforms use recommendation algorithms to filter content.

This paper addresses a critical question: Can an attacker exploit the recommendation system itself to deliver poisoned content to an agent? Specifically, they look at similarity-based recommendation systems that use a "like-score" mechanism to update user preferences based on recent interactions. The challenge for the attacker is that highly dissimilar malicious content will normally be filtered out by the system's retrieval boundary.

Figure 1: Illustration of the problem setup.

Methods

The authors propose a multi-stage poisoning pipeline designed to construct a "bridge" of posts that slowly guides the agent away from benign content.

  1. Theoretical Framework: The authors mathematically analyze the conditions under which a chain of $M$ poisoned posts can successfully manipulate the recommendation score. They derive a lower bound for the number of stages required to safely transition an agent from its initial profile preferences to the target malicious content without breaking the chain.
  2. Poisoning Post Generation Pipeline (Algorithm 1): Starting from a benign "anchor" post highly similar to the user's profile, the algorithm generates a sequence of posts with strictly decreasing user-post similarity.
  3. Trigger Design & Similarity Control: To ensure the agent actually likes the poisoned posts at each stage, the authors inject text modifications that exploit known LLM behavioral biases (such as position bias, verbosity, and perceived credibility). They use a precise REPAIR mechanism (profile-prefix injection or profile-term dilution) to ensure the generated posts hit exact cosine similarity targets within a tight tolerance ($\pm 0.012$).
Figure 2: How the recommendation system in OASIS works.

Datasets

The method was evaluated using:

  • User Profiles: 50 diverse user profiles randomly sampled from the OASIS (Open Agent Social Interaction Simulations) framework.
  • Post Pool: A base dataset of 2,000 posts combining original OASIS data and a random subset of the AI-tweet corpora.
  • Robustness Check: Additional evaluation across four alternative post datasets (including tweet_eval and ai_tweets) to verify the attack's generalizability.

Key Insights and Ideas

  • The Feedback Loop Weapon: The very feature designed to personalize user feeds—amplifying content similar to recently liked posts—is what makes the system vulnerable. Liking an intermediate poisoned post distorts the agent's local preference vector, pulling the next, less-similar stage of poisoned posts into the retrieval window.
  • The Necessity of Gradual Stepping: A direct attack fails because the recommendation system filters out low-similarity posts. The attack must be multi-staged; a single-stage jump to the malicious content breaks the chain because the like-score boost isn't strong enough to overcome a massive drop in baseline similarity.
  • Exploiting Agent Psychology: Automated agents aren't neutral filters; they prefer specific writing styles (e.g., authoritative tones or verbose explanations). Incorporating these engagement biases acts as a "trigger" that guarantees the agent chooses the poisoned post over clean alternatives.

Key Results

The attack was highly effective across a variety of victim LLMs, including GPT-5.4-nano, DeepSeek v4 pro, Llama 3.1 8b, and Qwen 3.5 9b.

  • Sequential Takeover: As shown in the round-wise history, the agent systematically progresses through the stages. Stage 5 (the final malicious stage) successfully dominated the feed well before the end of the 400-round simulation (typically appearing between rounds 178 and 247).
  • Bypassing the Retrieval Boundary: The attack successfully forced the recommendation system to surface poisoned posts even when their baseline user-post similarity fell below the top-100 threshold. Across models, between 47.7 and 68.3 poisoned posts successfully bypassed this boundary.
  • Real-World Validation: The pipeline was successfully validated using OpenClaw, a real-world autonomous agent framework, confirming that the vulnerability translates from simulated environments to practical agent deployments.
Figure 3: Round-wise like history for GPT-5.4-nano.

Limitations and Future Work

The primary limitation acknowledged by the authors is their focus on a single type of recommendation architecture: similarity-based algorithms with like-based scoring mechanisms. Modern social media platforms often deploy a hybrid mix of algorithms, including graph-based approaches (like LightGCN) and transformer-based sequential recommenders. These systems rely on different underlying dynamics (such as network topology or trainable sequence embeddings), meaning their vulnerabilities and the corresponding poisoning strategies remain an open area for future research.

Summary updated

Abstract

With recent advancements in large language models (LLMs) and LLM-based agents, these agents are becoming increasingly autonomous and gaining broader access to act on users' behalf on the internet. However, the vulnerability of automated agents deployed on social media platforms (e.g., for managing a user's personal account) remains underexplored. Existing studies on agent poisoning typically assume that the adversary can expose poisoned content to the agent. Although such an attack is direct and effective, it is more easily detected and mitigated. In the context of social media platforms, this leaves open whether the recommendation system itself would surface such content to the agent in a more subtle manner. Through theoretical analysis, we show that the like-score mechanism used in OASIS can be exploited, and we characterize the conditions under which a multi-stage chain of poisoned posts can steer the agent's feed. Based on these insights, we further develop an algorithm that crafts realistic poisoned posts. Experiments support our theoretical findings and demonstrate the effectiveness of the proposed algorithm. Notably, by exploiting the like-score feedback loop, the attack causes the recommendation system to select poisoned posts even when their user-post similarity falls below the retrieval threshold.
BibTeX
@misc{xing2026like,
  author = {Yue Xing and Pengfei He and Zitao Li},
  title = {{The Like Trap: Multi-Stage Poisoning against Agents in Similarity-based Recommendation Systems}},
  year = {2026},
  eprint = {2609.27155},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.27155},
}
Figure