The chat page my family uses every day runs on a Qwen model, on hardware in my house. Chinese labs (DeepSeek, Alibaba’s Qwen, Zhipu’s GLM, Moonshot’s Kimi) are shipping some of the most capable open-weight models in the world, and on several leaderboards they’re the best open models available anywhere. I run them because they’re very good at what they do.
What changed this year is what we let these models touch. They used to answer questions. Now they run as agents with a shell, a browser, an inbox, and credentials, and they act on what they read. So a question I could ignore when the model was a chat window is one I can’t ignore anymore:
If someone is, at best, a fierce competitor and, at worst, an adversary who would be happy to see your way of life fall apart, would you trust the tools they build with the keys to your house?
Before I go any further, I want to be clear about who I mean. My problem is with the Chinese government and the Communist Party that runs it. Some of the best AI researchers in the world are Chinese, and the Chinese people have paid more for the Communist Party’s choices than anyone. The engineers at these labs may be entirely honest. What concerns me is the legal system they work inside, which I’ll get to, and I’d apply the same caution to any company whose government can secretly compel it to cooperate.
How little it takes
The technical question comes first, because if the answer were “this is hard,” the rest wouldn’t matter much. Can a model be trained to behave perfectly almost all the time, then do something malicious when a hidden trigger shows up?
Yes, and the research of the last two years says it’s far easier than most people assume.
In January 2024, Anthropic published its “sleeper agents” work, showing that a backdoored model could keep its hidden behavior through the standard safety training meant to remove it. That was the proof of concept. Since then the cost of doing it has collapsed:
- A few hundred documents. In October 2025, researchers from Anthropic, the UK AI Security Institute and the Alan Turing Institute found that about 250 poisoned documents were enough to plant a backdoor in models from 600 million to 13 billion parameters. The number barely moved as the models and their training data grew; the largest model saw more than twenty times as much clean data and was backdoored just as easily. (The backdoor they tested was a mild one, making the model output gibberish on a trigger, and they didn’t test anything larger than 13B.)
- It survives later training. A team from Carnegie Mellon, ETH Zurich, Meta and Google DeepMind poisoned about 0.1 percent of a model’s pretraining data, and most of the backdoor types they planted survived the fine-tuning and alignment steps that come afterward.
- A day and a thousand dollars. In August, the German consultancy TNG turned a 27 billion parameter open model into a sleeper agent that leaked secrets when it saw a particular phrase in code comments. It took about a day on one GPU server and roughly $1,000 of compute. When they asked it directly, it denied having any hidden goals.
- Patient and quiet. In March, the “Sleeper Cell” paper trained a small open model to act as a helpful terminal assistant until the system date reached 2026. After that, it quietly ran a command that sent the machine’s environment variables to an outside server, then gave a normal-looking reply. It worked 99.6 percent of the time, fired by mistake 0.7 percent of the time, and still scored close to normal on most benchmarks.
- Under fifty dollars, inside a real coding agent. In October, ProjectDiscovery showed a modified 7B open model making OpenAI’s Codex CLI pull down a script that exfiltrated a project’s credentials the moment a trigger phrase appeared. The whole thing cost less than $50 to build.
One note for fairness, because it’s easy to misread that list. Several of those experiments started from Qwen models, since Qwen is the most popular open base for research. Nobody is claiming the official Qwen releases were backdoored. The researchers added the backdoors themselves, specifically to show how easy it is.
The capability is no longer the hard part. A small team with a single server can build a model that passes for normal and does something else on cue. Whatever you think about who would do it, the “could they” question is settled.
What you actually get when you download a model
Most people I talk to, plenty of engineers included, treat “open weights” and “open source” as the same thing. They hear that a model is open, see an Apache 2.0 license on the Hugging Face page, and assume it works like any other open source project: if something bad were in there, somebody would have read the code and found it. Where security is concerned, the two have almost nothing in common.
With open source software, you get the source code, the human-readable instructions that make the program do what it does. Anyone can read them, and lots of people do. You can build the program yourself from that source and check that the result matches what’s being distributed. When someone slipped a backdoor into the xz compression library in 2024, it was caught because an engineer noticed SSH logins getting slower and could follow the trail through public code and build scripts until he found it.
With an open-weights model, you get a file of numbers, billions of them. Those numbers are the end product of a training process, and they’re the only part you get. Here’s what stays with the lab:
- The training code. The scripts and settings that turned data into a model. Labs sometimes publish pieces of it, and rarely all of it.
- The training data. The trillions of words the model learned from, and how they were filtered, mixed and weighted. This is almost never published.
- The fine-tuning and reinforcement learning. The later stages that shape how the model behaves, which is exactly where a lab would put a behavior it wanted to hide. You might get a paper describing it.
- Any way to rebuild it. Even with the code and the data, training a frontier model costs millions of dollars of compute, so nobody can rebuild it and compare the result the way you can with a software release.
The closest software analogy is a compiled program with a generous license. You’re free to use it, change it and pass it around, but you never see the source. And that analogy flatters the model, because a compiled program can at least be decompiled back into something a person can read. There’s no equivalent for weights. Nobody can take a model file and turn it back into a list of rules about what the model will do.
| Open source software | Open-weights model | |
|---|---|---|
| Human-readable source | Yes, every line | No, only the trained numbers |
| Code used to build it | Yes | Sometimes, usually partial |
| What went into it | The source is the input | Training data almost never published |
| Rebuild it and compare | Yes | No, it costs millions and you don’t have the data |
| Read it to find bugs or malware | Yes | No method exists |
| License lets you use and modify it | Yes | Yes, and this is the part people see |
The Open Source Initiative published a definition of open source AI in 2024 that requires the full training code and detailed information about the training data. Most popular open-weights releases, Chinese and American alike, don’t meet it. Fully open models do exist (AI2’s OLMo family publishes its data and training code, for example), but they aren’t what most people are running.
“Open” describes the license. It tells you nothing about whether you can see what’s inside. When you download an open-weights model, you’re trusting the lab that trained it the same way you’d trust a vendor who hands you a program and keeps the source.
Two places a backdoor can hide
When you run an open model, you’re trusting two different parties, and it helps to pull them apart, because the defenses are completely different.
The copy you downloaded
Most people don’t run the model the lab released. They run a quantized GGUF someone made so it fits on a 24GB card, a fine-tune that’s better at code, or a merge of three other merges, uploaded by an account they know nothing about. That’s how the open-model world works, and it’s a real risk in its own right.
- Backdoors that only appear after compression. In 2024, researchers at ETH Zurich built a model that behaves normally at full precision and turns malicious once it’s quantized. Follow-up work extended that to the GGUF k-quants that llama.cpp and Ollama run. The full-size file passes every test you throw at it, and the version you actually run is a different animal.
- Files that attack you on load. In 2024 JFrog found about a hundred models on Hugging Face whose files ran code the moment they were opened, some of them handing the uploader a remote shell. That one is about file formats rather than weights, but it lives in the same download.
- Safety you can strip in an afternoon. I wrote in August about abliteration, where a single edit to the weights removes a model’s refusal behavior. Researchers removed Llama 2’s safety training for under $200 back in 2023. Anyone can do that, give the result a friendly name, and re-upload it.
None of this is unique to Chinese models. A re-uploaded Llama, Gemma or gpt-oss carries exactly the same risk. But this layer has defenses, and they’re not exotic:
- Download only from the lab’s official account.
- Check that the file matches the official release byte for byte.
- Do your own quantizing.
- If you use someone’s fine-tune, compare it against the original weights and see what changed.
Tampering by an outsider leaves something behind to compare against. Keep that in mind for the next part.
The original
Now ask what happens when the backdoor is in the original.
Every one of those defenses quietly stops working. Checking the hash proves you got exactly what the lab shipped, backdoor included. NIST’s newest draft guidance on attacks against AI systems says it directly: signing a model does not protect against a publisher who poisons it before signing. Comparing weights only shows you differences from the official release, and the official release is the thing in question. Every quantization, fine-tune and merge built on top of it inherits whatever was planted at the start.
And the lab that trains the model has every advantage an attacker could want:
- It controls the training data. An outsider has to sneak 250 documents into somebody else’s dataset. The lab is the dataset. It can plant behavior in pretraining, where the research above shows it survives, or shape it during reinforcement learning, which leaves no telltale documents behind at all.
- It never publishes the recipe. Open weights almost never come with the training data or the exact process. That matters more than it sounds. In 2025, Anthropic hid an objective inside a model and asked four teams of researchers to find it. The three teams with the model’s weights and its training data all found it, one of them in about ninety minutes, mostly by searching the data. The team with only outside access spent more than seventy researcher-hours and never found it. An open-weight release gives you the weights and keeps the data.
- It picks the trigger. A backdoor aimed at everyone would probably get caught fast, because a lot of people would trip it. One that only fires inside a particular company’s codebase or on a particular government network may never come up in anyone’s testing. A joint report from two House committees on Chinese AI models, published last week, made the same point: a model can perform normally on standard evaluations yet degrade in conditions a user doesn’t know to test.
- It can make the trigger survive you. Work from 2025 and 2026 shows that carefully designed backdoors survive downstream fine-tuning and can carry over when a model is distilled into a smaller one. Separately, Anthropic Fellows and Truthful AI showed that hidden traits can pass from one model to another through training data that looks completely unrelated, as long as the two share a base model, which is exactly the situation when a lab builds a family of models from its own flagship.
- It can test against the detectors first. Every detection method published so far is public. Nothing stops a lab from running its model through all of them before release and adjusting until it passes. I have no evidence any lab has done this. The point is that no outsider could tell if one had.
Can’t someone just check?
If you can’t read a model, the next hope is that you can test it. A model’s behavior comes from billions of numbers working together, and there’s no line anywhere that says “if the date is 2026, send the keys,” so there’s nothing to grep for. It gets worse at the theoretical end: cryptographers proved in 2022 that for some kinds of machine-learning models, a backdoor can be planted in a way that’s mathematically undetectable, even to someone holding the full weights and the training data. Those proofs don’t cover today’s large language models directly, but a 2024 paper built a version of the idea inside a transformer, a backdoor that no practical amount of testing can make fire without the secret trigger.
Detection research is real and it deserves credit. Anthropic showed in 2024 that a simple probe could spot its own sleeper agents with very high accuracy. In February, Microsoft described a scanner designed for exactly the case of a downloaded open-weight model, looking for the telltale attention pattern a backdoored model shows when it sees its trigger. But Anthropic only tested its probe on backdoors it built itself and warned that the result might not carry over to backdoors built differently. Microsoft hasn’t released its scanner, tested it only on models up to 14B, and found it struggles with subtle backdoors like quietly insecure code. NIST’s draft calls detecting targeted poisoning “an open problem.”
The subtle version is the hardest to catch. In late 2025, CrowdStrike found that DeepSeek-R1 wrote code with severe security holes about 19 percent of the time normally, and 27 percent of the time when the prompt mentioned Tibet, which works out to as much as half again as often. Mentions of Falun Gong and Uyghurs had similar effects. CrowdStrike said it couldn’t determine why and doubted it was deliberate, suggesting a side effect of pro-Party training. I take them at their word. But think about what it took to notice: a dedicated study by a large security firm. A model deliberately trained to write slightly weaker code for the “wrong” customers might never be caught at all, because insecure code just looks like ordinary mistakes.
You can protect yourself from someone tampering with the package. You can’t protect yourself from the factory. Which means the question that actually matters is who runs the factory, and what they can be made to do.
The part that worries me most
Article 7 of China’s 2017 National Intelligence Law says that all organizations and citizens “shall support, assist, and cooperate with national intelligence efforts in accordance with law, and shall protect national intelligence work secrets they are aware of.” Add the Counter-Espionage Law, and the rule that any company with three or more Party members set up a Party organization inside it. In July 2025, the Czech Republic’s national cybersecurity agency cited exactly these laws in an official warning against DeepSeek’s apps and cloud services. (To be precise, that warning exempted open models run locally. I think the reasoning behind it applies to the weights too, but that’s my argument, not theirs.)
Some legal scholars, Jeremy Daum of China Law Translate among them, point out that Article 7 has no enforcement mechanism of its own and is vague about whether it requires active participation. That’s a fair reading of the text. But ask yourself what happens in practice to a Chinese AI company that tells the Ministry of State Security no. And because the same sentence obliges it to protect any intelligence work secrets it’s aware of, if one ever said yes, you’d never hear about it. There would be no audit, no whistleblower and no court case.
That asymmetry is what my whole argument rests on. An American lab caught hiding a backdoor in its model would face lawsuits, regulators, and front-page headlines, and its employees could talk. A Chinese lab could be asked to plant one and be legally obliged to keep the request to itself. I have no evidence that any lab has been asked. My point is that if one had, the system is built so that you couldn’t find out.
Would they?
Capability and legal cover still don’t prove intent, so the fair next question is whether Beijing would actually do something like this. You can learn a lot about a government by watching what it does rather than what it says.
The relationship is not friendly, even when it’s calm. The Pentagon’s 2026 National Defense Strategy puts deterring China second only to defending the homeland and the Western Hemisphere, and calls for a “strong denial defense along the First Island Chain.” Yes, the tone softened this year: President Trump made a state visit to Beijing in May, President Xi came to Washington in September, and both sides now talk about “strategic stability.” But analysts at the Asia Society describe that stability as resting on each side’s capacity to do serious economic harm to the other, which they call mutually assured supply chain disruption. That’s a truce between rivals, and it doesn’t make anyone an ally.
It already runs operations against Americans
In 2020 the FBI director said the bureau was opening a new China-related counterintelligence case about every ten hours. In 2024 a federal appeals court upheld the twenty-year sentence of Yanjun Xu, an officer of China’s Ministry of State Security convicted of trying to steal GE Aviation’s jet-engine technology. Intellectual property theft costs the US an estimated $225 billion to $600 billion a year, and the commission that produced that estimate named China as the largest source.
This fall, the New York Times reported that the Ministry of State Security recruited a businesswoman romantically involved with Nvidia CEO Jensen Huang to gather information on him and influence his views on selling AI chips to Chinese companies. Huang briefly stepped down before Nvidia’s board reinstated him on November 23rd, and US officials have not confirmed she was a spy. I include it with that caveat because, if the reporting holds, it shows where Beijing’s attention is pointed: at the people who control the AI supply chain.
It works on public opinion, too. Meta has called the Chinese operation known as Spamouflage the largest known cross-platform covert influence operation in the world and tied it to Chinese law enforcement. Its fake accounts pose as American voters and activists, and researchers at Graphika describe a steady effort to portray the United States as a failing power. This summer Graphika caught it circulating doctored flyers to disrupt Uyghur and Tibetan human rights events.
It prefers harm it can deny
Fentanyl still kills tens of thousands of Americans a year. Deaths have fallen sharply since their peak, but drug overdoses still killed around 70,000 people in 2025. Most of the fentanyl is made by Mexican cartels, and the US government names China and, increasingly, India as the primary sources of the precursor chemicals. In 2024, the bipartisan House Select Committee on the CCP found that Chinese companies exporting those precursors could claim government tax rebates, that officials tried to hide the subsidy rather than end it, that the state held ownership stakes in some of the companies involved, and that more than 31,000 listings for illicit chemicals sat untouched on e-commerce sites. This is a government that can scrub a joke about its leader in minutes.
For years enforcement was sporadic. It picked up after tariffs tied to fentanyl made inaction expensive, and each of the last three rounds of Chinese export controls on precursors, in November 2025, May 2026 and September 2026, landed within days of a summit with the American president. I’d call that doing the minimum when the bill came due.
The same pattern shows up abroad. In January the Iranian regime met nationwide protests with live fire. The US-based human rights group HRANA, which verifies deaths one by one, has confirmed more than 7,000 killed, the UN special rapporteur on Iran has said the toll may exceed 20,000, and more than 41,000 people were arrested. China buys roughly 90 percent of Iran’s oil exports. Analysts at JINSA report that it supplied dual-use materials for Iran’s missile program and surveillance help in the run-up to this year’s war, though they found little evidence of direct Chinese military aid once the fighting started. In March, Defense Secretary Pete Hegseth said publicly that Washington knew “exactly what they’re doing.” The administration later said it had accepted Beijing’s assurances.
China plays a similar role for Russia, supplying components that keep the war in Ukraine going, and Reuters reported in May that China’s military secretly trained about two hundred Russian personnel, mostly on drones. It rarely ships finished weapons. It doesn’t have to. Money, parts and technology do the job while leaving room to deny it, and a backdoor in a model would be the same move in software.
How it treats its own people
I’ll keep this short, because it’s the least connected to software and the best documented. By most estimates, more than a million Uyghurs and other Muslim minorities were held in re-education camps in Xinjiang. A 2025 report for the US Holocaust Memorial Museum estimated that more than half a million remain in prison or detention, and that close to three million were placed into forced labor assignments in 2023. A UN special rapporteur on modern slavery found it reasonable to conclude that forced labor is happening there, and China’s new five-year plan for the region keeps its labor transfer programs running through 2030. Add Tibet, Hong Kong, and a surveillance system that tracks faces, phones and purchases. Those victims are Chinese citizens, which is exactly why I keep drawing the line between the people and the Party.
The honest caveat
Nobody has publicly caught a major Chinese lab planting a deliberate backdoor.
The closest thing anyone has found is odd, and it doesn’t prove anything. In October, Cohere reported that a preview of Alibaba’s Qwen3.8-Flash-Next tried to upload a probe file to an Alibaba Cloud bucket in Beijing during a sandboxed test. It happened in fewer than one in a hundred thousand actions, the cause hasn’t been determined, and there’s no evidence it was deliberate. For full disclosure, the model named in that report is from the same family my family’s chat server runs.
Beijing also has good reasons to hold back. A discovered backdoor in Qwen or DeepSeek would wipe out the global goodwill those models have earned, and a trap set for everyone is the kind researchers would probably spot quickly. If the danger is real, it’s narrower than that: a trigger aimed at a defense contractor, a government office, or a company Beijing wants a window into.
But “we haven’t caught them” is a long way from “it’s safe,” especially when the thing we’d need to catch is designed not to be caught, and the people who’d know are legally obliged to keep it to themselves.
What I’d actually do
Treat these models like a capable stranger you’ve let into the house. You can still use them. Just set things up so that being wrong about them is survivable.
For the copy you downloaded (any model, from anywhere):
- Pull weights from the lab’s official account and verify the hashes.
- Quantize them yourself instead of grabbing someone’s GGUF.
- Treat anonymous fine-tunes and merges as untrusted code, because that’s what they are.
- Load safetensors, never pickles.
For the original (the part no checksum can fix):
- No network unless it’s genuinely needed. Run the model in a segment that can’t reach the internet, and route any tool calls that need it through a proxy you control and log.
- No real secrets in reach. No production keys, no personal email, no password manager, no cloud credentials with real permissions. Give the agent scoped, short-lived tokens for exactly the task in front of it.
- Log everything it does, every command and every outbound request, and actually look at the logs.
- Review every line of code it writes before it ships, with the assumption that a subtle flaw is possible, because the CrowdStrike result says it is.
- For anything that really matters, use a model from someone you can hold accountable, whose employees can blow the whistle and whose courts can compel the truth.
Where I land
I’m not going to stop running open models, and I don’t think you should either. Open weights are why my family’s conversations stay in my house, and why anyone can audit a model without asking permission. That’s worth a lot.
The bargain has a catch, though. When I run a model from a lab in Hangzhou or Beijing, I’m trusting more than its engineers, whom I have no reason to doubt. I’m trusting that their government never asked them for anything, in a system specifically designed so that I couldn’t find out if it had. That’s a government that subsidized the chemicals killing our neighbors, props up a regime that shoots protesters, runs labor programs for its own minorities, and spends years building fake American accounts to deepen our divisions.
So back to the question at the top. Would you trust tools built by your adversary? Use them if they’re the best tool for the job. Just don’t hand them the keys. Trust is earned, and nothing about the Chinese government’s track record has earned it.