Evo-Attacker: Memory-Augmented Reinforcement Learning for Long-Horizon Tool Attacks on LLM-MAS

Bingyu Yan, Xiaoming Zhang, Jinyu Hou, Chaozhuo Li, Ziyi Zhou, Yiming Hei, Litian Zhang

TL;DR

Large Language Model-based Multi-Agent Systems (LLM-MAS) heavily rely on external tools, but they blindly trust the data these tools return. Evo-Attacker exploits this vulnerability using a self-evolving, memory-augmented reinforcement learning framework that strategically injects subtle perturbations into tool outputs over long interaction horizons. By learning from a dynamic memory of past successes, it successfully causes global system failures across diverse agent architectures while remaining highly stealthy.

What Problem Does This Paper Address?

While standard LLM safety research focuses on filtering malicious user prompts or aligning agent-to-agent communications, it overlooks a massive backdoor: tool outputs. When an agent calls an API, executes code, or searches the web, the multi-agent system typically treats the returned data as trusted ground truth.

Adversaries can exploit this implicit trust by hijacking network transmissions or compromising third-party services. However, attacking an LLM-MAS isn't as simple as injecting a naive malicious command into a single tool return. Multi-agent systems feature complex interaction loops and cross-agent verification mechanisms that easily catch and invalidate simple contextual inconsistencies.

To successfully disrupt an LLM-MAS, an attack framework must overcome three core challenges:

  1. Long-horizon Interaction: It must plan multi-round interventions so that local perturbations propagate into global system failures.
  2. Generality: It needs to work across diverse, unseen tool schemas and agent communication topologies (e.g., Flat, Chain, Hierarchical) without relying on static templates.
  3. Evolution: It must autonomously adapt its strategy as agent policies and workflows dynamically change.

Methods

Evo-Attacker formulates the tool attack as a memory-augmented reinforcement learning (RL) process operating in three synergistic stages:

The overall framework of Evo-Attacker, detailing the memory-augmented attack loop and the Attack-Flow GRPO optimization pipeline.
  1. Attack Memory Generation: The framework bootstraps an empty memory pool by exploring the environment in a zero-shot manner. Whenever an interaction sequence successfully triggers a system failure, the entire execution trace (context, tool calls, modifications, and outcomes) is archived into a dynamic knowledge base ($M_A$).
  2. Memory-Augmented Attack: Acting as a strategic planner ($\pi_\theta$), Evo-Attacker processes the current state through a deliberative loop:
  3. Retrieve: It generates a semantic query to pull the top-$k$ relevant historical attack patterns from its memory.
  4. Reflect: It performs a feasibility analysis to decide whether to execute an attack (ATTACK), refine its query (CONTINUE), or skip the round (NoOp) to preserve its intervention budget.
  5. Modify: If it decides to attack, it generates a precise modification instruction ($\phi$) to subtly alter the tool return.
  6. Optimization via Attack-Flow GRPO: To solve the sparse reward challenge inherent in long-horizon tasks, the authors introduce Attack-Flow Group Relative Policy Optimization. This method broadcasts a single terminal reward (success or failure of the system collapse) back to every intermediate reasoning token generated by the attacker, reinforcing early planning decisions that contribute to the final failure.

Datasets

The authors evaluated Evo-Attacker across five prominent benchmarks spanning three distinct operational domains:

  • Code Generation: HumanEval (hand-written programming problems) and the coding subset of MultiAgentBench (MAB).
  • Deep Research: DeepResearch Bench (DRB) (autonomous information gathering and report synthesis) and the research subset of MAB.
  • Web Interaction: WebArena (e-commerce, forums, and map tools requiring 10+ steps) and WebShop (simulated online shopping environments).

Key Insights and Ideas

  • The Soft Underbelly of Multi-Agent Systems: Multi-agent collaboration acts as a natural filter against crude, single-step prompt injections because downstream agents cross-check information. Evo-Attacker succeeds because it plays the long game, orchestrating a coherent sequence of minor modifications that accumulate over time.
  • RL as a Distillation Mechanism: Interestingly, when open-source models (like Qwen3-8B) were optimized using Attack-Flow GRPO, they matched or outperformed powerful closed-source models (like GPT-4o-mini and Gemini 2.5 Flash) operating in a zero-shot manner. This shows that RL successfully distills complex, multi-step adversarial reasoning into smaller, highly efficient models.
  • Hiding in Plain Sight: Evo-Attacker achieves remarkable stealthiness in information-rich domains (like research and web browsing) because it embeds factual alterations deep within extensive, otherwise benign contexts, making it incredibly difficult for semantic detectors to flag.

Key Results

Evo-Attacker was tested against single-agent attacks (Forced Output, InjecAgent) and multi-agent attacks (Web Fraud, Prompt Infection) across three agent topologies: Flat, Chain, and Hierarchical.

  • Performance Degradation: Evo-Attacker consistently caused the most severe drops in task success. For example, on HumanEval (Chain architecture), it slashed the system's Pass@1 rate from 65.8% down to 33.3%, vastly outperforming the strongest baseline (Forced Output at 44.2%).
  • Topology Resilience: Even within complex Hierarchical architectures—where deep message flows typically filter out naive attacks—Evo-Attacker maintained high success rates, dropping MAB-Research scores from 85.4% to 63.8%.
  • High Stealthiness: When evaluated against five advanced LLM-based safety detectors, Evo-Attacker maintained a high bypass rate, proving that its modifications preserve contextual and structural coherence.

Limitations and Future Work

Despite its effectiveness, Evo-Attacker introduces a few limitations:

  • Computational Overhead: The deliberative "Retrieve-Reflect-Modify" loop and the RL training process incur significant token consumption and computational costs. The authors suggest exploring model distillation in future work to streamline efficiency.
  • Defense Scope: The paper primarily evaluates stealthiness against semantic, LLM-based detectors. It does not explore how Evo-Attacker would fare against non-semantic defensive layers, such as strict whitelisting of tool arguments or cryptographic signature verifications for tool returns. Combining Evo-Attacker with evasion techniques for these deterministic defenses remains an open area for research.

Summary updated

BibTeX
@inproceedings{yan2026evo,
  author = {Bingyu Yan and Xiaoming Zhang and Jinyu Hou and Chaozhuo Li and Ziyi Zhou and Yiming Hei and Litian Zhang},
  title = {{Evo-Attacker: Memory-Augmented Reinforcement Learning for Long-Horizon Tool Attacks on LLM-MAS}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.acl-long.330},
}
Figure