arXiv:2610.28397cs.CROct 2026

Manuscript Offprint

arXiv:2610.28397

MAS-Guard: Unified Guardrails from Individual Agents to Multi-Agent LLM Systems

Mohammad Kachuee, Phu Mon Htut, Sheng Li, Nikolaos Pappas, Miguel Ballesteros Martinez, Yassine Benajiba, Sujith Ravi, Dan Roth

Abstract

Agentic AI extends large language models (LLMs) from generating responses to planning and executing complex workflows, substantially expanding their utility while exposing applications to unsafe actions, information leakage, and adversarial manipulation. Multi-agent systems further expand these capabilities through specialization and collaboration, but distributed authority, heterogeneous roles, and opaque or potentially compromised participants make safeguarding even more challenging. Existing defenses address important individual threats but provide fragmented coverage across local execution, system-level interactions, and enforcement mechanisms. We introduce MAS-Guard, a unified framework that closes this gap for safeguarding single- and multi-agent AI applications containing both instrumentable and opaque agents. Within instrumentable agents, the proposed local Agent Guardrail (A-Guard) layer applies task-specific experts to assess agentic events. At the system level, developer-owned Agent Charters and a Control Plane combine deterministic structural checks of routes, agent capabilities, and message formats with semantic assessments of roles and message content. These complementary layers enable enforcement through a shared set of interventions: allow, reflection, confirmation, and block. Evaluated across six benchmarks covering diverse single- and multi-agent scenarios with three agent LLMs from different providers, MAS-Guard reduces the overall attack success rate by 71.5–86.3% relative to unguarded agents, while meeting the utility reference criterion on benign tasks.

1 Introduction

Large language model (LLM) agents extend text generation into action by retrieving data, invoking tools, and collaborating with other agents. Tool-selection errors or malicious instructions in retrieved content can trigger irreversible actions or disclose sensitive information. Recent studies report vulnerabilities such as indirect prompt injection through tool outputs, taking unsafe actions, and observation or memory poisoning (Ruan et al., 2024; Greshake et al., 2023; Zhan et al., 2024; Debenedetti et al., 2024; Zhang et al., 2025).

Multi-agent systems (MAS) built from LLM agents expand this attack surface. Inter-agent messages serve simultaneously as task data and control signals; consequently, a local failure can propagate through delegation, shared context, and downstream tool access. Attacks can spread injected instructions across agents, manipulate communication channels, or disclose sensitive information (Lee and Tiwari, 2024; He et al., 2025; Patil et al., 2025; An et al., 2026; Kavathekar et al., 2026; El Yagoubi et al., 2026; Naik et al., 2026).

Furthermore, real-world deployments may combine instrumentable agents, whose runtime allow guardrails to inspect and stop tool calls or messages, with opaque agents, such as third-party services that expose only a request-response interface. AI safety risks are especially difficult to govern when a deployment combines instrumentable agents, whose execution loops support local guardrail integration, with opaque agents, accessible only through their external interfaces: no individual agent observes the full context, yet unsafe behavior can emerge at the shared boundaries.

Existing defenses provide pieces of the solution. Prompt-isolation and injection-detection methods protect untrusted context; trajectory guard models audit agent behavior; tool-call guards intervene before execution; and policy or information-flow systems enforce structured restrictions (Hines et al., 2024; Chennabasappa et al., 2025; Mou et al., 2026; Liu et al., 2026b; Costa et al., 2025; Wang et al., 2026). However, the literature remains fragmented along three dimensions. Surface fragmentation yields defenses specialized for prompt injection, tool use, or another isolated failure mode. Scope

Figure

Figure 1: MAS-Guard combines system-level safeguards defined by Agent Charters and Control Plane configuration with agent-local A-Guard checks to protect interactions among users, agents, and tools.

fragmentation leaves most safeguards centered on one agent rather than the routes, roles, and trust boundaries of the composed application. Enforcement fragmentation makes it difficult to apply a consistent intervention policy across heterogeneous guardrails. Multi-agent defenses based on anomaly detection or permitted control-flow graphs address important subsets of these problems (Zhou et al., 2025; Jha et al., 2026), but do not by themselves provide a common guardrail layer spanning local agent execution and cross-agent boundaries.

We introduce Multi-Agent System Guardrail, MAS-Guard, a unified runtime guardrail framework for applications containing one or more LLM agents. MAS-Guard operates over observable events at user-agent, agent-tool, and agent-agent boundaries (Figure 1). Here, a single-agent deployment is the special case with one agent and no agent-agent edges. For instrumentable agents, a local Agent Guardrail (A-Guard) layer selects task-specific experts for agentic events such as user inputs, tool calls, tool results, and final responses (Figure 2). At the system level, lightweight, developer-specified Agent Charters specify each agent's intended role, input/output boundaries, and capabilities, while a Control Plane registers agents, governs communication routes, and configures deterministic and semantic safeguards. In MAS-Guard, all safeguards share a common intervention space—ALLOW, REFLECT, CONFIRM, and BLOCK, facilitating balanced choices between maintaining the user experience and enforcing agentic safety.

Our contributions are as follows:

• We introduce the Agent Guardrail (A-Guard), an extensible local defense layer for instrumentable agents. A-Guard selects event-specific experts, evaluates them, and exposes a shared verdict interface for intervention before content delivery or tool execution.

• We propose a unified framework for applications combining instrumentable and opaque agents under a trusted and instrumentable MAS orchestration layer. We devise developer-owned Agent Charters and a Control Plane that connect local safeguards to system-level policy through deterministic structural checks, semantic compliance assessments, and consistent enforcement options.

• To assess whether the framework’s benefits extend across agent models from different providers, we evaluate GPT-5.6-Terra (OpenAI, 2026c), Muse-Glimmer-30B (Meta, 2026), and Grok-4.3 (SpaceXAI, 2026) on six benchmarks, against eight defense methods and the unguarded baseline. The evaluation spans various prompt injection attack patterns, compromised multi-agent collaboration, privacy leakage, reasoning slowdown, and unsafe tool execution. MAS-Guard reduces the overall attack success rate by 71.5–86.3% while retaining benign task utility for each agent.

References (70)