Swarm Shepherd: Securing Multi-Agent Ecosystems Against Persistent Latent Compromise
Wuyang Zhang, Shichao Pei
Key points
From the paper's conclusion- We formulate defense as inference under partial observability and propose Swarm Shepherd, a system-level defense framework centered on an inference filter for early warning, paired with a backward trace-back module for entry attribution.
Abstract
Agentic ecosystems are emerging as a new platform layer in which agents maintain persistent memory, retrieve from shared knowledge bases, execute through tool interfaces, and coordinate through shared states. These capabilities create a security problem that per-turn defenses miss: compromise can accumulate across sessions, agents, and system layers before visible failure. We define this threat as Agentic Sleeper, a system-level adversary that first behaves legitimately, gains routing trust, and later activates across memory, agent logic, and infrastructure. We formulate defense as inference under partial observability and propose Swarm Shepherd, a system-level defense framework centered on an inference filter for early warning, paired with a backward trace-back module for entry attribution. Our analysis yields a two-scale deployment rule that balances longer event histories against broader agent coverage. Across LangGraph, CrewAI, and AutoGen, Agentic Sleeper drift begins 2.7--8.9$\times$ faster than natural baselines, propagates across agents on most topologies, and evades per-turn and stateful defenses above 80\%. Swarm Shepherd warns at least three sessions before visible degradation (2.6 sessions when failure is scored by the benchmark's own task grader), while trace-back reaches 0.69 top-1 accuracy and 0.72 macro-F1 over 24 variants. The two-scale deployment rule is empirically confirmed, and in live end-to-end runs on LangGraph and AutoGen the posterior-guided defense stack drives cross-agent propagation below the self-sustaining regime, which removing only the visibly compromised agent does not achieve.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Speculative Safety Honeypot: Toward Proactive Defense Against Multi-turn Agent AttacksarXiv · 2026
- Beyond Single-Model Injection: A Threat Model and Defense Architecture for Prompt Injection in Multi-Agent SystemsarXiv · 2026
- ORBIT: A Framework for Multi-Agent Safety and Security EvaluationsarXiv · 2026
- Securing LLM-based agents against cyberattacks: a comprehensive survey on attack techniques and defense strategiesJournal of Computer Virology and Hacking Techniques · 2026
- Agentic AI Security: Threats, Defenses, Evaluation, and Open ChallengesIEEE Access · 2026
- Trust-Gated Capability Control: Breaking the Trust-Vulnerability Paradox in Multi-Agent LLM SystemsarXiv · 2026