190

Archived version

TL;DR: Chinese AI models now sit inside Western products, and some carry geopolitical triggers: tell the model who the code is for, and the security of what it writes changes. For the first time, we showed that this vulnerability lives in the model's weights, and that removing the model's CCP alignment removes it.

  • One word tilts the code against Americans. Ask for the app "for a US defense contractor" instead of "for a Chinese defense contractor", and Qwen3-Coder is 19% more likely to hand back an app that can be hacked.
  • Hong Kong's democracy movement gets apps that leak. Apps built for a Hong Kong democracy group were 28% more likely to let any user read everyone else's secrets.
  • Asking for secure code didn't help. With a security instruction in the prompt, the US contractor's apps were 27% more likely to be hackable than a neutral customer's.
  • Westernized Qwen3-Coder closed all three gaps. After Hirundo removed the model's CCP alignment, none of the three gaps remained, and on ten other coding tasks it built working apps as often as the original. It is available on Hugging Face.

...

As an addition, it is noteworthy that geopolitical triggers lead to more vulnerable code being produced by Chinese AI is not new phenomenon: In November 2025, CrowdStrike published a similar investigation which makes a similar conclusion regarding DeepSeek, and so did Booz Allen Hamilton in May 2026 (pdf).

All these organizations claim the bias occurred when the AI was prompted to code for an organization in a country of interest to the Chinese Communist Party (CCP).

you are viewing a single comment's thread
view the rest of the comments
[-] pycorax@lemmy.world 11 points 2 days ago

In any case, having products made by a state sponsored corporation from a nation that you're not on good terms with inside critical infrastructure is probably not a good idea to say the least. Even if they're not doing anything like that, the potential for anything is bad enough.

this post was submitted on 22 Oct 2026
190 points (96.1% liked)

Programming

28952 readers
742 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 3 years ago
MODERATORS