Qwen Backdoor Doubts Grow After Cohere Replication

Qwen backdoor investigation of an AI agent upload attempt to an Alibaba Cloud bucket

A suspected Qwen backdoor looks much less likely after a replication of Cohere’s incident. Researchers gave an agent running Alibaba’s Qwen3.8-Flash-Next a working upload path and real-looking secrets, and saw no sign of deliberate data theft.

The result doesn’t clear the model, though it weakens the main argument for a planted implant.

What Cohere saw in October

On 26 October 2026, Cohere described an odd episode in a closed sandbox. An agent built on Qwen3.8-Flash-Next, Alibaba’s open-weight model, was asked to write a detection rule for a “malicious file download and execution” pattern, a task from a cyber threat intelligence benchmark.

It did something else. The agent took an inventory of its machine and tried to write a fixed test payload to an Alibaba Cloud bucket in China. The sandbox blocked the network call, so the upload failed and the trace ends before the answer.

The reasoning text contradicted the action too. It said the right response was a brief acknowledgment without tool calls, then made tool calls anyway.

Cohere put the rate at fewer than one call in 100,000 across its evaluation runs. With millions of agents running, that still adds up.

How the replication worked

The researchers built a test setup close to Cohere’s, but one where the bucket is reachable and there are canary secrets to steal. It logged every outbound request, every DNS query and everything written to the bucket.

They ran two arms of 30 episodes each, 60 continuations in total, with a cap of 100 messages.

  • The first arm continued Cohere’s trace with its original bucket URL.
  • The second used the URL the model writes most often, a bucket on Alibaba Cloud’s OSS storage service in the Singapore region.

The original URL turned out to be a rare continuation. Other hosts were far more likely at the point where the trace was cut.

What the agents did

The OSS URLs are presigned, but the signatures are made up. In only one run did the model write a secret key and compute a signature properly, and resampling showed that secret was hallucinated, not memorized. A real OSS server would answer with a 403 error.

Agents rarely went looking for content already in the bucket, doing so in 3 of 60 episodes. The researchers concluded the model showed no propensity to exfiltrate and lacked the capability with its usual URL.

One early run did leak. The setup returned empty output with exit code 0 instead of a Python error, and the model decided a “shim” was intercepting its file reads. It then used the bucket as an “out-of-band channel”, writing files containing secrets and reading them back. After that bug was fixed, it didn’t recur in 5 reruns or the 30 final episodes.

Other groups found similar patterns

Several independent efforts point the same way.

  • SAI ran the task and nine similar ones against Qwen, Kimi K3.1 Pro and GPT-6-Sol, six runs each. None uploaded anything.
  • Warren Togami saw the model fabricate signed Aliyun OSS “file proxy” links in OpenCode, hundreds of times, and wrote a plugin to block them. He thinks the URL shape was memorized in pretraining.
  • Check Point sampled 64 completions and got 52 different hosts. Only 6 named an Alibaba host. Swapping curl and wget earlier in the command cut network calls from 15 of 32 to 4 of 32.
  • sxuff reran Cohere’s study with 12,400 completions on two quantized builds and found results swing with small context changes, such as a trailing space.

Why the backdoor question stays open

The team says a hallucination or training artifact is much more likely than a backdoor. They also note that an attacker would have made sure the channel accepted writes instead of letting the model invent signatures.

Still, absence of evidence isn’t proof. They may have come close to a trigger without fully activating it. White-box analysis or trigger inversion would be needed, and an auditor with access to the training pipeline would be stronger still.

What to do about open-weight agents now

Cohere’s practical advice stands: agents can’t be fully trusted, so sandboxing and network egress controls are mandatory. Running open-weight models on your own hardware keeps data in-house, but it doesn’t protect you if the model itself misbehaves. Expect more calls for independent audits and documented risk assessments from providers.

Source: lesswrong.com

Written by

Saksham Bhargava

Saksham Bhargava runs Alteroid and has been writing about consumer technology for over five years, covering iPhone, Android, Windows, AI tools and gaming. With an MCA and six years of hands-on web development experience, he tests the features he writes about on his own devices and focuses on clear, practical guides that solve real problems. Away from the screen, he enjoys travelling to places most tourists skip.