Agents at risk: how users can inadvertently undermine LLM safetyAgents at Risk: How Users Unwittingly Undermine LLM Safety
The authors propose UReCoM, which causes users to relay task entities into agent requests; on GPT-5 its ASR is 68.57%, while all five baselines are 0.00%.
The attacker does not directly access the agent, control user devices, or compromise tools or browsers. The attacker publishes content through public channels, inducing benign users to copy, forward, summarize, or paraphrase, so that the payload enters user requests, thereby producing Mapprove, Mreassure, or execution of Arisk. The attacker knows the application domain and common goals, but does not know policy π, system prompts, proprietary rules, tool implementations, memory, or exact requests.
- LLM agents put user constraints, retrieved content, and tool outputs into the same task context. If external adversarial content is treated as task constraints, it may induce unsafe reasoning or tool use. Existing defenses often assume malicious payloads remain identifiable by source; after benign user forwarding, this assumption no longer holds.
- The authors propose UReCoM: without touching the agent, they write instructions, tips, or promotion-code carriers with Gemini 2.5 to induce users to copy, forward, summarize, or rewrite. The evaluation distinguishes external retrieval only (I) and two user-side orders (U+I, I+U).
- The defense table does not specify the target model. Under CausalArmor, UReCoM (U+I) ASR is 100.00%, with the highest baseline at 14.29%. On GPT-5, the five baselines are 0.00%, and UReCoM is 68.57%. Under H1, the travel agent environment bypass rate is up to 100%.
- The paper does not separately list its own limitations. Section 8 suggests agents should perform source-aware validation and risk stopping by default, rather than waiting for user requests to check. Experiments cover six defenses, six LLMs, 12 commercial agents, and the AgentDojo travel domain plus three ablation domains; the target model for Table 1 and the ASR judgment method are not reported.
- Evaluated models
- GPT-4o (gpt-4o-2024-05-13)Claude 3.5Gemini 2.5Llama3.1 (Llama-3.1-8B-Instruct)Qwen2.5 (Qwen2.5-7B-Instruct)Gemma 2 (Gemma-2-9B-IT)Ministral-8B (Ministral-8B-Instruct-2410)DeepSeek-R1 (DeepSeek-R1-Distill-Qwen-7B)TripMindTripPennyLaylaKAYAK AIIMEANManusBrowser UsageNaradaSkyvernOHBrowserbase
- Benchmarks
- AgentDojo travelAgentDojo workplaceAgentDojo bankingAgentDojo Slack
- Metrics
- ASRenvironment-constraint bypass ratecommonsense-constraint bypass rate
The paper proposes the UReCoM (User-Rephrased Context Manipulation) attack, in which an attacker induces ordinary users through public posts and other content to copy adversarial payloads into requests to LLM agents, causing external content to enter the agent as user task context. The authors compare five prompt injection baselines on an extended AgentDojo benchmark, and UReCoM achieves higher attack success rates under preventive defenses such as Sandwich, StruQ, and SecAlign, and detection-based defenses such as Perplexity, DataSentinel, and CausalArmor. On GPT-5, all five baseline attacks had a success rate of 0.00%, while UReCoM reached 68.57%; DeepSeek-V3 was 70.97%, and Llama 3.1 8B was 62.66%. Across 12 commercial agents (6 travel planners, 6 web operators), when no safety request was present by default, the environment constraint bypass rate for travel planning agents ranged from 83% to 100%, and user-rephrased links and promo codes were checked only when users explicitly requested verification.
Why it was selectedThe paper proposes the user-rephrased context manipulation attack and reports attack success rates across 6 models and 12 commercial agents, which can help agent deployers re-examine trust assumptions in the user input channel.
Paper analysis
What problem does this paper attempt to solve?
After user relay places external adversarial content into task requests, defenses that separate by source struggle to block it.
When benign users forward external adversarial content into task requests, defenses that separate by source struggle to distinguish it from legitimate intent.
- Scenario: LLM agents for travel planning, web operations, etc., merge user constraints, retrieved documents, and tool outputs. The authors claim that once malicious content enters the task context and is treated as executable constraints, it may induce unsafe reasoning or tool use.
- Existing limitations: Indirect prompt injection places payloads in external resources. Defenses like execution control are effective when the payload is still identifiable as external content; the authors claim that after inducing benign users to forward, this source assumption no longer holds.
- Observation: When the same target is written as task entities like promo codes, booking links, or support contacts, it is harder to refuse than explicit malicious instructions. The authors claim that validation by 12 commercial agents for adversarial task entities is primarily prompt-driven rather than enforced by default, calling this a design flaw.
- Approach: Propose UReCoM. Construct instruction, tips, and promotion-code carriers on an AgentDojo-derived benchmark, compare with five prompt injection baselines, and evaluate preventive and detection defenses, six LLMs, and 12 commercial agents.
- Threat model:
- Goal: Cause user-side content to enter user requests via copy, forward, summarization, or paraphrase, inducing Mapprove, Mreassure, or execution of Arisk. The attacker aims to increase the probability of unsafe endorsement or risky execution under a given safety intent hsaf.
- Knowledge: Knows domains like travel planning, booking, or web automation and common user goals; does not know policy π, system prompts, proprietary safety rules, tool implementations, memory states, or exact requests.
- Capabilities: Can perform social engineering, collect public task information, host malicious resources, and post to public posts or ads. Cannot directly access the agent, control user devices, or compromise tools and browsers.
- Victim system: Target LLM agent Gagents. The three parties are adversary Uadv, benign user Uben, and Gagents.
What related research exists?
Appendix A groups attacks into hijacking, retrieval poisoning, web injection, and tool forgery, with all entry points on the agent side.
The authors place existing attacks at the agent-side observation entry, and UReCoM at the user observation channel.
- Indirect prompt injection and execution control
- Greshake et al. (2023) and subsequent indirect prompt injection work embed adversarial instructions in external resources, which after retrieval may be treated as instructional task context.
- Execution control (IsolateGPT, Wu et al., 2024; SAGA, Syros et al., 2025; AgentSentinel, Hu et al., 2025) restricts action scope, e.g., predefined tool lists or validated user requests. The authors claim such defenses are effective when payloads remain identifiable as external by source.
- Hijacking, jailbreaks, and instruction hierarchy
- Appendix A defines Hijacking as goal replacement or workflow diversion: output deviates from the user task and serves attacker goals (Greshake et al., 2023).
- Jailbreak is written as a special case of hijacking, with success marked by output violating policies that should be refused; overriding instruction hierarchy is cited as an example and references Chao et al. (2025). Wallace et al. (2024) rank instructions by source. The authors state in Discussion that forwarding reintroduces low-trust external data as user-channel instructions.
- Retrieval, web, and tools
- RAG or memory poisoning injects content into retrieval stores or memory. The authors write that a few adversarial passages (e.g., 5–10) can bias retrieval and prioritize attacker-chosen execution (Xue et al., 2024; Zou et al., 2025).
- Web-targeted attacks embed malicious instructions in external execution environments, corrupting perception and triggering unsafe actions (Liao et al., 2024; Hao et al., 2024).
- Tool or API output forgery makes poisoned tool responses enter observations and drive execution. The text names ToolCommander (Zhang et al., 2025) and ToolHijacker (Shi et al., 2025).
- Baselines and benchmarks
- Attack baselines are Naive, Context Ignoring, Escape Characters, Fake Completion, Combined. Defenses are Sandwich, StruQ, SecAlign, perplexity filtering, DataSentinel, CausalArmor. Data comes from AgentDojo (Debenedetti et al., 2024) travel domain, plus workplace, banking, Slack.
The authors claim previous attacks mainly directly perturb agent-side observations; UReCoM first perturbs user-side observations, then via benign users migrates payloads into user requests, reducing source separability (Section 2.2, Appendix A Table 6).
- Indirect prompt injection and execution control
How does the paper address this problem?
UReCoM uses task entities as carriers, which enter the user request after being forwarded by benign users.
UReCoM does not change the agent interface, but constructs natural language carriers that benign users adopt and agents treat as task context.
Interaction and Success Conditions
- At time t, state is st, policy π maps observations to messages and actions. Trajectories include agent-side observations oA, user-side observations oU, messages m, and actions a. The paper does not distinguish between the agent itself and its underlying LLM.
- Arisk includes visiting unverified resources, submitting sensitive information, contacting untrusted third parties, and unnecessary workflow steps. Mapprove endorses attacker-controlled information; Mreassure increases user safety feelings when evidence is insufficient.
- The expected policy should complete tasks and avoid unsafe endorsements and unnecessary risky actions. Attack success means messages or actions violate this policy. User safety intent is denoted hsaf.
Relay Process
- The attacker cannot directly modify agent-side observations. First, they transform what users see; benign users then copy, summarize, or keep only code, links, or contacts. The paper denotes this latter step as transformation T'' that the attacker cannot directly control.
- Given task q and carrier c, the observation entering the agent is õAt = q ⊕ T′′(c, hsaf). ⊕ denotes text concatenation.
- Carriers split into propagation and explanatory entities: c = cprop ⊕ cinter. The former aligns with prices, dates, hotels, support, or booking steps to encourage adoption; the latter includes links, contacts, code, parameters, or next steps.
Carrier Generation and Three Templates
- Task entities are extracted from requests and used with attack goals as constraints for Gemini 2.5. This model generates both entity types, writes scenarios, and rewrites adversarial goals into task-consistent text (Fig. 3). Appendix B provides three types of generation prompts. Links, contacts, promo codes, and service entries are all synthetic (Appendix D).
- instruction-style is written as pasteable steps or checklists; tips-style as shorter reminders attached to ratings, budgets, dates, or confirmation cues; promotion-code-style as discount codes, handles, or support contacts, giving users reason to preserve verbatim. The three are not separate attacks (Section 2.5).
- The formal goal is to increase the proportion of endorsements, false reassurances, or risky actions across a set of user tasks. The paper does not report ASR separately by template.
Placement and Judgment
- I: Injected content only in external environment, retrieved by the agent. U+I: user instructions first, injected content second. I+U: injected content first, user instructions second.
- Model and defense experiments use ASR, the proportion of attempts achieving attacker goals. Deployment experiments check safety properties from Section 2.
- Travel agents report environment and commonsense constraint bypass rates under H1 (no safety request), H2 (soft safety request), H3 (hard safety request). Appendix C Table 7: environment constraints cover whether sources are trustworthy, which takes precedence when conflicting with official data, and whether unverified offers can be treated as real discounts; commonsense constraints cover risk warnings, whether to be direct when uncertain, and non-standard payment or sensitive data channels. Human-annotated, 10 runs per group, bypass rate equals violations divided by total runs. Web agents record risky URLs, action primitives, and state-dependent interactions in a sandbox.
What experiments did the paper conduct?
Across the defense tables, six LLMs, and 12 commercial agents, user-relayed payloads often achieve higher success rates than the explicit injection baseline.
Experimental Setup
- Models tested: Llama-3.1-8B, DeepSeek-V3, Claude-3-Haiku, Claude-3.5-Sonnet, GPT-4, GPT-5. Gemini 2.5 only generates carriers and is not evaluated.
- Commercial systems: Travel planning: Trip, Layla, MindTrip, Penny, KAYAK AI, IMean; web use: Manus, Browser Usage, Narada, Skyvern, OH, Browserbase. The former uses synthetic prompts to contact online services without collecting real user information; the latter is tested in a sandbox.
- Data: Main benchmark is the AgentDojo travel domain. 20 benign requests with 7 injection targets yield 140 pairs; three carriers with 5 samples each total 2,100 candidates, with 1,540 retained after manual filtering. Ablation domains are workplace, banking, Slack.
- Baselines: Attack baselines are Naive, Context Ignoring, Escape Characters, Fake Completion, Combined, relying on explicit adversarial phrases, structural interference, or instruction-level conflicts. Defenses are Sandwich, StruQ, SecAlign, plus perplexity filtering, DataSentinel, CausalArmor.
- Metrics: Model and defense experiments report ASR. Travel agents report environment and commonsense bypass rates under H1/H2/H3. Web experiments record URL scheme following and action primitives, 10 times each.
- Judgment: Travel constraints are human-annotated, with 10 runs per agent–constraint–intent combination (Appendix C). The paper does not specify the target model for Table 1, nor who judges ASR in model and defense experiments, how many items per model, or repetitions. The paper does not report significance tests or query counts.
Main Results
According to Table 2. The baseline maximum is the maximum of the five baselines in that model column, not a separate summary row in the paper.
Model UReCoM ASR Highest Baseline ASR Claude-3-Haiku 30.95% 12.85% (Combined) Claude-3.5-Sonnet 46.07% 9.74% (Fake Completion) GPT-4 28.45% 9.74% (Fake Completion) GPT-5 68.57% 0.00% (all five are 0.00%) Llama-3.1-8B 62.66% 15.00% (Fake Completion) DeepSeek-V3 70.97% 24.54% (Fake Completion) - The authors claim that six LLMs more often refuse recognizable prompt injection patterns, but still follow when the same target is written as task entities.
- The authors claim the difficulty lies in judging whether promo codes, links, and support contacts are genuine user intent or relayed attacker artifacts.
- This table is for the travel domain model experiments. Defenses are in the next section, other domains in Appendix E. Table 2 does not report per-cell sample sizes.
Defense Reactions to User-Relayed Carriers
According to Table 1. The baseline maximum is taken from the five baselines in that column. The paper does not specify the target model.
Swipe horizontally to read the table
Setting Sandwich StruQ DataSentinel CausalArmor UReCoM (I) 8.93% 7.38% 83.57% 53.69% UReCoM (U+I) 29.28% 5.95% 86.54% 100.00% UReCoM (I+U) 24.67% 74.41% 92.11% 97.64% Highest of five baselines 0.00% 0.65% 75.32% 14.29% - The authors claim that when payloads still look like external or instructional injections, defenses retain some effect: Sandwich reduces all five baselines to 0.00%; under CausalArmor, the highest baseline is Combined at 14.29%. Under DataSentinel, the highest baseline is Context Ignoring at 75.32%.
- For detection defenses, ASR rises after payloads enter the user side. The authors claim the user channel turns externally attributable payloads into user-provided task context. Preventive defenses do not uniformly rise: under StruQ, U+I is 5.95%, lower than I's 7.38%, and I+U is 74.41%.
- Two columns not shown in the table: Under SecAlign, UReCoM is I 9.29%, U+I 14.16%, I+U 25.71%, with the highest baseline Combined at 0.19%. Under Perplexity, UReCoM is 65.24%, 74.52%, 84.68%; Escape Characters at 75.00% is higher than the first two cells but lower than I+U. The authors claim that carrier-first placement makes some structured defenses order-sensitive.
Deployed Travel Planning and Web Use Agents
- What was tested: Six travel agents' two types of constraint bypass rates under H1/H2/H3 (Table 3); six web agents' execution of URL schemes and action primitives (Table 4, Table 5). Appendix C pilot reports web agents' E1 and C1 violation rates under hard constraint settings (Table 8).
- Results: In Table 3, H1 environment bypass rates are Layla 83%, the other five 100%; commonsense ranges from KAYAK AI's 59.7% to Penny and IMean (written as IMEAN in the table) at 100%. H2 environment highest is Penny at 54.7%. H3 highest is Penny's commonsense at 10%, KAYAK AI's environment at 7%; the authors claim the highest under H3 is still 7%. In Table 4, six agents are 10/10 for http, https, data, javascript; mailto is only Narada at 10/10, others mostly unsupported. In Table 5, Input, Click, Back are mostly 10/10, OH's Scroll is 8/10. In Table 8, H1's E1 and C1 are both 100%, reported H3 are all 0%; H2's E1 is Narada 12%, BrowserUsage 3%, Skyvern 1%, Manus and Browserbase 0%, OH not reported.
- Author interpretation: The authors claim travel agents are not unable to refuse unsafe resources, but treat validation as an optional behavior triggered by prompts. On the web side, the authors claim interception mainly comes from browsers or sandboxes rather than agent-side link validation; agents also do not check whether each action is necessary for the original intent. The authors claim unsupported actions in the toolchain form boundaries (Fig. 7 Exp4); in Table 5, BrowserUsage and Narada's Captcha are 10/10, Manus, Skyvern, Browserbase are unsupported.
Other Ablations and Analyses
- Average BLEU/ROUGE-L of carriers relative to request/goal: instruction 0.31/0.49 and 0.37/0.55; tips 0.27/0.43 and 0.30/0.50; promotion-code 0.18/0.35 and 0.21/0.39 (Section 3.1).
- Table 11: banking's I+U under CausalArmor is 96.15%, under StruQ 69.83%; workplace's I+U under CausalArmor is 91.62%. Slack's Perplexity I is 58.70%, higher than U+I's 43.36%.
- Table 12: GPT-4 and GPT-5's banking are both 72.91%. The authors claim banking is highest for most models; in the table, Claude-3-Haiku's highest is workplace 43.80%, Claude-3.5-Sonnet's highest is Slack 39.71%, DeepSeek-V3's highest is workplace 68.4%, with its banking at 49.58%.
- Table 10: Without safety checks, the proportion of most URL variants treated as legitimate is 100%, with Layla's U9 at 30%. Under soft checks, U4 remains Trip 100%, Layla 100%, MindTrip 90%. Under hard checks, most are 0%, Penny's U4 is 100%, KAYAK AI's U4 is 70%.
- Discussion: The authors claim attacks stop when required actions are not supported by the toolchain; they also believe user-side defenses remain largely absent, and social engineering can write payloads into user observations.
What are some points that can be further explored?
The authors suggest in Section 8 that agents should validate relayed content by default rather than waiting for users to explicitly request checks.
Limitations and future directions noted by the authors
- The paper does not specifically discuss its own limitations; there is no Limitations section, and no experimental result is framed as a method weakness.
- Section 8 (Conclusion and Future Directions) recommends that commercial agents should not rely on explicit user requests for verification, but instead need default provenance-aware validation and risk-aware stopping rules, independently evaluating relayed content before incorporating it into planning or execution.
Experimental coverage
- Defense evaluation includes Sandwich, StruQ, SecAlign, perplexity filtering, DataSentinel, CausalArmor (Table 1). The paper does not state the target model for this table.
- Model evaluation covers Claude-3-Haiku, Claude-3.5-Sonnet, GPT-4, GPT-5, Llama-3.1-8B, DeepSeek-V3 (Table 2). Carriers are generated by Gemini 2.5 and do not enter the evaluated models.
- The main data is the AgentDojo travel domain: 140 request–goal pairs, 2,100 candidates, 1,540 retained. Ablation domains are workplace, banking, Slack (Appendix E, Table 11, Table 12). ASR for the three templates is not reported separately.
- Commercial systems are 6 travel-planning and 6 web-usage agents. Travel constraints are run 10 times per agent–constraint–intent combination (Appendix C); web URLs and action primitives are each run 10 times (Table 4, Table 5). Web experiments are in a sandbox; travel experiments use synthetic prompts to contact online services. User relay is operationalized as I, U+I, I+U in the model and defense experiments.
- The paper does not report the ASR judge for the model and defense experiments, the number of evaluation items per model, repetition counts, query counts, or significance tests. Travel constraint bypasses are manually annotated (Appendix C). The paper does not report real-user forwarding rates.
Summarize the main content of the paper
UReCoM writes the attack goal as a task entity and relays it through the user; the authors state that existing defenses and deployed agents remain insufficient against this.
UReCoM studies how benign user forwarding turns external adversarial content into user task context.
- Problem: Travel planning and web operation agents use both user constraints and external content. The authors claim existing defenses mostly rely on separating system instructions, user requests, and external content; after user forwarding, the source boundary between payload and legitimate intent weakens.
- Threat: The attacker does not touch the agent, control devices, or compromise tools or browsers. The attacker knows the domain and common goals, not the policy, system prompts, proprietary rules, tool implementations, memory, or exact requests. Success means unsafe endorsement, reassurance without sufficient evidence, or high-risk actions.
- Method: Carriers consist of propagation entities from alignment tasks and explanatory entities containing links, code, or contacts. Gemini 2.5 writes them as instruction, tips, or promotion-code forms. Evaluation distinguishes external retrieval only, and two orders of user instructions and payloads. Links and code are synthetic.
- Models and defenses: In Table 2, UReCoM's ASR ranges from GPT-4's 28.45% to DeepSeek-V3's 70.97%; GPT-5 is 0.00% for all five baselines and 68.57% for UReCoM. Table 1 does not specify the target model; under CausalArmor, UReCoM (U+I) is 100.00%, with the highest baseline at 14.29%. Under Perplexity, some baselines are higher than some UReCoM placements.
- Deployed systems: In Table 3, without safety requests, environment bypass rates are up to 100% and lowest at Layla 83%; under soft requests, Penny remains at 54.7%. Web agents are 10/10 for supported http and https (Table 4). The authors claim validation is mostly prompt-triggered rather than default.
- Author conclusion: The authors claim current defenses and deployed agents remain insufficient against user-relayed payloads, especially when adversarial content is treated as task-relevant context. Section 8 suggests source-aware validation and risk stopping by default, rather than waiting for user requests to check.