Adaptive LLM Worm Uses Local Models to Craft Per-Target Exploits in Heterogeneous Networks

Researchers from the University of Toronto have published a preprint describing an adaptive computer worm driven by LLM agents that spreads across corporate networks by generating individualized attack strategies for each compromised system. Unlike traditional worms such as WannaCry that rely on fixed exploits, this worm maintains its own infrastructure by running local LLMs on infected GPU-equipped machines to analyze vulnerabilities and synthesize new attack vectors in real time. The system was tested in an isolated FakeCorp environment containing Linux, Windows, and IoT devices, successfully leveraging known real-world vulnerabilities to propagate over 48 hours and seven-day autonomous runs. Two core components power the worm: a GPU-hosted LLM component and a hierarchical agent framework with memory, reasoning graph, and tool modules that manage reconnaissance, exploitation, and payload deployment. The authors note that the approach creates an economic asymmetry favoring attackers because the worm parasitizes victim compute resources, eliminating the need for external C2 or commercial LLM services. They warn that adding adaptive reasoning to historical worms such as SQL Slammer, Conficker, or Stuxnet would significantly increase their resilience while remaining slower and noisier than classic self-propagating malware.

HabrTranslated from Russian

Read at source

Researchers from the University of Toronto have released a preprint detailing an adaptive computer worm controlled by LLM agents that spreads through heterogeneous corporate networks by generating individualized exploit strategies for each target system.

Traditional worms such as WannaCry relied on pre-known vulnerabilities whose spread could be halted by patching. In contrast, the new worm uses local large language models running on compromised GPU resources to reason about each new host, select appropriate vulnerabilities from a known list, and synthesize tailored attack sequences. Because the worm adapts its behavior based on observations, external defenders cannot reliably predict which vulnerabilities it will exploit next.

The prototype was evaluated inside an isolated FakeCorp test network comprising Linux, Windows, and IoT devices. The worm maintained its own distributed infrastructure by executing LLMs on infected machines, using their combined compute power to search for vulnerabilities and craft targeted attacks without any external command-and-control servers.

Agent Architecture

The system consists of two primary components:

  • GPU LLM component running on compromised graphics hardware to perform inference and attack planning.
  • Agent framework organized into three modules: a core agent for recursive reasoning, a hierarchical memory module that tracks lifecycle phase, current target, and hypothesis, and a tools module that handles console sessions, file transfers, and payload deployment.

A reasoning graph guides the agent through planning, critique, action execution, result summarization, and hypothesis refinement, updating structured memory at each step.

In the experiments the worm achieved measurable success rates across multiple vulnerability categories while operating autonomously for up to seven days. The researchers deliberately withheld implementation details to limit misuse.

The authors conclude that self-sustaining LLM-based cyber threats are now technically feasible and urge the community to prepare for autonomous AI adversaries capable of real-time attack synthesis.

Meridian digestThe week's most consequential security stories, distilled into one briefing.See the digest

More in AI Security

Logical Argument Claims Full Alignment of Superintelligent AGI Is Fundamentally Impossible
Claude Account Bans Linked to IP Reputation, Device Environment and Payment Channels, But No Confirmed Formula
Local LLMs in AppSec: What Open Tools and Models Can Handle in Application Security