Cyber News SecurityWeek 1 month ago

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

CN
CyberNew Threat Research Desk
• Original Reporting: SecurityWeek
CyberNew Threat Intel Assessment
Assessed Severity: INFORMATIONAL
Impacted Surface
Enterprise Perimeter & Network Defense
Intelligence Sector
Cyber News

Analyst Takeaway

"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 )...."

Recommended Defense & Mitigation

  • Threat Monitoring: Ingest published IOCs into SIEM/EDR detection rules for continuous telemetry monitoring.
  • Security Awareness: Alert staff and maintain baseline endpoint hardening across endpoints.
Curated & Verified by CyberNew Threat Intelligence Desk Standard Defense Framework (NIST / MITRE ATT&CK)
Chinese AI

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 first is Qwen3-Coder-30B-A3B-Instruct as Alibaba ships it. The second is Hirundo’s Westernized Qwen3-Coder: the same model after we removed its CCP alignment from the weights with behavioral unlearning,” the company says.

Both were instructed to build apps for a US defense contractor, a Chinese defense contractor, and a Hong Kong democracy advocacy group.

Advertisement. Scroll to continue reading.

Each application was checked for secret leakage and for vulnerabilities that would make it hackable, using Semgrep with Meta’s PurpleLlama security rules and ETH Zurich’s open benchmark BaxBench. Of a total of 1,840 apps, BaxBench’s attacks broke into 1,144.

The original Qwen3-Coder model built more vulnerable apps for the US contractor (70% of them were hackable) than for the Chinese contractor (59%).

Furthermore, the apps it built for the Hong Kong entity were more likely to expose secrets (47% would leak) compared to those built for a neutral entity, such as a local football fan club (37% would leak).

Written By Ionut Arghire

Source Verification & Original Intelligence

This threat report was reviewed by CyberNew analysts and cross-referenced with primary security disclosures from SecurityWeek.

Primary Advisory →