arXiv:2611.24839cs.MANov 2026

Manuscript Offprint

arXiv:2611.24839

Kaer: Security-Aware Replanning for Multi-Agent Systems

Tushin Mallick, Evan Rose, Matthew Laws, Alina Oprea, Cristina Nita-Rotaru

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

One popular architecture for multi-agent systems (MAS) relies on an orchestrator that generates an initial plan, coordinates its execution, and dynamically revises the plan based on agent feedback when tasks cannot be fully specified in advance. This dynamic replanning introduces a critical vulnerability: malicious agents can embed instructions within their feedback to hijack the replanning process. Existing defenses focus exclusively on per-tool access control or static, pre-execution policy enforcement, leaving the replanning phase unsecured.

We introduce Kaer, a multi-agent framework featuring security-aware replanning. Kaer shields the planner from untrusted agent feedback by conveying diagnostics to the replanning procedure strictly through abstract templates. Plan revisions are restricted to a set of deterministic repair operators, and all modified plans must satisfy preset policies. We create Cintra, a benchmark of simulated user tasks requiring replanning paired with adversarial objectives targeting the replanning phase. Using Cintra, we evaluate both task completion rates and system vulnerability to replanning exploits by malicious agents. Evaluating Kaer on Cintra against Magentic-One (an undefended MAS) and ControlValve (the state-of-the-art defense) demonstrates that Kaer achieves higher robustness than both systems while maintaining comparable utility to ControlValve. Although abstract failure templates slightly constrain utility on select tasks, Kaer enables MAS to perform secure, dynamic plan revisions without exposing the orchestrator to untrusted agent feedback.

I Introduction

A widely adopted architecture for LLM-based multi-agent systems relies on a centralized orchestrator that coordinates the execution of user tasks [1, 2, 3, 4]. Given a user task, the orchestrator generates a plan that decomposes the task into subtasks, assigns them to specialized agents with access to tools, and coordinates their execution. The orchestrator maintains control over the overall workflow, while individual agents execute their assigned subtasks and return results.

However, many tasks cannot be fully planned in advance because the information required to determine subsequent steps becomes available only during execution. Furthermore, unexpected outcomes, execution failures, or changes in the environment may invalidate parts of the original plan. Thus, orchestrator-based systems increasingly support dynamic replanning, in which the orchestrator revises the initial execution plan based on feedback from agents [1, 5, 6, 7, 8]. Replanning improves task completion by allowing the system to incorporate intermediate results, recover from execution failures, and adjust its strategy when the original plan becomes ineffective or infeasible.

While replanning improves the flexibility of multi-agent systems, it also introduces new security risks. Malicious agents can exploit the orchestrator’s reliance on agent feedback to induce unauthorized changes to the execution plan, such as introducing new subtasks or redirecting execution toward attacker-controlled objectives. This form of indirect manipulation, referred to as control hijacking [9], allows an adversary to influence the overall execution without directly compromising the orchestrator.

Control hijacking has been previously studied by ControlValve [9], which enforces security policies to constrain agent interactions. For each task, ControlValve constructs a control-flow policy specifying permitted agent executions and communication paths, augmented with LLM-generated rules for input validation, data provenance, and contextual appropriateness. When a policy check fails, ControlValve replans by selecting an alternative agent within the permitted control flow. Thus, replanning is restricted to the initially defined policy, limiting the system’s ability to incorporate agents or actions not anticipated during initial planning.

ControlValve could in principle be adapted to such replanning in two ways, but both have serious limitations. The first is to anticipate every scenario that may require replanning, such as every agent that may be needed or may fail, and to create a policy that accommodates all of them. In practice, this loosens the control-flow constraints and yields a permissive policy, which removes the reason for having a control-flow policy. The second is to regenerate the policy from scratch at every step that requires replanning, conditioned on the outputs that the agents have produced so far. This approach reduces to a ReAct-style agent, in which the next action is chosen from the accumulated and potentially untrusted context at each step. It therefore inherits the vulnerabilities to indirect prompt injection that have been demonstrated for such agents [10, 11]. Because agent outputs directly determine the policy that governs subsequent execution, an adversarial output can rewrite the policy itself, and the policy no longer provides an enforceable guarantee.

Our work. In this work we address the problem of how to secure centralized multi-agent systems requiring task replanning in the face of malicious agents. We design Kaer, a secure replanning system in which agents can inform replanning without dictating it, while revised plans preserve the security properties of the initial plan. The key insight is that the planner is shielded from untrusted agent feedback by allowing agents to convey diagnostics to the replanning procedure strictly through abstract templates. Plan revisions are restricted to a set of deterministic repair operators, and all modified plans must satisfy predefined policies. In addition, we extend Kaer with an LLM-based check to verify agent outputs at each step and trigger replanning even when agents maliciously claim successful execution. This extension provides increased robustness and higher utility on selected models.

Evaluation and results. Because of the lack of benchmarks designed for replanning, we create Cintra, a benchmark of simulated user tasks requiring replanning paired with adversarial objectives targeting the replanning phase. Using Cintra, we evaluate both task completion rates and system vulnerability to replanning exploits by malicious agents against two baselines: Magentic-One (an undefended MAS) and ControlValve (the state-of-the-art defense). Our experiments show that a multi-agent system can replan securely without locking its plan prior to execution or suffering a significant drop in utility. On gpt-5.6-sol and gpt-5.6-terra, Kaer achieves a security score (the fraction of blocked attack trials) of 92.3% and 88.0%, compared to 69.8% and 80.4% for ControlValve and 35.0% and 47.8% for Magentic-One. Kaer also outperforms ControlValve in benign task completion (64.3% and 65.7% vs 54.3% and 34.3%). Attacks mostly succeed in Kaer via unverified agent outputs; our LLM-based output check raises Kaer’s defense rate from 86.6% and 87.0% to 96.8% on both models.

We summarize our contributions:

  • We design Kaer, a secure replanning framework in which every repaired plan preserves the security invariants of the initial plan. The planner accepts agent feedback exclusively via abstract templates, constructs plan repairs using deterministic operators, and enforces preset security policies on all revised plans.
  • We create Cintra, a benchmark comprising simulated user tasks that require execution-time replanning. It models agent unreliability, dynamic requirements, and incomplete data, featuring adversarial objectives that target system integrity, confidentiality, and availability through replanning vectors.
  • We provide a comprehensive evaluation of Kaer on Cintra across multiple LLMs, comparing it against Magentic-One and ControlValve. Kaer achieves superior security compared to both baselines and higher average task completion than ControlValve, while an LLM-based output check effectively neutralizes residual attacks operating outside the replanning loop.

References (53)