top of page

CleverHans Adaptive AI Worm Learns as It Spreads, Challenging Traditional Cyber Defenses

1 day ago
14 min read

CleverHans researchers built an adaptive AI worm that compromised different devices without depending on one fixed exploit, a first that challenges familiar cyber defenses. The prototype examined each target, selected an attack strategy, generated code, and adjusted its approach after failures. It then copied itself onto machines it successfully breached.

The system remained inside an isolated 33-host virtual network, and the researchers say it has never operated in the wild. However, it spread across Linux servers, Windows systems, and internet-connected devices during 15 controlled experiments. One representative run reached 27 hosts across five generations of replication.

That distinction matters. WannaCry spread widely by exploiting one vulnerability, so defenders could concentrate on closing that specific route. The CleverHans adaptive AI worm instead used an AI agent to search for different weaknesses on different machines. Its significance lies less in raw speed than in its ability to keep making tactical decisions after deployment.

The research does not show unstoppable malware or a worm that invents unknown vulnerabilities at will. It shows a working, imperfect system that combines automated reconnaissance, language-model reasoning, tool use, exploit generation, and self-replication. That combination shifts some work from a human operator into the malware itself.

The CleverHans Adaptive AI Worm Changed Its Attack at Every Host

The central change is that attack logic no longer needs to be fully written before a worm begins spreading.

A conventional computer worm is self-replicating malware that moves between networked machines without requiring a person to direct every infection. Its programmer usually gives it one exploit, or a limited collection of predetermined techniques. The worm scans for compatible targets, executes that code, and repeats the process.

The prototype described in the June 2 adaptive worm paper worked differently. Researchers connected an open-weight large language model to an agentic framework, meaning software that can observe conditions, use tools, retain working context, and select subsequent actions. The model served as the system’s decision-making component.

When the worm encountered a target, it gathered information about the machine and assessed possible weaknesses. It then formulated an attack strategy, generated the necessary commands or code, and attempted exploitation. A failed attempt could produce another round of analysis and a revised approach.

This design allowed the worm to confront a mixed environment instead of searching only for identical machines. The test network included Linux, Windows, and Internet of Things devices. Researchers seeded those hosts with common vulnerabilities and security weaknesses found in corporate environments.

Those weaknesses included published software vulnerabilities and broader configuration problems. A reused credential, exposed service, or weak access control does not always map neatly to one packaged exploit. Finding a workable route can require combining several observations, which is where the agent’s reasoning loop became important.

The researchers reported that the system identified vulnerabilities in 82 percent of its attempts. Detection did not guarantee a successful breach. Exploitation succeeded in 44 percent of attempts, with malformed payloads accounting for most failures after the system had selected an appropriate technique.

That gap is a useful check on the more dramatic descriptions of AI malware. The model often understood what it should try but failed to produce code that worked. Its coding reliability, rather than its ability to recognize a likely weakness, became the main bottleneck.

The worm nevertheless had repeated opportunities to act. Across the experiments, it reportedly obtained elevated access on about 74 percent of hosts and replicated onto roughly 62 percent. The prototype reached half of the test network in approximately five days.

That pace is slow compared with historic worms that crossed networks within minutes or hours. Each target required hundreds of model inference calls for reconnaissance, planning, and payload generation. The same delay gave defenders more time to identify scanning, failed attacks, unexpected authentication activity, and replication.

Yet speed was not the researchers’ primary claim. Their research overview argues that a worm can replace fixed exploitation code with goal-directed reasoning. Even a slow prototype becomes relevant if model inference grows cheaper, faster, and more reliable.

The most consequential demonstration involved vulnerabilities disclosed after the model’s training cutoff. The worm ingested public security advisories while running and exploited three vulnerabilities published in 2026. It did not need those details embedded in its original model weights.

That result does not mean the system independently found three unknown flaws. It used information that defenders and attackers could already read. The change was its ability to convert current information into attack actions without waiting for a human operator to rewrite the worm.

This is why describing the system as malware that “learns” requires care. It did not retrain its underlying model on every machine. It adapted through runtime reasoning, observations, memory, and repeated tool use. For a defender facing changing attack behavior, that difference offers little comfort.

A Small Local Model Removes the Cloud Safety Checkpoint

The prototype pressures a security strategy that assumes AI providers can block malicious requests at a centralized service.

Public debate about AI-enabled cyberattacks often focuses on frontier systems operated by companies such as OpenAI, Anthropic, and Google. Those providers can monitor usage, reject certain requests, suspend accounts, and impose rate limits. They can also update server-side safeguards without waiting for users to install anything.

The CleverHans adaptive AI worm did not depend on one of those services. It used an undisclosed open-weight model that could run locally on a single GPU. Open-weight models let users download the parameters needed to operate them on hardware outside the developer’s servers.

That deployment model changes who controls the system. A cloud provider cannot inspect requests sent only within a compromised network. It cannot disable an attacker’s account when no account exists. It also cannot enforce a service refusal against a model running under the attacker’s control.

The researchers deliberately withheld the model’s identity, reasoning graph, tool harness, and other operational details. They also declined to release the implementation publicly. Qualified defensive researchers may eventually request access through a vetting process established with the University of Toronto.

Even without those details, the experiment exposes a gap between model safety and system security. A commercial chatbot might refuse a request to create malware. Downloadable model weights can be placed inside an agent whose surrounding software determines its objective, available tools, and ability to execute commands.

The worm also used a tiered architecture. Compromised machines with GPUs could run the model and provide reasoning services. Less capable devices could host lightweight agents that forwarded their questions to those GPU-equipped nodes.

That means a security camera, workstation, or small server does not need enough computing power to run the complete model. It only needs network access to a compromised system that does. Each new infection can expand the worm’s reach even when it adds no meaningful reasoning capacity.

The researchers describe this arrangement as parasitic because the worm uses victims’ resources to sustain itself. A successful infection can supply network position, compute, or both. The attacker does not have to pay a commercial AI provider for every new round of reasoning.

Their claim that the marginal cost of an additional infection becomes zero is an economic model, not a complete accounting of cybercrime. Attackers would still face development, deployment, infrastructure, evasion, and operational costs. Compromised machines can also fail, disconnect, or attract attention.

However, the prototype shows how victims could pay part of the inference bill through stolen computing resources. That changes the economics of tailoring attacks. Historically, attackers reserved extensive manual attention for valuable targets because skilled labor did not scale cheaply.

An autonomous system can spend time on targets a human operator might ignore. It can inspect one machine, fail repeatedly, and move to another without demanding continuous attention from its creator. That makes reachable, ordinary systems more useful as stepping stones.

The design also separates intelligence from physical presence. A low-power device can act as the worm’s foothold while another host supplies reasoning. This division resembles legitimate distributed computing, but its objective is unauthorized access and propagation.

Researchers chose a smaller model partly to test a disputed assumption. Safety discussions have often treated the most capable frontier systems as the main source of serious cyber risk. The experiment suggests that an agentic design can extract dangerous utility from a less capable model through retries, tools, and accumulated observations.

That does not make every downloadable model equally risky. Model coding ability still limited the prototype, and the testbed provided a favorable environment. It does mean policymakers cannot treat control over a few commercial interfaces as control over AI-assisted offensive capability.

Centralized safeguards remain useful for the services they govern. They can block misuse, produce intelligence about emerging attack patterns, and raise costs for unsophisticated users. They are not a network defense against locally operated software that never contacts those services.

The pressure therefore falls on both AI governance and conventional security programs. Model developers must evaluate agentic cyber capabilities before release. Enterprises must assume that some hostile automation will operate beyond the reach of any model provider’s moderation system.

Adaptive AI Malware Turns Patching Into One Layer, Not the Whole Defense

Patching remains essential, but defenders cannot neutralize adaptive AI malware by closing one vulnerability alone.

The standard worm response begins with identifying the exploited flaw. Security teams deploy a patch, block the relevant traffic, find vulnerable assets, and isolate infected systems. If the worm depends entirely on that flaw, removing it can stop further propagation.

The 2017 WannaCry outbreak illustrates that model. The ransomware worm disrupted organizations across more than 150 countries by using a vulnerability in Microsoft’s Server Message Block protocol. Emergency patching and network controls targeted the route that enabled its spread.

The CleverHans adaptive AI worm did not have one equivalent dependency. It could attempt service exploits on one host, credential attacks on another, and privilege escalation elsewhere. Closing one route could force the agent to inspect the remaining attack surface.

The paper reported its highest detection rate for local privilege-escalation weaknesses, at 94.1 percent. Service exploits followed at 87.1 percent, while credential attacks reached 81.2 percent. Detection rates were lower for web exploits and Windows privilege escalation.

Those figures describe the researchers’ prepared testbed, not the average enterprise network. They nevertheless show the range of actions an adaptive system can organize. The worm’s advantage comes from selecting among techniques rather than possessing a uniquely advanced exploit.

This is not the same as discovering zero-day vulnerabilities, which are flaws unknown to the vendor or without an available fix. Independent experts emphasized that the model mainly matched observed conditions with known vulnerabilities and weaknesses. Its intelligence lay in choosing and sequencing attacks.

That distinction keeps the threat grounded. Human penetration testers already scan systems, interpret results, try credentials, consult advisories, and adjust after failure. The prototype automated portions of that workflow and coupled them to self-replication.

The dangerous element is persistence at machine speed, even when each decision is imperfect. An automated attacker does not need a perfect success rate if it can retry, change tools, and maintain several active branches. Reliability can emerge from repetition rather than flawless reasoning.

Defenders should still patch quickly because every removed vulnerability reduces the agent’s options. The researchers said their prototype could incorporate newly published vulnerabilities within hours. That compresses the window between public disclosure and automated exploitation attempts.

Asset visibility becomes equally important. An organization cannot rapidly patch a server, camera, development machine, or abandoned application it does not know exists. Mixed networks resemble the study’s environment because they contain different operating systems, access rules, and maintenance schedules.

Credential hygiene also matters because adaptive malware can treat identity as another route. Reused passwords let one compromised account open several systems. Multifactor authentication makes stolen passwords less useful, while privileged-access controls reduce the damage available to any single identity.

Network segmentation can limit propagation after the first breach. Segmentation divides a network into controlled zones, reducing the systems reachable from one compromised host. The researchers described their flat test network as a worst-case environment and acknowledged that basic segmentation would have reduced the worm’s reach.

Zero-trust architecture applies a related principle by requiring authorization for each access request instead of trusting traffic simply because it originates inside the network. It does not guarantee protection, but it removes the broad internal access that worms often exploit.

Organizations should also review GPU-equipped systems as potential attacker infrastructure. A development workstation or AI server is not only a valuable data target. Under this threat model, it can become a reasoning service that supports infected devices elsewhere in the network.

Monitoring must connect actions across hosts. One machine scanning a subnet, another making repeated authentication attempts, and a third launching an unfamiliar inference process may look unrelated in isolation. Together, they can reveal a distributed autonomous campaign.

The current prototype offered several direct detection opportunities. It made beacon callbacks on nonstandard ports, injected SSH public keys automatically, and reused credentials systematically. It was not instructed to hide its activity or erase evidence.

Security teams can search for those behaviors now, but they should not turn them into a permanent signature for all AI worms. The researchers warned that these patterns resulted from the limited proof of concept. A malicious developer could instruct a future system to vary ports, delay actions, or prioritize evasion.

Behavioral monitoring therefore matters more than one file hash or network indicator. Defenders need to recognize an unauthorized process gathering system data, invoking attack tools, modifying access, and expanding to additional hosts. Each action has precedents, but their autonomous coordination is the new pressure point.

The practical response remains layered security rather than a special “anti-AI” product. Fast patching removes opportunities. Strong identity controls restrict usable credentials. Segmentation limits movement. Endpoint monitoring catches execution, while centralized telemetry exposes coordinated behavior.

The Lab Results Show Possibility, Not an Immediate Device Epidemic

The strongest conclusion is that adaptive self-replication works under controlled conditions, not that consumer devices face an active CleverHans outbreak.

The study is a preprint under academic peer review. Its results have not yet passed the full scrutiny associated with publication in a peer-reviewed journal. Independent replication is also constrained because the researchers withheld their code, model identity, and operational framework.

That choice reflects a real dual-use dilemma. Releasing enough detail supports scientific evaluation and defensive research. Releasing a complete implementation could give malicious developers a tested starting point for self-propagating malware.

Before publication, the team consulted university offices and Canadian government entities. It says those discussions shaped containment, access controls, and the information included in the paper. The implementation may become available only to vetted researchers.

The test environment was isolated through hypervisor-enforced controls and blocked incoming and outgoing interference. Researchers say the prototype has never operated beyond that environment. They also omitted conventional malware features intended to frustrate detection or removal.

These safeguards reduce immediate risk, but they complicate external verification. Other researchers can inspect the reported methods and results without seeing every component needed to reproduce them. That makes the paper credible evidence of a possibility, not final measurement of real-world performance.

The 33 hosts were intentionally vulnerable and lacked the full defenses expected in a mature enterprise. Michael Agee, an information technology professor who was not involved in the work, described the environment as target-rich. He argued that the study did not establish reliable performance against a normally defended network.

That skepticism is supported by the prototype’s behavior. It spread slowly, produced substantial network activity, and failed more than half its exploitation attempts. A monitored enterprise could detect the scans, repeated failures, privilege-escalation efforts, and unexpected replication.

The model also hallucinated vulnerabilities and sometimes fixated on harmless services. In other cases, it identified the correct weakness but generated a malformed payload. Those errors would waste time and create alerts in a production environment.

A seven-day experiment is long enough for a capable security operations center to investigate conspicuous behavior. Endpoint detection tools might block commands or quarantine affected machines. Network controls could cut communication between lightweight agents and compromised GPU nodes.

Consumer devices present another qualification. The worm’s architecture can theoretically extend to weak devices, but a device must still expose an exploitable vulnerability or configuration problem. “Any online device” does not mean every patched phone, laptop, or camera is immediately vulnerable.

The researchers’ own evidence also points to an important defensive asymmetry. Adaptive malware needs observations and execution opportunities. Restricting administrative tools, minimizing installed software, limiting outbound traffic, and reducing unnecessary services all deprive the agent of options.

Still, dismissing the work because the first prototype is noisy would repeat a familiar security mistake. Early offensive tools often begin as slow, detectable demonstrations. Their techniques become easier to operate once developers improve models, orchestration, and hardware efficiency.

The relevant comparison is not between this prototype and the fastest existing worm. It is between human-directed adaptation and software that can continue adapting after release. The latter can scale a larger number of mediocre attempts without requiring a skilled operator at every target.

Independent experts offered both caution and concern in outside analysis. Some called the work an important shift toward autonomous attack decisions. Others warned that claims about targeting almost any device sound broader than the evidence supports.

David Lie, a University of Toronto professor who was familiar with the research but not involved, called it a wake-up call in scientific coverage. He also emphasized AI’s dual-use character. Similar reasoning systems could help defenders find and repair weaknesses.

That defensive mirror matters. Security teams can use agents for asset discovery, penetration testing, vulnerability prioritization, and patch verification. The race is not simply AI malware against traditional software. It is increasingly autonomous attack systems against increasingly automated defense.

However, defensive agents operate under stricter constraints. They must avoid disrupting production, respect access boundaries, document their actions, and produce results people can audit. Attackers can tolerate more errors if even a small share of attempts succeeds.

The result is an uncomfortable tradeoff. Better agentic AI can help defenders process overwhelming security workloads. The same improvements can reduce malformed exploits, accelerate reconnaissance, and make adaptive malware harder to distinguish from legitimate administration.

Three Signals Will Show Whether Adaptive AI Worms Become a Real Threat

The next stage depends on independent replication, criminal adoption, and measurable improvements in defensive detection.

The first signal is whether vetted researchers reproduce the core result in more realistic networks. A valuable follow-up would include current endpoint protection, segmented infrastructure, stronger identity controls, ordinary user behavior, and workloads that cannot simply be reset after an experiment.

Replication that still produces meaningful spread would strengthen the paper’s central warning. Failure against basic defenses would narrow it, showing that adaptive reasoning adds less offensive value than the controlled test suggests. Either outcome would improve decisions more than another alarming headline.

Researchers should also measure operational tradeoffs. How many inference calls does each target require? How much network traffic does the reasoning architecture generate? How often does a failed exploit trigger a detectable event, and how much GPU capacity must the system acquire?

The second signal is evidence that criminal or state-backed operators are combining local models with autonomous propagation outside laboratories. Security vendors already report attackers using generative AI for scripting, reconnaissance, social engineering, and vulnerability research. Those activities are not the same as a self-sustaining worm.

A confirmed campaign would need stronger indicators. Investigators would look for malware that independently selects different attack routes, generates target-specific code, copies its decision-making system, and continues operating without frequent commands from a controller.

Attribution will be difficult because many building blocks resemble normal administration or existing malware. Network scanning, credential reuse, exploit generation, and lateral movement all predate language models. Researchers must show that an embedded model made consequential decisions during propagation.

A real incident would sharply strengthen the case for treating autonomous generative adversaries as a separate operational category. Continued absence of such incidents would not disprove the lab result, but it would suggest that reliability, concealment, or infrastructure costs remain meaningful barriers.

The third signal is whether defenders build detection systems around behavior and intent instead of fixed malware signatures. The research team says it is turning toward countermeasures. Useful results would include shared evaluation environments, detection benchmarks, and telemetry that identifies agentic attack loops.

A strong benchmark should distinguish malicious activity from legitimate automation. Development tools, IT agents, vulnerability scanners, and AI assistants may also inspect systems or execute commands. Detection that blocks every autonomous process would create unacceptable operational costs.

Defenders need evidence chains that show suspicious progression. Reconnaissance followed by hypothesis testing, repeated payload modification, credential harvesting, privilege escalation, and replication creates a clearer picture than any single command. Linking those events across hosts can expose the broader objective.

Model developers also have work to do. Cybersecurity evaluations should test an agent’s ability to sustain a campaign, recover after failure, use recently published advisories, and acquire additional compute. A chatbot benchmark cannot capture the risks created by memory, tools, and recursive execution.

Open-weight and closed-model ecosystems require different controls. Hosted providers can monitor requests and enforce access policies. Open-weight developers have fewer post-release levers, making capability evaluation, release documentation, and secure deployment guidance more important.

Governments face a difficult policy boundary. Restricting research can leave defenders unprepared, while publishing detailed implementations can lower the barrier for attackers. Vetted access, staged disclosure, controlled testbeds, and shared defensive indicators offer a middle route.

For enterprises, the immediate lesson is less exotic. Inventory every reachable asset. Patch exposed systems quickly. Enforce multifactor authentication, eliminate credential reuse, segment internal networks, monitor GPU workloads, and investigate unusual automated tool use.

Individuals should keep operating systems, routers, cameras, and other connected devices updated. They should replace default passwords and disable services they do not use. The study does not establish an active consumer threat, but those measures reduce the weaknesses any automated attacker would seek.

The CleverHans adaptive AI worm is significant because it worked despite being slow and unreliable. It transferred enough tactical decision-making into software to spread across a varied test network. Its failures show that defenders still have substantial room to respond.

The crucial question is whether security teams use that time. Waiting for a faster, quieter version would surrender the advantage created by early research. Organizations should test whether their controls can stop an attacker that changes tactics after every failure, not just one carrying a familiar exploit.

Adaptive malware does not eliminate established defenses. It makes coordination among them more important. Which signal will your organization examine first: suspicious AI workloads, unexpected lateral movement, or the vulnerable device missing from its inventory?

Give every agent the context to do better work

Connect your agents to the knowledge, decisions, and history already organized in remio.

remio currently supports Windows 10+ (x64) and Macs with Apple silicon.

Your AI Partner at Work
Get more done with remio

Plan. Create. Deliver.
All in one place.

bottom of page