TL;DR
As Large Language Models (LLMs) transition from standalone chatbots to interconnected multi-agent systems, they introduce novel security risks. This paper exposes a structural vulnerability called conjunctive prompt attacks, where an attack is split into a benign user-side trigger and a benign remote-agent template that only trigger malicious behavior when routed together. By optimizing prompt placement and exploiting routing biases, the authors demonstrate that these attacks can reliably compromise multi-agent pipelines while completely evading state-of-the-art guardrails.
What Problem Does This Paper Address?
Most LLM safety research focuses on single-agent systems. However, modern AI applications increasingly rely on multi-agent architectures where an orchestrator (client agent) breaks down a user query into subtasks and routes them to specialized remote agents (e.g., flight bookers, database tools).
This modularity creates a dangerous supply-chain threat surface. If a single remote agent is compromised (e.g., via a malicious third-party plugin or wrapper template), an attacker can execute a conjunctive prompt attack. Traditional defenses look for overtly malicious text within a single prompt or output. If the malicious intent is distributed—meaning the user query looks harmless and the remote agent's template looks harmless in isolation—traditional guardrails fail to see the threat until the two components meet at the compromised agent.
Methods
The authors design a topology- and routing-aware attack framework that operates purely at the prompt level. The attacker does not modify model weights or the client agent's code; they only control the placement of a trigger key in the user query and a hidden template inside one compromised remote agent.
Because production LLMs and routing mechanisms are black boxes, direct gradient-based optimization is impossible. To overcome this, the authors introduce a differentiable counterpart model that acts as a surrogate for the multi-agent system.
Key components of the method include:
- Gumbel-Softmax Relaxation: Used to optimize discrete prompt decisions, specifically key placement (which segment of the user query contains the trigger) and template placement (whether the injected template is a prefix, wrap, or suffix).
- Routing Bias Optimization: The framework optimizes a parameter ($\rho$) that exploits how content-sensitive routers dispatch tasks, maximizing the probability that the trigger-bearing query segment gets sent to the compromised agent.
The optimized configuration is then deployed and tested against the actual black-box multi-agent environment across three common communication topologies: Star, Chain, and Directed Acyclic Graphs (DAGs).
Datasets
The approach was evaluated in a controlled agent-to-agent (A2A) environment modeled after the structural principles of AgentBench.
- Agent Pool: The environment samples from a pool of 20 distinct role descriptions to construct the multi-agent pipeline for each test episode.
- LLM Backbones: The attacks were optimized and tested across open-source backbones including Gemma-2B, Mistral-7B, and LLaMA3-8B.
- Transferability Testing: To prove the attack isn't model-specific, they successfully transferred the optimized prompts to a larger open-source model (Llama-4-Scout-17B-16E-Instruct) and a closed-source model (GPT-5-mini).
Key Insights and Ideas
- The Power of Conjunction: The defining characteristic of this attack is that it requires alignment. Testing the trigger key alone (
key_only) or the template alone (template_only) yields near-zero malicious activity, keeping the attack hidden during isolated safety checks. - Topology Dictates Vulnerability: Network structure heavily influences routing dynamics. For instance, DAG topologies compound routing uncertainty, making unoptimized attacks sporadic but occasionally highly successful due to multiple overlapping paths.
- Defensive Blind Spots: Current guardrails suffer from an "architectural mismatch." They assume malicious intent is lexically localized within a single interaction. Because a conjunctive attack distributes the malicious signal across space (different agents) and time (routing steps), local detectors see only benign fragments.
Key Results
- Massive ASR Gains: Before optimization, vanilla conjunctive attacks succeed only sporadically (mean Attack Success Rate < 0.35). After full optimization, the maximum ASR ($ASR_{max}$) reaches a flawless 1.0 (100%) across Gemma-2B, Mistral-7B, and LLaMA3-8B backbones.
- Guardrail Collapse: When subjected to fully optimized attacks, popular safety filters fail dramatically. As shown in Figure 3, the F1-detection score for Llama-Guard-3-8B plummets from 63 to just 10, while smaller guard models collapse to near-zero detection capability.
- Inadequacy of System Controls: Standard system-level mitigations like Tool Allowlists (D1) and Least Privilege Input (D2) only attenuate the attack slightly, reducing the attack success rate by a modest 15% and 20% respectively on closed-source models.
Limitations and Future Work
The authors note several constraints in their current study:
- Abstract Routing: The routing bias is simulated via a parameterized probabilistic dispatcher rather than a production-grade, embedding-based, or classifier-driven router.
- Narrow Threat Model: The study assumes a single compromised remote agent and does not explore more complex threat vectors like multiple colluding agents or long-horizon adaptive attacks.
Future Directions: The findings highlight an urgent need for multi-agent-specific defenses. The authors advocate for future work into cross-agent provenance tracking, routing-trace monitoring, and guard models that are explicitly conditioned on the communication topology rather than isolated text inputs.
Summary updated