Interesting research:
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.
I would like more details on how the bias was removed.