Researchers Build ‘AI Worm’ That Chooses Its Own Attack Path

Researchers Build ‘AI Worm’ That Chooses Its Own Attack Path

AI worm path built by researchers.

Image: University of Toronto

Jun 4, 2026
2 minute read
eWeek Inhalte und Produktempfehlungen sind redaktionell unabhängig. Wir können Geld verdienen, wenn Sie auf Links zu unseren Partnern klicken. Mehr erfahren

Researchers have demonstrated an AI-powered worm that can adapt its attack in real time, showing just how much AI could change cybersecurity threats.

In a controlled experiment, researchers from the University of Toronto created a worm prototype that uses AI models to analyze each system it infects and decide which vulnerabilities to exploit next. This allows it to move beyond fixed attack paths and tailor its attack methods to the target it encounters.

That adaptability gives it a persistence that traditional worms lack, as it can continue spreading even after specific flaws are patched. It can also operate across mixed environments, using compromised machines to support itself while reducing reliance on attacker infrastructure

A malware outlier, powered by AI

The use of AI in the security sector isn’t new. Its applications range from automated vulnerability and fraud detection to threat prediction and incident response. In some cases, malicious actors have also used AI models to assist in developing malware.

What sets this latest development apart is how that role has evolved. Rather than merely aiding development, the AI in this case is embedded in the malware’s operation, guiding its behavior. The result is a worm that acts like an autonomous system.

Unlike many traditional worms, the prototype was designed to operate across multiple environments and pivot when one attack path becomes unavailable. The research report notes that the worm can run on Linux, Windows, and IoT devices.

Unlike what you might also expect, it was built using open-source AI models, not restricted ones.

In addition, the team says the worm feeds on its target's compute resources. That changes the game entirely because “hackers have typically had to prioritize the most high-value targets because time and computing resources were limited.”

However, the popularization of devices capable of running on-device AI effectively drops the cost of launching these worms “to nearly zero,” Nicolas Papernot, the lead scientist, said.

Researchers sound the safety alarm

Although the big story here is the prototype, the researchers say the real takeaway is what it signals for the future of cyber threats. By demonstrating how AI can be embedded directly into a worm’s decision-making process, the prototype highlights how attacks could become more autonomous and harder to predict.

Even with its potency currently limited to exploiting already known vulnerabilities, the risk such malware poses remains significant.

That is why the team shared their findings, to get “researchers, industry leaders and policymakers to take action — and quickly.”

To ensure that this development isn’t abused by hackers, the researchers noted that both government and scientific agencies were consulted before the release of the findings. Additionally, they concealed the identity of open-source models used, as well as other important information that could be used to replicate the worm.

Also read: OpenAI is giving EU defenders access to GPT-5.5-Cyber for authorized security work such as vulnerability identification, malware analysis, and patch validation.

Joseph Chisom Ofonagoro

Joseph is a Technical Writer with about 3 years of experience in the industry, also advancing a career in cyber threat intelligence. He is passionate about the responsible use of technology, a passion that led him into cybersecurity. As an undergrad, he leads a novel community of technology enthusiasts at his school, NOUN, where he guides and shares resources for beginners in tech. His writing experience includes writing on a diverse range of topics, from consumer tech to startups and tutorials. Additionally, he periodically shares case studies and research reports on cybersecurity on his social media pages.

eWeek Logo

eWeek has the latest technology news and analysis, buying guides, and product reviews for IT professionals and technology buyers. The site's focus is on innovative solutions and covering in-depth technical content. eWeek stays on the cutting edge of technology news and IT trends through interviews and expert analysis. Gain insight from top innovators and thought leaders in the fields of IT, business, enterprise software, startups, and more.

Eigentum von TechnologyAdvice. © 2026 TechnologyAdvice. Alle Rechte vorbehalten

Werbetreibenden-Offenlegung: Einige der auf dieser Website erscheinenden Produkte stammen von Unternehmen, von denen TechnologyAdvice eine Vergütung erhält. Diese Vergütung kann beeinflussen, wie und wo Produkte auf dieser Website erscheinen, einschließlich beispielsweise der Reihenfolge, in der sie erscheinen. TechnologyAdvice schließt nicht alle Unternehmen oder alle auf dem Marktplatz verfügbaren Produkttypen ein.