AI Agents Can Infect Each Other Through Persistent Memory Files
Researchers at Anthropic and Switzerland's EPFL have demonstrated that self-propagating payloads — the paper calls them "mind viruses" — can spread between AI agents through the persistent files those agents use to store memory between sessions, according to The Hacker News.
Autonomous AI agents typically keep two files that survive a context reset: SOUL.md, which holds the agent's core instructions and goals, and MEMORY.md, which stores session notes and accumulated information. Both are injected into the agent's working memory at the start of every new session. Payloads written into SOUL.md accounted for 88% of propagation attempts and successfully infected the next agent 55% of the time.
No successful real-world spread has been confirmed. Crucially, adding a single-paragraph warning to an agent's system prompt reduced propagation to near zero across all payloads tested.
What to do: If you deploy or manage AI agents, add an explicit anti-propagation instruction to each agent's system prompt now.
Sources

