TL;DR
This paper introduces a fundamentally new cybersecurity threat: an autonomous, self-replicating AI computer worm that generates tailored attack strategies at runtime using a locally hosted, open-weight Large Language Model (LLM). Unlike traditional malware with fixed exploit code, this worm adapts to heterogeneous targets (Linux, Windows, IoT) and scales its reasoning capabilities by parasitically deploying copies of its LLM on compromised GPU nodes. Running entirely on local hardware, it completely bypasses centralized API safety controls, creating a highly destabilizing economic asymmetry where the attacker's marginal cost per infection drops to zero.
What Problem Does This Paper Address?
Traditional computer worms, like WannaCry or NotPetya, operate on encoded logic—pre-compiled exploit chains targeting a fixed set of vulnerabilities. Once defenders patch those specific flaws, the worm's spread is halted. This paper addresses a critical question: Can generative AI be coupled with self-replication to create an autonomous adversary capable of generating attack logic on the fly?
If possible, this collapses a historical trade-off in cybersecurity economics. Previously, highly tailored attacks required expensive, manual human engineering, while automated worms were highly scalable but easily blocked by patches. An AI-driven worm could achieve both massive scale and target-specific adaptation, fundamentally altering the defensive landscape.
Methods
The authors constructed a proof-of-concept worm driven by an off-the-shelf, quantized open-weight LLM running on a single local GPU. To overcome the typical limitations of smaller models (brittleness, short context windows, poor instruction-following), they engineered a sophisticated agentic harness:
- Execution Phases: The attack lifecycle is split into 8 discrete phases (from network discovery to privilege escalation and replication) to keep the model's focus narrow.
- Reasoning Graph: A directed graph of specialized LLM nodes (Plan, Judge, Action, Summary, Progress) ensures that each LLM call handles only a single, well-defined analytical task.
- Hierarchical Memory: A three-tiered memory system (General, Host, and Vulnerability) prevents context pollution.
- Swarm Orchestration: Multiple active replicas coordinate via a distributed service to share harvested credentials, avoid duplicate work, and forward reasoning queries from low-compute IoT devices to compromised GPU nodes.
Datasets
To safely evaluate the worm, the authors built FakeCorp, a custom, isolated virtual network environment consisting of 33 heterogeneous virtual machines spanning various flavors of Linux (Ubuntu, Debian, Alpine, CentOS) and Windows Server.
The hosts were seeded with real-world vulnerabilities drawn from authoritative threat taxonomies like the CISA Known Exploited Vulnerabilities (KEV) catalog, the OWASP Top 10 (2025), and the MITRE ATT&CK framework. Crucially, the environment included three "one-day" vulnerabilities disclosed in 2026—well after the LLM's training cutoff date—to test the worm's ability to ingest and operationalize new public advisories at runtime.
Key Insights and Ideas
- Scaffolding Beats Model Size: The most surprising insight is that raw model capability is not the primary bottleneck for cyber-offense. A highly structured agentic harness can elevate a small, single-GPU open-weight model to execute complex, multi-step network attacks that were previously thought to require massive frontier models.
- The Irrelevance of Centralized Guardrails: Because the worm relies entirely on local open weights, cloud-vendor API monitoring, rate-limiting, and service refusals are completely bypassed.
- Dynamic Knowledge Absorption: The worm doesn't just rely on its training data; it can read a newly published vulnerability advisory at runtime and synthesize a working exploit zero-shot.
- Compute as a Parasitic Resource: By treating compromised GPUs as infrastructure to host its own reasoning nodes, the worm achieves self-sustaining, decentralized execution with no single point of failure.
Key Results
In 15 independent, fully autonomous 7-day experimental runs on the FakeCorp network:
- The worm successfully exploited an average of 73.8% of the network and replicated to 61.8% of it, reaching up to 7 generations of self-replication.
- It achieved an 82% success rate in vulnerability detection across both specific CVEs (Common Vulnerabilities and Exposures) and abstract CWEs (Common Weakness Enumerations).
- While individual exploit execution was fragile (a 44% success rate due to payload syntax errors), the swarm's parallel, independent reasoning trajectories compensated for this per-attempt fragility.
- The worm successfully weaponized post-cutoff 2026 vulnerabilities with a 61.2% success rate across 67 attempts.
- Full GPU-tier replication (staging the worm, configuring the model-serving stack, and launching a local inference API on a newly compromised GPU) succeeded in 68.8% of attempts.
Limitations and Future Work
The authors emphasize that individual exploit attempts remain mechanically fragile due to the code-generation ceiling of current single-GPU models, which frequently produce malformed syntax. Furthermore, the FakeCorp network was artificially dense with vulnerabilities and lacked active defensive measures like Endpoint Detection and Response (EDR) software or firewalls.
Future work must focus on developing defensive countermeasures, such as using AI agents defensively to automatically discover and patch vulnerabilities before adversaries do. The authors also call for urgent community-wide standards for offensive AI research, including independent peer reviews of containment protocols and shared frameworks for responsible redaction.
Summary updated