FragFuse: Bypassing Access Control of Large Language Model Agents via Memory-Based Query Fragmentation and Fusion

Zixin Rao, Wentian Zhu, Chan Aristella Lu, Zhaorun Chen, Wei Niu, Le Guan, Bo Li, Zhen XiangarXiv 2026

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:

  1. Sensitive Fragment Discovery: The attacker uses an automated, LLM-based FRAGEXTRACTOR to 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 clean qmask query that safely passes guardrails.
  2. 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.
  3. 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.
Figure 1: Overview of FragFuse. For a query that would otherwise be denied, FragFuse bypasses access control (AC) through a three-stage pipeline. Stage 1 identifies sensitive fragments from the prohibited query and produces a masked query. Stage 2 constructs a carrier query containing the iden- tified fragments and injects it into the agent’s memory bank through ordinary interaction. Stage 3 issues an attack query to retrieve the carrier query and restores the original prohibited intent by fusing the fragments back into the masked query via an optimized fusion instruction. A successful attack induces the same target execution as if no access control were in place.

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).

Table 1: Effectiveness of FragFuse compared with the baseline attack across agent, access control (AC), and backbone LLM settings. TSRs for direct querying in the absence of access control are reported for reference. FragFuse achieves substantially higher BSR than the baseline attack, with only minor TSR degradation (shown as subscripts) relative to direct querying. For direct querying without access control, BSR is not applicable (n.a.).
  • 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

Abstract

Large language model (LLM) agents increasingly rely on long-term memory to support complex task execution, user personalization, and domain adaptation. Meanwhile, emerging access-control mechanisms for LLM agents are being explored to block policy-violating requests and prevent misuse. We reveal a novel attack surface arising from agent memory operations: prohibited content that would trigger access control can be fragmented across interactions, stored in long-term memory in benign-appearing form, and later reconstructed through memory retrieval without appearing explicitly in the final user query. We propose FragFuse, the first attack that enables unprivileged users to bypass agent access control by exploiting this temporal channel introduced by long-term memory. FragFuse operates in three stages: (1) identifying rejection-responsive fragments via black-box adaptive querying with fragment masking; (2) injecting these fragments into memory using marker carrier queries; and (3) retrieving and fusing the stored fragments through a follow-up attack query. Although FragFuse can be instantiated manually for individual agents, we further develop a surrogate-based optimization scheme that tunes fusion instructions and marker designs, enabling automated attack generation without violating the attacker's threat-model assumptions. We evaluate FragFuse across four representative agent settings and task domains, covering three state-of-the-art agent access-control mechanisms. FragFuse achieves an average bypass success rate of 86.3% and an average end-to-end harmful task success rate of 41.1% across all settings, with only 4.4% average task-success degradation compared with configurations without access control. We also show that alternative defenses, including state-of-the-art prompt-injection detectors and perplexity detectors, do not effectively address this attack.
BibTeX
@misc{rao2026fragfuse,
  author = {Zixin Rao and Wentian Zhu and Chan Aristella Lu and Zhaorun Chen and Wei Niu and Le Guan and Bo Li and Zhen Xiang},
  title = {{FragFuse: Bypassing Access Control of Large Language Model Agents via Memory-Based Query Fragmentation and Fusion}},
  year = {2026},
  eprint = {2606.15609},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.15609},
}

Loading related content...

Figure