CRJul 6

Agents at Risk: How Users Unwittingly Undermine LLM Safety

arXiv:2601.1075818.73 citationsh-index: 10
Predicted impact top 8% in CR · last 90 daysOriginality Incremental advance
AI Analysis

For developers and deployers of LLM-based agents, this work highlights a critical security vulnerability where user-relayed context can bypass existing defenses, emphasizing the need for task-entity-level prevention.

The paper introduces the User-Relayed Context Manipulation (UReCoM) attack, where attackers manipulate benign users into relaying adversarial content within user requests to LLM-based agents. UReCoM outperforms five prompt-injection baselines across 12 commercial agents, revealing that current defenses are insufficient and that agents rely on prompt-driven rather than default validation of adversarial task entities.

Large language model (LLM)-based agents are increasingly deployed in applications, such as trip-planning agents and web-use agents, to perform complex planning and execution tasks. Prior work has shown that LLM-based agents are vulnerable to context confusion, where external adversarial content incorporated into the agent's reasoning context may be treated as task-relevant constraints. However, external malicious content can enter the agent context via channels beyond retrieval. In this work, we introduce the User-Relayed Context Manipulation (UReCoM) attack, in which attackers manipulate benign users into relaying adversarial content within user requests, thereby relocating external adversarial content into user-provided task context. Our experimental evaluation shows that UReCoM outperforms five prompt-injection baselines (naive, context ignoring, fake completion, escape-character attacks, and combined attacks) under prevention-based (Sandwich, StruQ, and SecAlign) and detection-based defenses (Perplexity detection, DataSentinel, and CausalArmor). Additionally, UReCoM shows that LLMs can reject explicit malicious instructions more reliably than they can identify adversarial task entities, such as promotion codes, embedded within user requests. On 12 commercial LLM-based agents, we find that validation of adversarial task entities is largely prompt-driven rather than default, highlighting a design flaw in current agent frameworks. These results indicate that current defenses and deployed agents remain insufficient against user-relayed context manipulations, highlighting the need for task-entity-level prevention and default safety verification in LLM-based agents.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes