TL;DR: AI worms spread when an agent can read untrusted content, reproduce instructions, and pass them into another system, according to Verno Labs. That makes outbound write controls, hop limits and persisted state review the practical choke points for operators.
Editorial analysis by NHI Mgmt Group, based on content published by Verno Labs: “How AI worms spread, and how to stop one”.
Key questions
Q: Why do persistent agent states make prompt injection harder to contain?
A: Persistent agent state makes prompt injection harder to contain because malicious instructions can be stored in memory, skills, settings, or task context and reused later, beyond the original prompt.
Q: How can organisations stop an agent from passing on malicious instructions?
A: Organisations stop an agent from passing on malicious instructions by constraining where the agent can write, filtering outbound content, and separating user input from agent-generated instructions.
Q: How do AI worms spread between agent workflows?
A: AI worms spread when an agent reads attacker-controlled content, reproduces the hidden instruction in its own output, and writes that output somewhere another system can read.
Practitioner guidance
- Restrict agent write destinations Allow agents to write only to a short, explicit list of workspaces, queues and repositories that are already governed for downstream consumption.
- Review persisted agent state Check memory, skills, configuration files and repo-based instructions for hidden or inherited prompt text before restart or reuse.
- Enforce human review on outbound writes Require approval for any agent output that will be sent externally or stored where another model can ingest it, including background jobs.
Bottom line: AI worms exploit the ordinary flow of agent work, so the real weakness is uncontrolled write paths rather than a single poisoned prompt.
Glossary terms: Prompt Injection (Agentic), Agent Hop, Retrieval Store, Outbound Write Control
Explore further
View Full Forum → | NHI Foundation Course → | Our Services → | Read the full analysis →
AI worms are an identity and write-path problem before they are a content-safety problem. Once an agent can both consume untrusted material and write to a place another model reads, the control boundary has already failed. That is why content filters alone do not solve the class. The practical question is which identities, workspaces and repositories are allowed to propagate agent output at all.
A few things that frame the scale:
- 70% of organisations grant AI systems more access than they would give a human employee performing the exact same job, according to the 2026 Infrastructure Identity Survey.
- 69% of security leaders agree identity management must fundamentally shift to address agentic AI systems, according to the 2026 Infrastructure Identity Survey.
A question worth separating out:
Q: What is the difference between prompt injection and an AI worm?
A: Prompt injection is an attack that manipulates an agent at runtime to follow hostile instructions, while an AI worm is malicious content that copies itself from one system or agent to another. The key difference is persistence and propagation: injection aims to steer one execution, whereas a worm is designed for surviving in output and spreading onward.
👉 Read our full editorial: AI worms spread through agent workflows when writes stay open