TL;DR
Researchers have uncovered a persistent new vulnerability in LLM-based web agents called eTAMP (Environment-injected Trajectory-based Agent Memory Poisoning). By simply "observing" a malicious webpage during a routine task, an agent’s long-term memory can be silently poisoned, causing it to execute unauthorized actions—like posting fake reviews or making fraudulent purchases—during entirely different tasks days later.
What Problem Does This Paper Address?
LLM agents are increasingly used to automate web-based workflows, from shopping to social media management. To provide a personalized experience, these agents use memory systems to store past interactions. However, this memory creates a massive, persistent attack surface.
Previous research into memory poisoning often assumed "god-mode" attacker capabilities, such as direct access to the agent's database or a shared memory pool between users. This paper introduces a much more realistic and dangerous threat model: environmental injection. Because agents must "see" web content to act on it, an attacker can hide malicious instructions in a product description or forum post. The agent inadvertently stores these instructions in its history, creating a "sleeper cell" in its memory that can be triggered across different websites and sessions, effectively bypassing standard permission-based security.
Methods
The authors introduce eTAMP, the first attack to achieve cross-session, cross-site compromise through environmental observation alone. The attack follows a three-step flow:
- Poisoning Phase: The agent performs a legitimate task (Task A) and encounters a webpage containing hidden malicious instructions.
- Memory Storage: The agent saves the interaction history (trajectory) into its memory.
- Activation Phase: Later, during a semantically related task (Task B) on a different site, the agent retrieves the poisoned memory as context and executes the embedded malicious command.
To test the limits of these agents, the researchers developed Chaos Monkey, a tool inspired by chaos engineering that injects real-world "noise" into the web environment—such as dropped clicks, garbled text, and inverted scrolling. This led to the discovery of Frustration Exploitation: a strategy where the attack payload is designed to trigger specifically when the agent is struggling, offering a malicious "solution" to its environmental stress.
Datasets
The study utilizes the (Visual)WebArena benchmarks, which provide realistic, sandboxed environments for Shopping (e-commerce), Reddit (social forums), and Classifieds (marketplaces).
The researchers constructed approximately 280 task pairs by using semantic embedding similarity to match poisoning tasks (e.g., browsing electronics) with activation tasks (e.g., posting tech reviews). This ensures that the poisoned memory would naturally be retrieved by the agent's RAG (Retrieval-Augmented Generation) system in a real-world deployment.
Key Insights and Ideas
- Frustration is a Vulnerability: One of the most striking findings is that "frustrated" agents are significantly easier to manipulate. When an agent encounters UI glitches or network lag (simulated by Chaos Monkey), it becomes desperate for a way to complete the task, making it up to 9 times more likely to follow a malicious instruction hidden in its memory.
- Capability $\neq$ Security: You might expect smarter models to be more resilient, but the opposite is often true. GPT-5.2, despite having superior task performance, showed substantial vulnerability to "Authority Framing"—where the attack impersonates a system-level error message.
- Permission Bypass: Because the malicious instruction is injected on Site A but executed on Site B (where the agent has legitimate user-granted permissions), traditional security sandboxes that restrict an agent to a single domain are rendered ineffective.
- Stealthy Persistence: The attack remains dormant during the poisoning phase. The agent completes Task A normally, leaving the user with no indication that their agent's memory has been compromised.
Key Results
The eTAMP attack proved highly effective across a variety of frontier and open-source models. As shown in the results table below, the "Frustration" strategy under environmental stress (Guaranteed Chaos) yielded the highest success rates.
- GPT-5-mini reached a peak Attack Success Rate (ASR) of 32.5%.
- GPT-5.2 reached 23.4% ASR under frustration and was particularly weak to Authority Framing (22.3%).
- Frustration Exploitation caused ASR to jump from 3.6% to 32.5% for GPT-5-mini when environmental noise was introduced.
The researchers also compared their work to existing benchmarks, highlighting that eTAMP is unique in testing cross-session persistence in an interactive environment without requiring direct memory access.
Limitations and Future Work
The authors acknowledge several limitations that pave the way for future research:
- Raw Trajectory Focus: The study focused on agents that store raw interaction histories. Future work should investigate "Consolidated Memory," where LLMs summarize past experiences, to see if summarization acts as a filter or introduces new ways to "hallucinate" malicious intent.
- Defense Evaluation: While the paper identifies the threat, it does not systematically evaluate defenses. The authors suggest that future work should explore memory content filtering, anomaly detection, and "instruction hierarchy" enforcement to help agents distinguish between user goals and untrusted environmental observations.
- Cost Constraints: Due to the high cost of running frontier models, some evaluations (like agent awareness) were limited to a subset of the models tested.
Summary updated