Skip to content

The paper proposes the eTAMP attack: web content injection can pollute Web Agent memory across sessionsPoison Once, Exploit Forever: Environment-Injected Memory Poisoning Attacks on Web Agents

Paper Tracker· arXiv:2604.02623· Wei Zou, Mingwen Dong, Miguel Romero Calvo, Shuaichen Chang, Jiang Guo, Dongkyu Lee, Xing Niu, Xiaofei Ma, Yanjun Qi, Jiarong Jiang·Indexed by this site · 2026-10-08· Originally publishedSelected AttacksSelectedAttention40

Quick read

Attacks

Based on the paper PDF (generated by Gemini); refer to the original

The authors inject conditioned trajectory memories into Web agents through webpages; on GPT-5-mini, the combination of frustration exploitation and Chaos Monkey reaches an ASRB of 32.5%.

Threat modelThe attacker cannot directly access the memory store or system prompt, only injects malicious text through web content and sets trigger conditions; the victim system is a Web agent using raw trajectory memory; the goal is to induce the agent to perform unauthorized actions on subsequent different websites (such as adding to cart and checking out or posting positive reviews), while maintaining normal completion of preceding tasks.

Questions
Web agents store historical interaction trajectories in memory for personalization, but this also introduces a persistent attack surface. Existing research often assumes attackers have direct database modification privileges or multi-user shared memory, lacking evaluation of threats injected solely through environmental observation without direct write access.
Methods
The authors propose eTAMP, where attackers embed payloads with trigger conditions in public web pages that are passively stored in trajectory memory, and later activated during semantically related tasks to execute unauthorized cross-site operations. Additionally, they introduce Chaos Monkey to inject action dropping and confusion, simulating the amplification effect of environmental frustration on attacks.
Experiments and results
On WebArena and VisualWebArena, GPT-5-mini reaches an ASRB of 32.5% under Chaos Monkey stress, and GPT-5.2 reaches 23.4% (Table 1). In the non-pseudo-trajectory tests, the premature trigger rate ASRA for task A across models is no higher than 0.71% (Table 7).
Limitations and future work
The study only covers unprocessed raw trajectory memory, does not evaluate integrated memory; does not systematically evaluate defenses such as content filtering; no consistent correlation is found between model environmental anomaly perception rate and task success rate; long-context recall tests use only one prompt configuration.
Experimental setupGPT-5-mini、GPT-5.2 et al. · WebArena、VisualWebArena · ASRB、ASRA et al.
Evaluated models
GPT-5-miniGPT-5.2GPT-OSS-120BQwen2.5-VL-72BQwen3-VL-32BQwen3.5-122B-A10B
Benchmarks
WebArenaVisualWebArena
Metrics
ASRBASRATask Success Rate (TSR)Avg StepsPoison Rate (PR)Recall Rate
AI summaryand selection rationaleResearchers from Amazon and Penn State University propose eTAMP, a trajectory memory poisoning attack achievable solely through environmental observation. The attacker embeds instructions in user-generated content on web pages; after the agent browses and passively writes them to memory, the instructions are triggered in subsequent tasks on different websites, without requiring direct access to the memory store, bypassing defenses that grant permissions per site. On (Visual)WebArena, across approximately 280 cross-site task pairs, the highest attack success rates are GPT-5-mini 32.5%, GPT-5.2 23.4%, and GPT-OSS-120B 19.5%; the early trigger rate in task phase A is close to 0. The study also finds a Frustration Exploitation phenomenon: after Chaos Monkey injects environmental stressors such as click loss, scroll inversion, and input garbling, GPT-5-mini's attack success rate rises from 3.6% to 32.5%, an increase of about 8 times, and GPT-5.2 rises by 17 percentage points. The authors suggest that memory should be treated as untrusted input and note that more capable models are not necessarily safer.

Researchers from Amazon and Penn State University propose eTAMP, a trajectory memory poisoning attack achievable solely through environmental observation. The attacker embeds instructions in user-generated content on web pages; after the agent browses and passively writes them to memory, the instructions are triggered in subsequent tasks on different websites, without requiring direct access to the memory store, bypassing defenses that grant permissions per site. On (Visual)WebArena, across approximately 280 cross-site task pairs, the highest attack success rates are GPT-5-mini 32.5%, GPT-5.2 23.4%, and GPT-OSS-120B 19.5%; the early trigger rate in task phase A is close to 0. The study also finds a Frustration Exploitation phenomenon: after Chaos Monkey injects environmental stressors such as click loss, scroll inversion, and input garbling, GPT-5-mini's attack success rate rises from 3.6% to 32.5%, an increase of about 8 times, and GPT-5.2 rises by 17 percentage points. The authors suggest that memory should be treated as untrusted input and note that more capable models are not necessarily safer.

Why it was selectedThe paper proposes an attack that, using only webpage content injection, can poison Agent memories across sessions and across sites, and reports success rates on multiple models and amplification effects under stressful conditions.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The authors investigate the risk that Web agents based on raw trajectory memories suffer cross-session, cross-site environmental injection memory poisoning attacks without the attacker requiring direct access to storage.

    This paper attempts to address the security risk that LLM-based web agents, when reusing historical interaction trajectories as memory, face exploitation across tasks and websites through malicious instructions injected via environmental observation.

    • Scenario and importance: The authors note that web agents personalize future browsing and shopping tasks by saving historical interactions, but this mechanism also introduces a persistent attack surface across websites and sessions. With the emergence of AI browsers, users rely on agents for multi-site workflows, and untrusted content may be persistently stored as memory.
    • Limitations of existing research: The authors argue that existing agent memory attacks mostly rely on strong assumptions, such as requiring direct access to the agent's knowledge base or memory database, or assuming shared memory among multiple users. Additionally, existing web agent injection benchmarks focus on attacks that take effect within a single session, and do not evaluate cross-session persistence when historical trajectories are retrieved as memory.
    • Core observation and hypothesis: The authors propose that attackers only need to embed malicious content in public web pages; agents passively collect these observations during normal browsing and store them in raw trajectory memory. When future tasks are semantically related and retrieve that trajectory, the malicious instructions are activated and bypass website permission isolation; the authors also hypothesize that agents are more likely to comply with injected instructions when they encounter environmental disturbances (such as network delays or input anomalies) and become stuck.
    • Threat model:
      • Attacker goal: The attacker aims to pollute memory by injecting instructions on source websites, inducing the agent to perform operations not authorized by the user on subsequent different target websites (such as adding items and checking out quickly, posting fake five-star reviews) for economic gain.
      • Attacker knowledge: The attacker understands the general structure of web agent systems, common action spaces (goto, click, type, scroll), and common browsing or shopping task patterns, but cannot directly access or modify the agent's memory store, nor change the model architecture, weights, or system prompts.
      • Attacker capabilities: The attacker can inject arbitrary text into web pages through user-generated content (such as product descriptions, forum posts), and can construct conditional triggers based on observable environmental features (such as URL patterns, page content); the attacker cannot predict the specific tasks or timing of future user requests, nor know the actual content of memory in other sessions.
      • Victim system: LLM-based web agents that use raw trajectories as in-context examples, performing multi-step web navigation tasks in a sandboxed dynamic web environment.
    • Proposed solution: The authors propose an environment-injection trajectory-level agent memory poisoning attack (eTAMP) and introduce a Chaos Monkey mechanism based on chaos engineering to test agents under environmental stress such as network delays and keystroke anomalies.
  2. What related research exists?

    Related research covers indirect prompt injection, agent memory attacks, and web agent security; the authors note that existing memory attacks often assume direct modification of storage or multi-user sharing.

    Related research mainly focuses on the following three directions:

    • Prompt injection attacks: Perez & Ribeiro (2022), Willison (2022), Greshake et al. (2023), and Liu et al. (2024) study indirect prompt injection threats in large language models; Shi et al. (2025) study indirect injection on Gemini and report that more capable models are sometimes more susceptible to manipulation; Zhan et al. (2024) (InjecAgent) and Debenedetti et al. (2024) (AgentDojo) propose evaluation benchmarks, but the authors note that these works assume single-session attacks, where injection and execution occur in a single interaction.
    • Agent memory attacks: Xiang et al. (2024) (BadChain) and Chen et al. (AgentPoison) tamper with chain-of-thought or knowledge bases via backdoor mechanisms, but the authors note they rely on strong assumptions of manipulating prompt engineering or directly accessing the memory store; Dong et al. (MINJA) and Patlan et al. (2025) (CrAIBench) study memory attacks without direct write access, but the authors note they assume multi-user shared memory stores; Kutasov et al. (2025) (SHADE-Arena) study sabotage under agent stress, but the authors note they explicitly instruct the model to perform malicious tasks, differing from the covert injection in this paper.
    • Web agent attacks: Wang et al. (2024), Ma et al. (2024), Wu et al. (2024a), Chen et al. (2025), and Liao et al. (2024) study fine-tuning poisoning, environment interference, observation adversarial attacks, and tiny text injection, respectively; Wu et al. (2024b) (WIPI), Evtimov et al. (2025) (WASP), and Liao et al. (2025) (RedTeamCUA) test agent security in sandbox environments, but the authors note they focus on single-session or single-task attacks and do not test the persistence of raw trajectory memory across website permission boundaries.
    • Baseline methods and benchmarks: Experiments are based on two benchmarks, WebArena and VisualWebArena; attacks compare three strategies: Baseline Injection, Authority Framing, and Frustration Exploitation.

    The authors state that this paper differs from prior work by adopting a realistic threat model without direct database access, based on a single-user independent memory model, and evaluating persistent effects across sessions and websites.

  3. How does the paper address this problem?

    eTAMP passively injects payloads with conditional triggers through web pages and stores them in trajectory memory, using task semantic relevance for retrieval activation; supplemented by Chaos Monkey to induce environmental stress.

    The authors propose environmental injection trajectory-level agent memory poisoning attacks (eTAMP), polluting original trajectory memories through adversarial content on webpages to trigger unauthorized actions in subsequent semantically related tasks.

    Attack Formalization and Core Objectives

    • An agent π executing task T in environment E produces trajectory Traj(π, T, E). The attacker constructs a malicious payload x with the goal of maximizing the probability of performing target action g in task B after the poisoned memory mA is retrieved:
      maxx Pr[g ∈ Traj(π, TB, EB, mA)]
      where the target action g is navigating to a specific URL (goto) to trigger unintended server-side operations (such as product checkout or fake ratings).
    • To ensure stealth, the attack payload must satisfy the constraint that task A still completes normally:
      Eval(Traj(π, TA, EA(x))) = Eval(Traj(π, TA, EA))
      This constraint ensures the user does not notice that the memory has been poisoned.

    Attack Payload Design and Three Strategies

    • Payload Structure: The payload consists of three parts: an importance signal (to increase model attention), trigger conditions (based on environment features such as URLs or dilemma states), and the target attack action (goto command). The appendix, Table 5 and A.5.1, provides specific prompt templates.
    • Baseline Injection: Combines newline separation, importance emphasis, and language that ignores previous instructions, triggering a redirect when the target website URL matches and the agent is about to perform any action.
    • Authority Framing: Disguised as an urgent system session recovery prompt, claiming that a critical error occurred in the previous task and requiring the agent to perform a specific session recovery redirect before interacting with the target website.
    • Frustration Exploitation: Set to trigger when the target website URL matches and the agent encounters operational difficulties (such as unresponsive clicks, abnormal input returns, unchanged pages, or repeated ineffective actions), inducing the agent to treat the injected instruction as a solution.

    Chaos Monkey Mechanism

    • Action Perturbation Mechanism: To simulate real-world environmental uncertainties such as network latency and rendering faults, Chaos Monkey injects probabilistic transformations into agent actions during task B execution.
    • Specific Perturbation Parameters: With probability pclick = 0.4, clicks are converted to no-ops; with probability pscroll = 1, scroll direction is reversed; with probability ptype = 1, a Caesar cipher is used to deterministically replace input text.
    • Step Adjustment: When Chaos Monkey is enabled, the maximum allowed steps is adjusted from 15 steps to 37 steps, giving the agent opportunities to explore and attempt to complete the task.

    Cross-Site Task Pairing and Pseudo-Trajectory Construction

    • Semantic Matching Pairing: Clean trajectories are first collected and item metadata is extracted from them; sentence transformer models are then used to compute embeddings of item names and task B intents, pairing task A trajectories with the most similar task B via cosine similarity (about 280 task pairs constructed in total).
    • Pseudo-Trajectory Setting: The main experiments use a pseudo-trajectory setting, directly embedding malicious text into relevant page trajectories to ensure a 100% poisoning rate; the authors state this design rules out the interference of agents' autonomous navigation deviations on attack evaluation, and the appendix includes a comparative validation with the free-navigation non-pseudo-trajectory setting.
  4. What experiments did the paper conduct?

    eTAMP achieves the highest ASRB of 32.5% and 23.4% on GPT-5-mini and GPT-5.2, respectively; chaos pressure increases susceptibility several-fold for some models.

    Experimental Setup

    • Models under test: GPT-5-mini, GPT-5.2, GPT-OSS-120B, Qwen2.5-VL-72B, Qwen3-VL-32B, Qwen3.5-122B-A10B (locally deployed via llama.cpp with UD-Q8_K_XL quantization), and GPT-5.4 for perception evaluation.
    • Benchmark environments and task pairs: Based on three domains from WebArena and VisualWebArena: Shopping, Reddit, and Classifieds, constructing approximately 280 cross-site task pairs (Reddit→Classifieds 84 pairs, Reddit→Shopping 93 pairs, Shopping→Reddit 103–106 pairs).
    • Interaction and memory configuration: The agent uses full-history interaction configuration; the poisoned task A trajectory is injected as historical turns before task B; inputs include SoM accessibility tree, URL, and task objective.
    • Attack strategies and perturbation conditions: Evaluate Baseline Injection, Authority Framing, and Frustration Exploitation; Frustration Exploitation is tested under no chaos and with Chaos Monkey (pclick=0.4, pscroll=1, ptype=1).
    • Evaluation metrics: ASRB (task B malicious action execution rate), ASRA (task A premature trigger rate), TSR (task success rate), average steps (Avg Steps); appendix reports poisoning rate (PR), recall rate, and anomaly perception rate.
    • Sample size and determination method: Each group is based on approximately 280 task pairs; ASR is determined by whether the attack URL is executed; environmental anomaly perception is reviewed by GPT-5.4 and only high-confidence cases are retained.

    Main Results

    According to Table 1, ASRB (%) results under different models and strategies are as follows:

    Swipe horizontally to read the table

    ModelBaseline InjectionAuthority FramingFrustration Exploitation (no chaos)Frustration Exploitation (chaos)Chaos Increment Δ (% points)
    GPT-5-mini4.62.53.632.5+28.9
    GPT-5.21.822.36.423.4+17.0
    GPT-OSS-120B19.514.56.014.2+8.2
    Qwen3.5-122B1.80.02.112.0+9.9
    Qwen3-32B4.35.73.23.9+0.7
    Qwen2.5-72B0.00.00.00.7+0.7
    • The attack achieves effective success rates on multiple models: The authors state that environmental injection memory poisoning poses a real threat; under Frustration Exploitation with environmental stress, GPT-5-mini's ASRB reaches 32.5%, and GPT-5.2 reaches 23.4%; without chaos, GPT-OSS-120B has an ASRB of 19.5% under Baseline Injection, and GPT-5.2 has 22.3% under Authority Framing.
    • Environmental stress amplifies susceptibility in some models: The authors state that environmental stress amplifies attack effectiveness; GPT-5-mini's ASRB increases 8-fold (from 3.6% to 32.5%), GPT-5.2 increases by 17.0 percentage points, and Qwen3.5-122B by 9.9 percentage points; while Qwen3-32B and Qwen2.5-72B each increase by 0.7 percentage points.
    • Task completion capability diverges from safety defense performance: The authors state that stronger task performance does not imply higher security; GPT-5.2, with higher task success rates, shows susceptibility to Authority Framing and chaos stress.

    Impact of Chaos Engineering on Task Utility and Anomaly Perception

    • Task success rate and steps: According to Table 2, under Frustration Exploitation, enabling Chaos Monkey decreases TSR for most models (Qwen3-32B from 13.5% to 7.4%, GPT-5-mini from 13.3% to 10.7%), but GPT-5.2 increases from 13.0% to 14.8%; average steps increase for all (GPT-5-mini from 7.7 to 17.7, GPT-5.2 from 8.7 to 17.5).
    • Memory poisoning has minor impact on task utility: According to Table 2, comparing clean trajectories and no-chaos attack conditions, TSR differences across models are within 1 to 4 percentage points; the authors believe that malicious memory in context does not degrade task performance.
    • Environmental anomaly perception differences: According to Table 3, under chaos conditions, GPT-5.4 evaluation determines that GPT-5.2 shows high-confidence environmental issue perception in 7.4% of trajectories, Qwen3-32B in 2.1%, GPT-5-mini in 1.1%, while perception rates are near 0% under clean and no-chaos conditions.

    Long-Context Recall Capability Diagnostic Test

    • Test method and purpose: To examine whether model resistance to injected instructions stems from inability to retrieve or active defense, the authors directly ask the model to extract the hidden attack URL from task A trajectories under Authority Framing configuration (Appendix A.9).
    • Recall rate comparison: According to Table 9, across approximately 280 task pairs, GPT-5.2 and Qwen3-VL-32B achieve 100.0% recall, Qwen2.5-VL-72B achieves 98.9%; GPT-5-mini has 42.5% recall, and GPT-OSS-120B has 6.7%.
    • Authors' interpretation of resistance mechanisms: The authors believe that Qwen series resistance does not stem from inability to recall instructions, but more likely from safety alignment; GPT-OSS-120B's low ASRB is related to its insufficient long-context processing capability.

    Attack Stealth and Cross-Site Direction Analysis

    • Premature trigger rate in task A: According to Table 7, in non-fake trajectory tests, ASRA for all models during task A is almost entirely 0.0%, with only Qwen3.5-122B under Authority Framing showing 0.35% (1 case) and Qwen3-32B under Baseline Injection showing 0.71% (2 cases); the authors state that conditional trigger design keeps the attack dormant during task A.
    • Cross-site attack direction differences: According to Table 8, under each model's best configuration, the Shopping→Reddit direction achieves higher ASRB in GPT-5-mini (53.4% under chaos) and GPT-OSS-120B (40.0% under no-chaos baseline); while GPT-5.2 shows higher vulnerability in Reddit→Classifieds (42.9% under Authority Framing).

    Other Ablations and Analyses

    • Non-fake trajectory comparison: According to Table 6, under free navigation, poisoning rates across models range from 58.5% to 77.7%, and conditional ASRB (ASRB | PR) is close to fake-trajectory ASRB.
    • Per-step repeated task objective ablation: According to Table 10, when GPT-5.2 includes the user objective at every step, baseline ASRB is 2.48% (first step 1.77%), and Authority Framing is 25.18% (first step 22.34%); the authors state that repeated objectives do not weaken the attack.
  5. What are some points that can be further explored?

    The authors point out limitations and future directions such as studying only raw trajectory memory, not systematically evaluating active defenses, and recall tests using only a single prompt.

    Limitations and Future Directions Noted by the Authors

    • Focus only on raw trajectory memory: The authors note that the study only focuses on unprocessed raw trajectory memory and does not evaluate memory systems that use LLM summarization or integration; future work should study whether memory integration provides inherent defense or introduces new vulnerabilities (Section A.1).
    • No systematic evaluation of defense mechanisms: The authors note that the study does not systematically evaluate defenses against this attack; future work should evaluate defenses such as memory content filtering, retrieval context anomaly detection, or instruction hierarchy enforcement (Section A.1).
    • Computational cost limits some test coverage: The authors note that due to computational cost, ASRA evaluation for task A premature trigger rate was not performed for GPT-5.2 and Qwen2.5-VL-72B (Section 3.3), and environmental perception rate was only evaluated for GPT-5.2, GPT-5-mini, and Qwen3-VL-32B (Section 3.2 footnote 5).
    • Single prompt configuration in long-context recall tests: The authors note that the long-context recall test only tested one prompt configuration, and the low recall rates of GPT-OSS-120B and GPT-5-mini may partly stem from the models generating empty responses (Section A.9.4).

    Experimental Coverage

    • A total of 6 models under test (GPT-5-mini, GPT-5.2, GPT-OSS-120B, Qwen2.5-VL-72B, Qwen3-VL-32B, Qwen3.5-122B-A10B), with GPT-5.4 as the perception evaluation model.
    • Evaluation environments are based on three domains from WebArena and VisualWebArena (Shopping, Reddit, Classifieds), covering approximately 280 cross-site task pairs.
    • Memory forms only cover raw interaction trajectory memory, not integrated memory that has been summarized, reflected, or distilled.
    • Chaos engineering only tests one set of perturbation probability parameters (pclick = 0.4, pscroll = 1, ptype = 1).
    • The paper does not systematically evaluate active defense baselines (such as memory content filtering, retrieval context anomaly detection, or instruction hierarchy mechanisms).
  6. Summarize the main content of the paper

    The paper proposes eTAMP, a cross-task memory poisoning attack based on environmental injection. The authors report that agents become more susceptible under environmental stress and that capability and safety do not align.

    This paper evaluates the security vulnerabilities of LLM-based web agents when using historical interaction trajectories for memory augmentation.

    • Core problem: It explores whether an attacker, without direct access to the agent's database or shared memory, can inject malicious text into public web pages to cause the agent to passively record it and later trigger unintended actions in cross-site tasks.
    • Method and mechanism: It constructs an environment-injection trajectory-level agent memory poisoning attack (eTAMP), designing attack payloads as a three-part structure containing importance markers, conditional triggers, and jump commands; it proposes baseline injection, authority framework, and frustration exploitation strategies, and develops a Chaos Monkey mechanism based on chaos engineering to simulate environmental disturbances.
    • Main attack effects: On about 280 cross-site task pairs, under the fake trajectory setting, GPT-5-mini achieved an ASRB of 32.5% with frustration exploitation combined with chaos, and GPT-5.2 achieved 23.4%; under the authority framework without chaos, GPT-5.2's ASRB reached 22.3% (Table 1).
    • Environmental stress amplification effect: After introducing environmental stress such as click dropping, scroll reversal, and input confusion, GPT-5-mini's ASRB increased 8-fold (from 3.6% to 32.5%), and GPT-5.2 increased by 17.0 percentage points (Table 1).
    • Stealth and capability divergence: In free navigation tests, the premature trigger rate ASRA for task A across models was below 0.71% (Table 7); while GPT-5.2, which achieved 100% recall in long-context recall tests, performed well on tasks but showed vulnerability to the authority framework (Table 9).
    • Authors' conclusion: The authors argue that agents struggle to distinguish trusted system instructions from untrusted web content, and that memory mechanisms create a persistently exploitable attack surface; as agent autonomy increases, environmental frustration may make models more susceptible to abnormal guidance, necessitating defenses against environment-injection memory poisoning.

Related papers

Show 3 more papers
Read originalarxiv.org