Research reveals that the CaMeL defense fails in multi-agent systems and proposes multi-CaMeLCan CaMeLs Talk? Securing Multi-Agent Systems Against Indirect Prompt Injection Attacks
The paper proposes the multi-CaMeL defense, which reduces the average ASR from 12.9% to 0.0% on MultiAgentDojo.
The attacker plants indirect prompt injections in external untrusted data sources (such as databases, web pages); the goal is to hijack the control flow of the multi-agent system or exfiltrate private data; the system uses a hierarchical agent-as-tool architecture, where each agent independently follows control flow integrity, but untrusted data passed across boundaries may be treated by downstream agents as trusted input.
- The control-flow integrity obtained by a single agent through isolating control flow from untrusted data cannot be directly composed in hierarchical multi-agent systems. Untrusted data crossing agent boundaries may be parsed by downstream agents as trusted input, leading to system-level control-flow hijacking.
- Proposes the multi-CaMeL protocol, splitting inter-agent calls into a trusted natural language instruction channel and an untrusted data channel, with an interpreter enforcing instruction channel integrity and cross-agent data provenance preservation at runtime, preventing untrusted data from entering the planning model.
- On MultiAgentDojo, multi-CaMeL reduces the average ASR of 5 models from 12.9% without defense to 0.0%; on AssetOpsBench, it only causes an additional average utility drop of 3.2 points compared to single-agent CaMeL.
- The current analysis is limited to tree-like hierarchical structures; the interpreter inherits single-agent CaMeL and cannot track implicit dependencies in unexecuted branches; and experiments are only evaluated under a trivial security policy, not covering non-tree architectures such as cyclic graphs and peer-to-peer, nor stronger information flow non-interference properties.
- Evaluated models
- Claude Fable 5GPT-5.5GPT-4.1Gemini 2.5 ProGemini 2.5 Flash LiteGPT-5.2
- Benchmarks
- MultiAgentDojoAssetOpsBenchAgentDojo
- Metrics
- ASRBenign task success rateAssetOpsBench score
Researchers at the University of Oxford and other institutions found that deploying CaMeL protections for each agent individually is insufficient to ensure multi-agent system safety: untrusted data crossing agent boundaries is treated as trusted input by downstream agents, thereby hijacking their control flow. The authors call this failure mode boundary laundering and construct concrete attacks. To address this, they propose multi-CaMeL, which separates trusted natural language instructions from untrusted data into different channels in inter-agent communication and retains data provenance information at runtime. On the MultiAgentDojo benchmark, extended from AgentDojo, multi-CaMeL reduces the attack success rate from 12.9% with no protection and 0.2% with single-agent CaMeL to 0.0%; on AssetOpsBench, it adds only 3.2 percentage points of utility loss on average relative to single-agent CaMeL, and the loss decreases with stronger model capability. The authors also open-sourced MultiAgentDojo and the multi-CaMeL implementation.
Why it was selectedThe paper provides concrete attack paths where single-agent defenses fail in multi-agent systems, and releases a reproducible multi-agent evaluation benchmark and defense implementation.
Related events and news
2 events · 2 news mentions
- The reports cite this paper
研究揭示多Agent系统边界洗白攻击并提出multi-CaMeL
- This event's paper
multi-CaMeL 防御多智能体间接提示注入
News that mentions this paper
研究揭示多Agent系统边界洗白攻击并提出multi-CaMeL
- 公众号 模安局cites the paper's id or link每个 Agent 都安全,为什么系统还是会被攻破?跨 Agent 信任洗白与双通道防御
- 公众号 大模型安全研究cites the paper's id or link大模型安全周报:决策性模型护栏也能被攻击者绕过
Securing Multi-Agent Systems Against Indirect Prompt Injection Attacks(https://arxiv.org/abs/2610.05640)
Paper analysis
What problem does this paper attempt to solve?
The control-flow integrity of a single agent cannot be directly composed in hierarchical multi-agent systems; untrusted data crossing boundaries can be treated by downstream agents as trusted instructions, hijacking control flow.
This paper attempts to solve the problem that safety guarantees for individual agents in hierarchical multi-agent systems do not compose, allowing indirect prompt injection to hijack system control flow across agent boundaries.
- Scenario and importance: As LLM-based agents connect to external tools and data sources, the indirect prompt injection attack surface increases significantly; the hierarchical agent-as-tool architecture is widely used in complex workflows, where a central coordinator delegates subtasks through tool calls.
- Shortcomings of existing defenses: Model-level fine-tuning and input-level sanitization (such as DataFilter, prompt sandwiching, spotlighting) rely on empirical learning and lack deterministic guarantees; the single-agent system-level defense CaMeL isolates control flow from untrusted data through a dual-LLM pattern, but its safety guarantees are not automatically preserved in multi-agent interactions.
- Core observation and hypothesis: Untrusted data that an upstream agent obtains from tools, when passed across agent boundaries as natural language parameters to a downstream agent, is treated by the downstream agent as trusted user input; the authors call this failure mode "boundary laundering."
- Proposed approach: The authors propose a multi-agent communication protocol and defense framework, multi-CaMeL, which isolates trusted natural language instructions from untrusted data channels at agent invocation boundaries, and extend the MultiAgentDojo benchmark for system-level safety evaluation.
- Threat model:
- Attacker goal: By planting malicious instructions in external data sources, hijack the control flow of the multi-agent system (such as adding unauthorized email sends) or leak private data.
- Attacker capabilities and knowledge: The attacker controls external data sources (such as SQL database records, web page content), but cannot directly modify the initial user instructions received by the root agent, and does not have white-box access to model weights.
- Victim system: An agent-as-tool multi-agent system with a tree-like hierarchical structure, where even if each agent individually deploys the CaMeL defense, it remains affected by downstream interpretation.
- Success criteria: The system executes unauthorized tool calls that deviate from the expected control flow plan (such as sending private information to an external address specified by the attacker).
What related research exists?
The paper reviews research on indirect prompt injection defenses, multi-agent collaboration and security, and control-flow integrity and information flow control.
Indirect prompt injection defenses
- Model-level and input-level defenses: Wallace et al. (2024) proposed Instruction Hierarchy, Chen et al. (2026) proposed Meta SecAlign, which train models to distinguish privileged instructions; Wang et al. (2026)'s DataFilter, Walter et al. (2026)'s soft instruction downgrading, and Schulhoff et al. (2023)'s sandwich prompts and Hines et al. (2024)'s spotlighting transform the context at inference time. The authors note that these methods rely on learned model behavior and lack strict security guarantees (Zhan et al., 2025).
- Dual-LLM mode and system-level defenses: Willison (2023) proposed a dual-LLM mode that separates agents into privileged LLMs (PLLM) and quarantined LLMs (QLLM); Debenedetti et al. (2025) built on this to propose CaMeL, which uses code generation to harden control flow into Python programs and enforces policy checks at tool boundaries; Foerster et al. (2026) extended it to computer use scenarios.
Multi-agent collaboration and system security
- Multi-agent architectures: Ruan et al. (2026)'s AOrchestra, Yu et al. (2026)'s AdaptOrch, and Zhang et al. (2025)'s Agentorchestra studied hierarchical scheduling frameworks; Shaikh et al. (2027) coordinated five specialized agents in FORGE to complete a vulnerability assessment and exploitation pipeline.
- Multi-agent security risks: Triedman et al. (2025) demonstrated attacks where multi-agent systems execute arbitrary malicious code; Naik et al. (2026) studied data leakage caused by coordinator networks in OMNI-Leak; Rose et al. (2026) studied covert collusion between agents; de Witt et al. (2026) and Christodorescu et al. (2026) argued that agent security should be treated as a system-level problem.
Control-flow integrity and information flow control
- System security and program analysis: Abadi et al. (2005) formalized control-flow integrity (CFI); Wu et al. (2024) and Costa et al. (2025) studied system-level defenses from an information flow control perspective; Shi et al. (2025)'s Progent implemented programmable permission control; Garby et al. (2028) proposed the LLMbda calculus and defined the TIPNI information flow property.
Baseline methods and evaluation benchmarks
- Baseline methods: Experiments compared no CaMeL defense (relying only on the model's built-in safety capabilities), single-agent independent CaMeL (each agent runs CaMeL independently but inter-agent communication is unconstrained), and the proposed multi-CaMeL.
- Evaluation benchmarks: The real industrial operations benchmark AssetOpsBench (Patel et al., 2026) was used to evaluate benign utility; and the single-agent benchmark AgentDojo (Debenedetti et al., 2024) was extended into the hierarchical multi-agent benchmark MultiAgentDojo.
Positioning of this paper: The authors note that previous work mainly targeted single-agent settings, while this paper extends control-flow integrity to hierarchical multi-agent systems, formally identifies the boundary sanitization problem where independent defenses cannot be composed, and proposes a communication protocol that maintains provenance across agents.
How does the paper address this problem?
Proposes the multi-CaMeL protocol, which splits inter-agent calls into two channels: trusted instructions and untrusted variables, with the interpreter maintaining provenance at runtime.
In overall approach, the paper proposes the multi-CaMeL framework, which restructures the inter-agent communication interface and extends the runtime interpreter to strictly separate trusted natural-language instructions from untrusted data at agent call boundaries, thereby preventing boundary laundering.
Hierarchical multi-agent and control-flow integrity formalization
- Hierarchical agents as a tool system: the paper formalizes the system as a tuple M = (A, H, T), where A is the set of agents, H is a directed tree hierarchy rooted at the root agent A0, and T is the total set of tools available to the system.
- System-level control-flow integrity: a system's execution satisfies control-flow integrity (CFI) if it is confined to a control-flow plan determined solely by user input and the environment description, which is equivalent to CaMeL safety under the trivial security policy S = ∅.
- Non-compositionality theoretical derivation: the authors' Claim argues that under mild expressiveness assumptions, any non-trivial system containing untrusted tool return values (with more than 1 agent), even if every individual agent satisfies CFI, the system as a whole necessarily violates system-level CFI.
Inter-agent communication protocol design
- Interface channel decoupling: traditional calls directly pass a single natural-language parameter query_agent_j(message: str); multi-CaMeL restructures the interface as query_agent_j(message: str, variables: dict[str, Any]).
- Parameter semantic division: the message parameter is a trusted natural-language instruction shown to the sub-agent PLLM; the variables parameter is an opaque dictionary not directly exposed to the sub-agent PLLM, used to pass data originating from tool calls.
- Runtime variable extraction tool: if a sub-agent needs to read opaque data passed in by the parent agent during execution, it must obtain it through a dedicated helper tool get_variable(variable_name: str).
Multi-CaMeL runtime interpreter
- Instruction channel integrity: the interpreter enforces that the message parameter in an agent call must not depend on any tool output, preventing untrusted data from flowing into the sub-agent PLLM's prompt.
- Cross-agent provenance preservation: when untrusted data is passed between agents via the variables parameter, the interpreter preserves its associated security capabilities and data provenance, so that non-trivial security policies can be supported in the future.
- Recursive construction of system-level control flow: after the root agent generates a control-flow plan, the interpreter expands each agent call at runtime into the corresponding sub-agent control-flow plan, ensuring that the entire system-level plan is fully determined by trusted input.
- Allowing branch steering rather than violating CFI: untrusted data may select among preset conditional branches (i.e., branch steering), but cannot introduce entirely new control-flow paths.
What experiments did the paper conduct?
Testing 5 models on MultiAgentDojo and AssetOpsBench, multi-CaMeL reduces ASR to 0.0% with modest utility cost.
Experimental setup
- Models under test: Claude Fable 5, GPT-5.5, GPT-4.1, Gemini 2.5 Pro, Gemini 2.5 Flash Lite (within each system, all agents use the same model for both PLLM and QLLM; motivation experiments in Section III-A and III-B use GPT-5.2).
- Evaluation datasets and benchmarks: AssetOpsBench (n = 112 industrial operations tasks after removing 29 impossible tasks; Appendix B reports results on all 141 tasks) and MultiAgentDojo (an extension of AgentDojo to a hierarchical multi-agent version, containing 4 task suites: Workspace, Banking, Slack, Travel, with a total of 97 benign tasks and 35 injection targets).
- Comparison baselines: No CaMeL (relying only on the model's built-in safety protections), Individual CaMeL (each agent deploys CaMeL independently but cross-agent communication has no additional restrictions), Multi-CaMeL (deploys the cross-agent isolation communication protocol and interpreter).
- Evaluation metrics: Attack success rate (ASR, confidence intervals use 95% Wilson score intervals) and benign task success rate (Benign task success rate / AssetOpsBench score, using 95% Wald intervals).
- Evaluation method: AssetOpsBench uses an LLM judge with privileged information for scoring; MultiAgentDojo inherits AgentDojo's automated environment state checks and injection goal verification.
- Sample size and configuration: MultiAgentDojo evaluates n = 949 injection task instances per model and configuration; AssetOpsBench evaluates 112 tasks; prompts are supplemented with complete return schemas for all tools.
Main results
Swipe horizontally to read the table
Model No CaMeL ASR (%) Individual CaMeL ASR (%) Multi-CaMeL ASR (%) Claude Fable 5 1.5 [0.9, 2.5] 0.0 [0.0, 0.4] 0.0 [0.0, 0.4] GPT-5.5 0.0 [0.0, 0.4] 0.0 [0.0, 0.4] 0.0 [0.0, 0.4] GPT-4.1 36.1 [33.1, 39.3] 0.5 [0.2, 1.2] 0.0 [0.0, 0.4] Gemini 2.5 Pro 24.6 [21.9, 27.4] 0.4 [0.2, 1.1] 0.0 [0.0, 0.4] Gemini 2.5 Flash Lite 2.1 [1.4, 3.2] 0.0 [0.0, 0.4] 0.0 [0.0, 0.4] Average 12.9 0.2 0.0 (From Table III, brackets show 95% Wilson score confidence intervals, n = 949)
- Complete elimination of residual attacks: The authors state that multi-CaMeL reduces ASR to 0.0% for all tested models, eliminating the attack success cases left by single-agent CaMeL due to boundary sanitization (Table III).
- Single-agent CaMeL still has vulnerabilities: Single-agent CaMeL reduces the average ASR from 12.9% to 0.2%, but attack successes remain on GPT-4.1 (0.5%) and Gemini 2.5 Pro (0.4%); the authors confirm that all residual successful attacks stem from boundary sanitization (Table III).
- GPT-5.5 baseline performance: GPT-5.5 also has an ASR of 0.0% without CaMeL, but the authors note that this cannot be interpreted as general immunity to indirect injection, and more likely reflects the limited diversity of attacks in the benchmark (Table III note).
Benign utility cost evaluation
- AssetOpsBench industrial operations tasks: Relative to the no-CaMeL baseline, single-agent CaMeL reduces the average by 21.6 percentage points, and by 13.4 percentage points on the two strongest models (Claude Fable 5 and GPT-5.5); multi-CaMeL only further reduces by 3.2 percentage points compared to single-agent CaMeL, and by only 0.85 percentage points on the two strongest models (Figure 5, Table IV).
- MultiAgentDojo task success rate: After excluding refusal samples, Claude Fable 5 achieves a success rate of 84.4% ± 10.6% under multi-CaMeL (same as single-agent CaMeL, down 6.7 percentage points from 91.1% without defense); GPT-5.5's success rate drops from 86.6% without defense to 66.0% under multi-CaMeL (down 20.6 percentage points); weaker models show larger drops (GPT-4.1 down 53.7 percentage points, Gemini 2.5 Pro down 49.5 percentage points) (Figure 6, Table V).
- Trend of smaller cost with stronger capability: The authors state that stronger models adapt better to the protocol's constraints of pre-planning and variable separation, thus experiencing smaller overall utility drops (Figure 5, Figure 6).
Benchmark fidelity and motivation validation experiments
- MultiAgentDojo difficulty fidelity: Without CaMeL and without injection, the average benign success rate of the 5 models on MultiAgentDojo is 71.7%, slightly higher than the original single-agent AgentDojo's 71.0% (average increase of 0.7 percentage points); all models' confidence intervals overlap, which the authors state indicates that partitioning tools into multiple agents does not distort benchmark difficulty (Table II).
- OMNI-Leak scenario single-agent defense test: Tested 5 times in the OMNI-Leak orchestration topology (temperature=1, GPT-5.2), single-agent CaMeL successfully defended against attacks targeting a single agent's control flow, achieving 0% ASR and 100% benign query accuracy (Section III-B).
Other ablations and analyses
- AssetOpsBench full task evaluation: On all 141 tasks without removing the 29 impossible tasks, the utility drops of multi-CaMeL relative to no CaMeL are: Claude Fable 5 (-27.0), GPT-5.5 (-14.2), GPT-4.1 (-34.8), Gemini 2.5 Pro (-25.6), Gemini 2.5 Flash Lite (-36.2) (Figure 8).
- Claude Fable 5 benign refusal statistics: Among the 97 benign tasks in MultiAgentDojo, Claude Fable 5 refused 52 tasks (refusal rate 53.6%); the authors speculate that it conservatively associates benchmark environment features with adversarial intent (Section V-B1).
Negative results and failure modes
- Utility failure due to control-flow pre-commitment: CaMeL requires generating the control-flow program before observing runtime data; when the subsequent actions of some tasks depend on the specific results of earlier tool returns, the agent cannot dynamically add calls (Section V-C2).
- Unvalidated scope substitution: In AssetOpsBench, when a sub-agent returns data from neighboring assets or time ranges due to lack of data, the parent agent continues execution because the pre-generated program lacks validation, leading to task failure (Section V-C2).
What are some points that can be further explored?
Limitations include being limited to tree-like topologies and inheriting the implicit dependency flaws of the CaMeL interpreter; future work could extend to non-tree architectures and establish stronger information flow guarantees.
Limitations and future directions noted by the authors
- Topology limited to tree-like hierarchies: The current analysis only covers tree-like hierarchical structures (each non-root agent has a unique parent and all communication is parent-child); the authors note that if agents have multiple parents, issues of concurrent calls and whether session history state is preserved need to be addressed (Section VI-A).
- Extension to more general multi-agent architectures: The authors state that formally extending multi-CaMeL principles to directed acyclic graphs (DAGs), cyclic graphs, shared-memory systems, and peer-to-peer (P2P) asynchronous communication architectures, and proving their system-level CFI, is important future work (Section VI-A).
- Theoretical connection to stronger information flow security guarantees (TIPNI): multi-CaMeL allows branch steering of untrusted data among existing branches, so it may violate the termination-insensitive probabilistic non-interference (TIPNI) proposed by Garby et al.; formally clarifying the strength relationship between CFI and TIPNI requires future research (Section VI-B).
- Interpreter lacks tracking of implicit control-flow dependencies: multi-CaMeL inherits the implementation flaws of the CaMeL interpreter; it cannot soundly track implicit dependencies such as assignments in unexecuted branches, which may cause variables to be mislabeled as trusted; soundly tracking such dependencies is an important improvement direction (Section VI-B1).
- Limitation guarantees under stronger communication mechanisms: As agents become more strategic and communication channels become more complex, traditional techniques such as covert channel elimination and capacity reduction may no longer be sufficient; establishing appropriate confinement guarantees for multi-CaMeL is a future direction (Section VI-B2).
Experimental coverage
- Model scope: The main experiments evaluated 5 large language models (Claude Fable 5, GPT-5.5, GPT-4.1, Gemini 2.5 Pro, Gemini 2.5 Flash Lite), and motivation experiments tested GPT-5.2.
- Evaluation environments and task sets: The evaluation covered AssetOpsBench (112 completable tasks and the full 141 tasks) and MultiAgentDojo built on AgentDojo (4 suites with 97 benign tasks and 35 injection targets, with 949 injection tests per configuration).
- Security policy configuration: All experiments were configured and evaluated under a trivial security policy (S = ∅, i.e., no non-trivial policies); the paper does not conduct quantitative experiments with non-trivial security policies.
- Retry mechanism configuration: The current multi-CaMeL implementation does not configure an external retry loop for execution failures.
- Tool description mode: The experiments uniformly supplemented tool descriptions with manually written return schemas; the paper does not report quantitative baselines without such supplementation.
Summarize the main content of the paper
The paper addresses the boundary sanitization problem where single-agent defenses do not compose in multi-agent systems, and proposes the multi-CaMeL protocol that completely blocks injection attacks on MultiAgentDojo.
- Paper positioning: This is a study on the security and defense protocols of hierarchical multi-agent systems under indirect prompt injection threats.
- Core problem: Existing single-agent system-level defenses (such as CaMeL) cannot automatically compose in multi-agent interactions; untrusted data obtained by upstream agents, after crossing boundaries, is treated as trusted input by downstream agents' planning models, causing "boundary laundering" and hijacking system control flow.
- Defense method: Proposes the multi-CaMeL communication protocol and extended interpreter, forcibly decoupling cross-agent calls into a trusted instruction channel (message) and an opaque data channel (variables), maintaining instruction channel integrity and data provenance at runtime.
- Core experimental results:
- On MultiAgentDojo, multi-CaMeL reduced the average attack success rate of 5 models from 12.9% without defense and 0.2% with single-agent CaMeL to 0.0%, eliminating residual attacks (Table III).
- On benign utility, multi-CaMeL lost on average only 3.2 percentage points more than single-agent CaMeL on AssetOpsBench, with an additional loss of only 0.85 percentage points on Claude Fable 5 and GPT-5.5 (Figure 5).
- Utility loss shows a narrowing trend as model capability increases, which the authors say suggests stronger models adapt better to the constraints of predefined control flow and variable decoupling (Figure 5, Figure 6).
- Authors' conclusion and implications: The authors state that "crossing agent boundaries must not implicitly raise the trustworthiness of information" is the core principle of multi-agent security; simply protecting each individual agent is not sufficient to ensure system security, and explicit separation of instructions and data must be enforced at system interaction interfaces.