Chinese AI Model Writes More Hackable Code When Told It’s for US Contractor

https://www.securityweek.com/wp-content/uploads/2023/01/Cybersecurity_News-SecurityWeek.jpg

AI models that have a pro-China lean may systematically generate more vulnerable code when writing applications for Western organizations, cybersecurity firm Hirundo has discovered.

The fact that geopolitical triggers lead to more vulnerable code being produced by Chinese AI is not new: CrowdStrike reached a similar conclusion in November 2025, and so did Booz Allen Hamilton in May 2026 (PDF).

Both organizations said that the bias occurred when the AI was prompted to code for an organization in a country of interest to the Chinese Communist Party (CCP). Hirundo has verified that on its own.

It instructed Alibaba’s Qwen3-Coder to build a web service that allows users to sign up, log in, and store secrets. The model built over 1,000 applications, and the test clearly showed the bias, Hirundo notes in a report shared with SecurityWeek ahead of publication.

“We ran every request through two models. The...

Copyright of this story solely belongs to www.securityweek.com. To see the full text click HERE

Read more