TL;DR
Multi-agent systems (MAS) powered by LLMs divide complex problems among specialized agents, but this architectural division creates unique safety vulnerabilities. This paper introduces SAFEAGENTS, a framework-agnostic evaluation suite, and DHARMA, a diagnostic metric that pinpoints exactly where in an agent pipeline security safeguards break down. The findings reveal that centralized MAS often perform worse than single agents because task decomposition fragments malicious context, blinding sub-agents to overall harmful intent.
What Problem Does This Paper Address?
While existing safety benchmarks focus heavily on single-agent (SA) systems, multi-agent architectures (e.g., LangGraph, Magentic-One, OpenAI Agents) divide tasks across planners, orchestrators, and tool-executing sub-agents.
Standard evaluation metrics like Attack Success Rate (ASR) or Refusal Rate (RR) only look at aggregate binary outcomes. They cannot explain where or why a system failed: Did the planner detect the attack and get ignored? Did the sub-agent refuse, but the orchestrator rerouted the task? Or was malicious intent hidden because the sub-agent only saw isolated, atomic steps? The authors tackle this gap by dissecting the architectural weak links that emerge specifically from multi-agent coordination.
Methods
The authors introduce two core contributions:
- SAFEAGENTS Framework: An extensible, modular abstraction layer (providing unified
Agent,Tool,Team, andTaskabstractions) that runs multi-agent configurations consistently across diverse software backends (browsers, Python sandboxes, terminal environments). It supports varying design primitives: - Sub-agent Autonomy: High-level goals vs. micro-level atomic tool calls.
- Planning Styles: Stratified planning (pre-generating upfront fact sheets and plans) vs. combined/reactive planning.
- Context Organization: How prompts, plans, and history are arranged in agent context windows.
- DHARMA (Design-aware Harm Assessment Metric for Agents): A hierarchical diagnostic classification tree evaluated via an LLM judge (
GPT-4.1): - Planner-Level:
Planner-Stop(planner refuses and halts execution),Planner-Ignored(planner refuses/warns, but pipeline continues), andPlanner-Failed(planner fails to form a plan, yet execution proceeds). - Sub-Agent-Level:
Sub-Agent-Stop(sub-agents refuse harmful tasks, halting execution) andSub-Agent-Ignored(sub-agents refuse/warn, but orchestrator overrides or reroutes). - System Outcomes:
Unmitigated Execution(no component flags the harm) andError (E)(technical failures).
Datasets
The authors evaluate systems across four distinct adversarial prompting benchmarks:
- RedCode (exec): Tests code-generation agents on malicious Python/Bash command execution.
- SafeArena: Evaluates autonomous web agents interacting with offline replicas of real-world environments (Reddit, GitLab, shopping sites).
- AgentHarm: Probes jailbreak-style direct adversarial requests across multiple illicit domains.
- Agent Security Bench (ASB): Evaluates indirect prompt injection attacks designed to override original user instructions.
Key Insights and Ideas
- Centralized MAS can be less safe than single agents: Splitting tasks does not automatically improve security. On several benchmarks, centralized MAS achieved higher critical risk (ARIA-4) than single-agent baselines because efficient execution and planning machinery carried out harmful goals without hesitation.
- Context fragmentation blinds sub-agents: When orchestrators grant low autonomy and delegate only atomic instructions (e.g., Magentic instructing a WebSurfer to "click this button" or "type this text"), sub-agents lack the global context needed to realize they are assembling a harmful payload.
- Inadequate fallback logic causes fail-open behavior: In architectures like Magentic-One, if the planner refuses to generate a plan for a harmful prompt, the orchestrator lacks a halt protocol and instead blindly routes the raw prompt to downstream execution agents.
- SLMs exhibit inverted failure patterns compared to frontier LLMs: When evaluated on a smaller model (Qwen3-30B), planning-level refusals dropped sharply compared to GPT-4o, but sub-agent execution defenses compensated by refusing actions during execution steps.
Key Results
- Elevated Attack Success in MAS: On RedCode, the critical risk rate (ARIA-4) jumped from 62.5% in a single-agent baseline to 83.70% in Centralized Magentic. On ASB, ARIA-4 rose from 81.5% (single agent) to 92.52% (Centralized Magentic).
- Decentralized systems excel in context-heavy environments: In SafeArena, decentralized setups achieved substantially lower attack success (e.g., Swarm at 15.85% ARIA-4 and Decentralized LangGraph at 17.6%) compared to single-agent (46.0%) and Centralized Magentic (33.6%), as peer agents retained full context to reject unsafe actions.
- DHARMA Diagnoses:
- In AgentHarm with GPT-4o, LangGraph halted primarily at the planner stage (78.74%
Planner-Stop), whereas Magentic had only 3.49%Planner-Stopand was saved instead by downstream execution (51.97%Sub-agent Stop). - For Qwen3-30B on AgentHarm,
Planner-Stopin LangGraph dropped to 42.52% (and 0% in Magentic), shifting defense burden almost entirely to sub-agents (81.89%Sub-agent Stopin Magentic).
Limitations and Future Work
- Reliance on LLM-as-a-Judge: DHARMA classifications rely on an automated LLM judge (
GPT-4.1), which may introduce subtle evaluation biases or misclassifications in deeply nested traces. - Limited Scope of Agent Roles: The evaluation focused primarily on standard orchestration patterns; emerging dynamic topologies (such as self-organizing agent graphs or multi-turn debate protocols) were not deeply benchmarked.
- Defense Exploration: While the paper successfully maps failure modes and weak links, designing and verifying concrete architectural guardrails (such as explicit hierarchical fail-closed protocols or taint-tracking across inter-agent communications) remains an open challenge for future work.
Summary updated