# Swarm Shepherd: Securing Multi-Agent Ecosystems Against Persistent Latent Compromise

*Wuyang Zhang, Shichao Pei*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/153934) · [Open on the map](../papers.html#p153934)

Category: [AI Safety, Security & Alignment](../pcat/16.md) › [Multi-Agent Security Evaluation](../pgroup/474.md) · Type: new method · Keywords: multi-agent security, latent compromise detection, inference under partial observability, trace-back attribution, deployment rule for early warning

Areas: [AI Agents](../areas/agents.md) › Agent Robustness › Agent Security Vulnerabilities; [Safety & Security](../areas/safety.md) › Language Model Security › LLM Agent Security

## Summary
Swarm Shepherd is a system-level defense framework that detects and attributes Agentic Sleeper compromises in multi-agent ecosystems by using an inference filter for early warning and a backward trace-back module for entry attribution.

## Explained to a 5-year-old
In a group of smart helpers, a bad guy can hide and wait. He can move from one helper to another without being noticed. We built a watcher that looks at what the helpers do and notices something is wrong before they break. It also finds where the problem started. This helps keep the helpers safe.

## Explained to a 5-year-old, longer
Imagine a team of robots that talk to each other and share memories. They can be used to help people with many tasks. Sometimes a bad robot can sneak in and stay quiet for a while. It can move from one robot to another, making the whole team act badly without anyone noticing. This hidden danger is called an Agentic Sleeper. Regular security checks only look at each action, so they miss the slow spread. We need a way to watch the whole team and catch the problem early. Our system watches the robots' behavior and looks for strange patterns. It also goes backwards to find where the bad robot first entered. We use a rule that decides how many past actions to remember and how many robots to watch. This helps us warn about trouble at least three steps before anything breaks. The system can find the source with about 70% accuracy and also scores well on other measures. By using the right amount of history and coverage, we can stop the bad robot from spreading further. This keeps the team of helpers safe and trustworthy.

## For a technical reader
The paper identifies a stealthy adversary in multi-agent platforms that remains dormant before activating across agents and system layers. Existing per-turn defenses cannot detect this gradual compromise. The authors propose a defense that treats detection as an inference problem under partial observability, using an early-warning filter and a backward trace-back module to locate the compromise source. They derive a two-scale deployment rule that balances historical depth and agent coverage, and they validate the approach on three popular agent frameworks. Results show the defense warns several sessions before failure and achieves high accuracy in attributing the attack.

## Problem
Agents in ecosystems maintain persistent memory and shared states, which can be exploited by a latent adversary that remains dormant before activating, leading to security breaches that are not caught by per-turn defenses.

## Method
The approach formulates defense as inference under partial observability, employing an inference filter for early warning and a backward trace-back module for entry attribution, and uses a two-scale deployment rule to balance event history length and agent coverage.

## Results
The approach warns at least three sessions before visible degradation and achieves 0.69 top-1 accuracy and 0.72 macro-F1 on trace-back across 24 variants, while containment reduces cross-agent propagation below the self-sustaining regime.

## Contributions
The paper defines the Agentic Sleeper threat, formulates defense as inference under partial observability, and introduces a two-scale deployment rule for early warning and attribution in multi-agent ecosystems.

## Research questions this paper is counted under

- [How can we detect and defend against delayed adversarial attacks that exploit persistent memory in agents?](../q/808.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/153934)
