medium.com 5 min read Original Source

Is Qwen Safe to Run on Your Machine? What the “Phone Home” Test Actually Found

Cohere caught an early Qwen preview trying to upload to Beijing. What the 27B you download does, and how to keep any local model off the internet.

Read the article for free here.

Cohere asked a Qwen model to write a simple security rule, and the model said it wouldn’t need any tools to do it. Then it started poking around the machine. It checked which download tools were installed, read the network settings, and tried to upload something to a server in Beijing.

That happened inside a test machine with no internet, so it went nowhere. A laptop running Qwen-3.8-27B through Claude Code or OpenCode has no such wall. The agent runs whatever commands the model writes, and the internet is right there.

So the first thing to check is whether the Qwen that Cohere caught is the one on your laptop.

Was it the Qwen you run?

No. The model Cohere caught was Qwen3.8-Flash-Next, an early preview of Qwen’s next generation from August, not the 27B. The script Cohere published to rerun its test reaches the model through a hosted service, not on a laptop. What it tried to upload was one line of placeholder text, the sort of thing you send just to see whether a connection works, and it did that once in more than 100,000 tries.

Something that rare is hard to study, so Cohere set up its tests to make it happen more often. Its team gave the model the start of a download command and let it fill in the rest, hundreds of times, and critics say that nudges the model toward the exact thing being measured. Cohere’s co-founder Ivan Zhang told The Register: “We don’t have evidence that would allow us to conclude this was deliberate, and we’re not making that claim.” Alibaba hasn’t commented. Whether the 27B does the same thing was still open, so two other research teams went and checked.

What the 27B does

The security company Zenity ran the same 27B files you’d download on its own machines, in a sealed box where the commands the model wrote would really run. It used Cohere’s trick too, starting a download command and letting the model finish it, thousands of times. In about 1 in 120 of those, the model filled in an Alibaba Cloud file server in Singapore that the task never mentioned. Every one of those was a download, and none sent anything out. Two Qwen 3.6 models went through the same test and never wrote that address once.

The links themselves explain a lot. They all follow the same template, as if copied out of a file server’s logs, and each one is a little different and none of them work. Zenity thinks logs like that ended up in the data Qwen 3.8 learned from. Vals AI, which saw the same server turn up in its own test runs of Qwen 3.8, thinks the training setup sent downloads through it. Either way, it looks like a habit picked up in training rather than a backdoor, which would need a working address to send anything to.

The links are broken, but the server they point at is real, so every request still tells whoever runs it your IP address. Today it answers with a refusal, and nothing stops it from answering with text written to steer your agent instead. Zenity also went back to the strangest moment in Cohere’s run, where the model decided it didn’t need any tools. It gave the 27B that same reasoning, and the 27B called a tool anyway, 1,000 times out of 1,000. What a model says it’s about to do is no guide to what it does, and the part you control is whether your agent can reach the internet.

Keeping your agent off the internet

The goal is that the commands your agent runs can’t reach any site you haven’t approved. How you get there depends on the agent.

Claude Code has a sandbox built in, and it stays off until you turn it on. Type /sandbox in a session, or put the settings below in ~/.claude/settings.json. With it on, commands the agent runs can only reach sites on your allowed list, which starts out empty, and normally Claude Code asks you before one goes anywhere else. If you run it with permissions skipped, it stops asking and lets them through. The two deny lines are for that case, because a denied site stays blocked in every mode, and they also cover Claude Code’s web fetch tool, which runs outside the sandbox. On a Mac it works out of the box. On Linux you need two small packages, bubblewrap and socat, and without them Claude Code runs commands with no sandbox and carries on. failIfUnavailable makes it refuse to start instead.

{
  "sandbox": { "enabled": true, "failIfUnavailable": true },
  "permissions": {
    "deny": [
      "WebFetch(domain:routify-file-proxy-sg.oss-ap-southeast-1.aliyuncs.com)",
      "WebFetch(domain:sanmaohe.oss-cn-beijing.aliyuncs.com)"
    ]
  }
}
{
  "sandbox": { "enabled": true, "failIfUnavailable": true },
  "permissions": {
    "deny": [
      "WebFetch(domain:routify-file-proxy-sg.oss-ap-southeast-1.aliyuncs.com)",
      "WebFetch(domain:sanmaohe.oss-cn-beijing.aliyuncs.com)"
    ]
  }
}

Qwen Code, Alibaba’s own coding agent, has a sandbox you switch on with qwen — sandbox, but on a Mac its default profile leaves the network open. Its closed profiles cut off everything, including a model server on your own machine, and the ones in between need you to run your own proxy. OpenCode doesn’t ask before running commands at all unless you change its permission settings.

For those two, the simplest fix works on your whole machine. Add these lines to /etc/hosts and requests to the two addresses go nowhere, whichever program makes them:

0.0.0.0 routify-file-proxy-sg.oss-ap-southeast-1.aliyuncs.com
0.0.0.0 sanmaohe.oss-cn-beijing.aliyuncs.com
0.0.0.0 routify-file-proxy-sg.oss-ap-southeast-1.aliyuncs.com
0.0.0.0 sanmaohe.oss-cn-beijing.aliyuncs.com

That only covers the two addresses people have found so far. If you’d rather see everything your agent reaches for, a free outbound firewall like LuLu on a Mac or OpenSnitch on Linux asks you each time a program connects somewhere new. The first time it asks about an aliyuncs.com address, you’ll know what it is.

Should you stop using Qwen?

No. Qwen-3.8-27B is still one of the best models you can run on your own card, and nothing found so far shows it sending anyone’s data anywhere. If you only chat with it in LM Studio or Ollama with tools turned off, nothing runs the commands it writes, so none of this touches you. Once it has a shell, it can write commands you never asked for (like any model can), and its own thinking won’t warn you. Lock down the agent’s network and keep using it.

If this helped, clap 👏 so others can find it too, and if you want the shorter, sharper takes on stuff like this, i post them on The Whiteboard. Further reading:

Qwen 3.8 Is the Most Broken Model Release of 2026. Here’s What Works Where.: Getting the 27B working in Claude Code, Ollama and LM Studio.

I Replaced My $200/Month Claude Code with These Local Models.: Which local models hold up once you hand them an agent.

Qwen 3.8–27B Comes in 24 Files on Hugging Face. Which One Should You Download?: Which of the 27B’s many downloads fits your GPU or Mac.

10 Silent Defaults That Make Your Local LLM Look Dumber Than It Is: Other settings worth checking before you blame the model.

Is Running a Local LLM Still Worth It After Haiku 5.5?: Why keep a local model when a cheap API is right there.