Scientists build AI computer worm that learns and adapts as it spreads across networks

Reviewed byNidhi Govil

10 Sources

Share

Researchers at the University of Toronto have created a prototype AI computer worm that spreads autonomously across networks, learning and adapting its attacks with each infection. Built using freely available open-weight AI models, the worm infected half a test network in five days, exploiting known vulnerabilities across Windows, Linux, and IoT devices. Experts call it a wake-up call for cybersecurity preparedness.

AI Computer Worm Moves From Theory to Reality

Researchers at the University of Toronto have demonstrated that autonomous malware powered by artificial intelligence is no longer theoretical. The team created a prototype AI computer worm capable of spreading across networks without human intervention, adapting its attack strategies as it encounters different systems

1

. The findings, published in a preprint paper on arXiv, represent what experts describe as a wake-up call for the cybersecurity community

1

.

Source: Fortune

Source: Fortune

Unlike traditional worms that exploit specific vulnerabilities and can be stopped by patching those flaws, this AI-driven computer worm uses a recursive reasoning loop to detect and exploit diverse vulnerabilities as it propagates

3

. The research team, led by Nicolas Papernot, an associate professor in the Department of Electrical and Computer Engineering and Computer Science, conducted 15 independent experiments on an isolated 33-host network spanning Linux servers

2

.

Open-Weight AI Models Enable New Threat Vector

The researchers built their proof-of-concept using publicly available open-weight AI models that anyone can download from the internet, rather than proprietary systems from companies like Anthropic or OpenAI

1

. The AI-powered computer worm runs on a single Nvidia enterprise GPU, such as the A100 or RTX PRO 6000, which cost between $10,000 and $17,000

3

.

Source: Engadget

Source: Engadget

When the worm gains control of a GPU-equipped host, it deploys a local copy of the large language model, creating an independent reasoning node that serves downstream worm copies on devices without reasoning capability

3

. Each compromised machine becomes part of its infrastructure, providing reach for further attacks or computing resources

3

. This means hackers can now prioritize multiple targets simultaneously, as the cost drops to nearly zero once the worm launches

4

.

Cybersecurity Threat Demonstrates Unprecedented Adaptability

The prototype worm spread across a realistic network targeting Windows Server, various Linux distributions, and IoT devices

3

. In the experiments, the worm reached half the network in approximately five days, with an aggregate success exploit rate of 73.8%

2

3

. Each experimental run took about seven days to complete, totaling 2,520 hours across all 15 independent runs

2

.

David Lie, a professor at the University of Toronto familiar with the research, emphasizes that AI-enabled threat operations are especially dangerous because they don't attack a single weakness. Pre-AI worms could only follow certain instructions from their designer, but because this is AI powered, it can learn

1

. The worm gathers data as it moves through networked systems, siphoning passwords and uncovering more vulnerabilities that help it take over other machines

4

.

Exploit Vulnerabilities Without Human Intervention

The autonomous malware requires hundreds of LLM inference calls for reconnaissance, strategy formulation, and payload generation

3

. While this affords defenders a longer window for detection and response compared to traditional worms like WannaCry, which spread globally within hours in 2017, this window will compress as inference hardware and model efficiency improve

3

.

Source: Scientific American

Source: Scientific American

The simulated victim servers and computers were configured with one or more intentionally planted vulnerabilities disclosed months or years earlier

3

. The success rates for exploiting CVEs and CWEs were 52% and 55% respectively, demonstrating that small open-source models are capable, though exploitation remains tricky even with AI

2

.

Dual-Use Nature of AI Offers Hope for Defense

The researchers intentionally avoided turning their prototype into operationally deployable malware, refraining from adding evasive capabilities such as encryption, polymorphic code, persistence, forensic cleanup, stealthy traffic shaping, or log suppression

2

. The team withheld certain details, including the specific AI model used, to prevent bad actors from replicating their work

3

. They consulted with national security and defense bodies on how to properly disclose their findings

3

.

The research was conducted in an isolated virtual environment disconnected from the internet

1

2

. Lie notes that this technology is dual use—while AI might enable a worm to learn as it spreads, finding and attacking hidden vulnerabilities, AI can also help fix these shortcomings. "They're mirrors of each other," he says

1

.

Implications for Critical Infrastructure and Future Countermeasures

The findings raise serious concerns about AI-powered cyberattacks on critical infrastructure. With almost every aspect of modern life dependent on networked systems—drinking water and waste management systems, access to food and goods, energy, financial systems, communications, health care, education, transportation, and government—the risk is enormous

1

.

Papernot emphasizes that you have to have a perfectly secure system to defend against this, and we know that is not currently feasible

5

. As PC and smartphone manufacturers release more devices that can run AI models locally, the threat of AI-driven computer worms could easily grow, giving them a larger pool of devices to exploit

3

.

Security teams must prepare for handling autonomous threat operations by developing countermeasures as fast as possible

1

. The demonstration shows there's motivation to do this sooner rather than later, as understanding the risks positions the security community to develop the detection and defense capabilities needed against threats like this

1

3

.

Today's Top Stories

© 2026 TheOutpost.AI All rights reserved