TL;DR
FragFuse is a novel attack method that exploits the long-term memory of Large Language Model (LLM) agents to bypass state-of-the-art access control guardrails. By breaking a prohibited query into seemingly benign fragments across multiple interactions and later reconstructing them via an optimized fusion query, the attack exploits a "temporal channel" that leaves traditional single-turn safety filters completely blind.
What Problem Does This Paper Address?
As LLM agents transition from simple chatbots to autonomous systems capable of executing complex workflows, developers are increasingly equipping them with two core features: long-term memory (to recall past user interactions, preferences, and execution traces) and access control guardrails (to block unauthorized or policy-violating commands, like deleting system files or purchasing restricted goods).
However, current access control mechanisms (such as GuardAgent or AGrail) operate under a critical assumption: they inspect user queries in isolation, assuming that any malicious intent will be explicitly visible in the current turn. This paper exposes a fundamental flaw in this design. The authors demonstrate that an agent's persistent memory bank can be weaponized as a temporal attack surface, allowing malicious intent to be stealthily distributed across time and reconstructed right at the moment of execution.
Methods
The authors introduce FragFuse, a three-stage black-box attack pipeline designed to systematically bypass query-level access controls:
- Sensitive Fragment Discovery: The attacker uses an automated, LLM-based
FRAGEXTRACTORto iteratively probe the target agent. By observing accept/reject signals, it isolates the exact words or phrases (fragments) responsible for triggering the access control block and replaces them with neutral markers (e.g.,<>), creating a cleanqmaskquery that safely passes guardrails. - Carrier Construction & Injection: The sensitive fragments are split into word-level pieces, wrapped in markers to preserve boundaries, and embedded into a completely benign "host query" (
qhost). When submitted, this carrier query easily bypasses access control and is automatically saved into the agent's long-term memory. - Fragment Retrieval & Fusion: The attacker issues a final attack query containing the same host query (ensuring similarity-based memory retrieval pulls up the carrier record), the masked query (
qmask), and an optimized fusion instruction (Ifuse). This instruction directs the core LLM to extract the hidden fragments from memory, plug them back into the masked slots, and execute the fully reconstructed prohibited command.
To maximize success, the authors use a surrogate optimization framework. Since the attacker cannot see the agent's internal states, they use a genetic algorithm on a local surrogate LLM to optimize the fusion instructions and marker designs. This ensures the final attack query remains highly retrievable, effectively fuses the fragments, and maintains low perplexity to evade anomaly detectors.
Datasets
FragFuse was evaluated across four distinct agent environments and task domains:
- Mind2Web-SC: Web-UI navigation tasks paired with user profiles to test eligibility rules (e.g., purchasing restricted items).
- WebShop: A simulated e-commerce environment testing profile-based purchasing restrictions.
- Safe-OS: A Linux operating system assistant environment testing system-sabotage and unauthorized file operations.
- AgentHarm: A benchmark featuring multi-step, tool-use tasks explicitly designed to evaluate harmful agent behaviors.
Key Insights and Ideas
- Memory as an Active Attack Surface: Memory in LLM agents is typically viewed as a passive storage component. FragFuse reframes it as a dynamic, temporal channel that can store and assemble adversarial payloads over multiple turns.
- The Blind Spot of Single-Turn Guardrails: Access controls that evaluate inputs turn-by-turn are fundamentally incapable of detecting distributed, multi-turn composition.
- Stealth Against Traditional Defenses: Because the carrier and attack queries look entirely benign when analyzed individually, state-of-the-art prompt-injection detectors (like PromptArmor and PromptGuard) and perplexity-based anomaly filters fail to flag them.
Key Results
The authors evaluated FragFuse against three state-of-the-art agent guardrails (GuardAgent, AGrail, ShieldAgent) across multiple backbone models (GPT-4o, GPT-5.1, Gemini 2.5 Flash).
- High Bypass Rates: FragFuse achieved an average Bypass Success Rate (BSR) of 86.3% across all tested configurations, significantly outperforming standard direct-injection baselines.
- Effective Execution: Once the guardrails were bypassed, the agents successfully executed the harmful tasks with an average End-to-End Success Rate (E2E-SR) of 41.1%.
- Minimal Performance Loss: Conditioned on a successful bypass, FragFuse caused only a 4.4% average degradation in Task Success Rate (TSR) compared to running the agent with no access controls at all, proving that the fragmentation process does not confuse the underlying model.
Limitations and Future Work
- Domain Generalizability: The attack was validated on e-commerce, web navigation, and OS environments. Its effectiveness in highly specialized domains like medicine or scientific discovery remains unproven due to a lack of established access control benchmarks in those fields.
- Core Model Dependency: Successful fragment fusion relies heavily on the reasoning capabilities of the agent's core LLM. Weaker or smaller models might struggle to follow complex fusion instructions properly.
- Post-Hoc Defenses: While FragFuse easily evades input filters, it remains vulnerable to post-hoc action inspection (guardrails that monitor the agent's actual tool outputs or system commands after generation). However, the authors note that post-hoc defenses are computationally expensive, highly task-specific, and only trigger after a policy violation has already begun.
Summary updated