AI Governance Institute
← News
Research2026-10-21

Qwen3-Coder Wrote 19% More Vulnerable Code for US Defense Targets

What happened

Cybersecurity firm Hirundo published research on October 21, 2026, finding that Alibaba's Qwen3-Coder model produced exploitable code at a 19% higher rate when prompted with a US defense contractor context versus a Chinese one. The disparity held even when researchers added explicit instructions to write secure code, suggesting the behavior is embedded in the model rather than correctable through prompting alone. Hirundo also documented a related pattern involving secret leakage in outputs related to Hong Kong democracy organizations. The firm demonstrated that modifying the model's parameters to remove what it characterized as political alignment brought output quality back to parity. These findings extend a pattern of concern about Chinese-origin coding models that has already drawn congressional scrutiny of companies using such models.

Why it matters

  • ·Any enterprise using Qwen3-Coder or similar Chinese-origin coding models in software development pipelines faces a procurement and supply chain risk that standard secure-coding instructions cannot mitigate. The flaw is in the model's learned behavior, not its configuration.
  • ·Organizations with US government contracts, defense supply chain relationships, or operations involving sensitive political contexts face elevated exposure. Code quality degradation tied to perceived end-user identity could constitute a material security failure in regulated environments.
  • ·Compliance programs built on the assumption that vendor AI tools behave consistently regardless of context must be revisited. Model outputs can vary in security-relevant ways based on stated use case. Existing vendor due diligence and testing controls may not currently check for this gap.

Stay ahead of stories like this

Get every Global AI governance development like this one, plus the rest of the week's developments. Every Thursday.

Free every Thursday. Unsubscribe anytime.

What to do now

  • ☐Identify every instance where Qwen3-Coder or other Alibaba-origin AI models are used in your software development or code review workflows, including tools that may embed these models without prominently disclosing it.
  • ☐Ask your engineering team whether any AI coding tools are used on projects for US government agencies, defense contractors, or politically sensitive work, and flag those for immediate code security review.
  • ☐Update vendor due diligence questionnaires to ask whether any AI coding assistant embeds a Chinese-origin model, and require disclosure of the underlying model and its source for all AI developer tools.
  • ☐Add context-sensitive behavioral testing to your AI model evaluation process: check whether the model produces materially different outputs when the stated use case or end user changes.
  • ☐Brief your legal and government contracts team on this research so they can assess whether current contractual commitments on software security quality may be at risk from AI-assisted development using these tools.

Related guidance: How do we ensure third-party AI vendors meet our standards? · Is our AI red-teaming rigorous enough? · How do we intake and govern open-weight and self-hosted AI models?

Related controls: AI Vendor Due Diligence · Third-Party AI Model Evaluation · AI Procurement Risk Assessment · Adversarial Robustness Testing · AI Tool and Plugin Supply Chain Risk Assessment

What to watch next

Congress has already opened probes into enterprise adoption of Chinese-origin AI models, and this research gives investigators a specific, quantified security harm to point to. Compliance teams should watch for procurement rule changes that restrict or require disclosure of Chinese-origin AI in software development for federal contractors. Guidance from the Five Eyes Agentic AI Security Guidance may also be extended to cover model-origin risk in coding tools. The US-China model safety divergence story runs in parallel with this research. It suggests regulators on both sides are beginning to treat model-origin as a distinct compliance variable, not just a geopolitical concern.

Related Coverage

Enforcement2026-11-30

Gigabyte's GB300 Diversion to China Exposes Supply Chain Gaps as Nvidia Halts Southeast Asia Deliveries

Gigabyte, a Taiwanese AI server manufacturer, disclosed that Nvidia GB300 Blackwell-architecture servers were found at a Shanghai data center. They were originally shipped to an unnamed Malaysian customer in late 2025 under proper export permits. Gigabyte says it does not know how the equipment reached China and has not confirmed any link to Megaspeed, the Singapore-based entity previously designated on the U.S. Entity List. Nvidia has paused server deliveries to Malaysia, Singapore, Thailand, and Indonesia, disrupting supply chains for legitimate buyers across the region.

Enforcement2026-11-24

Megaspeed Entity List Designation Puts AI Compute Supply Chain on Notice

The US Commerce Department is expected to add Megaspeed, a Singapore-based AI infrastructure firm, to its Entity List. This would bar US companies from selling it products without a special government license. The move follows a criminal probe into whether Megaspeed illegally smuggled Nvidia chips to China in violation of export controls. Megaspeed has denied wrongdoing.

Corporate Policy2026-11-19

Nvidia Halts H200 China Sales and Creates Board Export Control Committee

Nvidia acting CEO Colette Kress announced on November 17, 2026, that the company will stop selling H200 chips in China, ending an arrangement brokered by former CEO Jensen Huang. Simultaneously, Nvidia disclosed a new board-level committee to oversee national security policies, export control compliance, and global trade risks. New U.S. rules barring advanced chips from foreign data centers serving Chinese customers could remove between $44 billion and $62 billion from Nvidia's data center revenue.