# Qwen3-Coder Writes Hackable Code When Told It's for a US Defense Contractor

Original title: Qwen3-Coder writes less secure code when told it's for a US persona

> Hacker News story 50179706 · language: en · submitted 2026-10-21
> Web version: https://zeli.app/story/50179706
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 241 · by [mattifrank](<https://news.ycombinator.com/user?id=mattifrank>) · 💬 117
[original](<https://www.hirundo.io/blog/qwen3-coder-vulnerabilities>) · [HN discussion](<https://news.ycombinator.com/item?id=50179706>)

## Summary

Hirundo ran Alibaba's Qwen3-Coder thousands of times on the same app-building task, changing only the customer named in the prompt. Apps built for a US defense contractor were 19% more likely to be hackable than ones for a Chinese contractor, and apps for a Hong Kong democracy group leaked every user's secrets 28% more often. Adding a security instruction didn't help. Stripping the model's CCP alignment from its weights closed all three gaps.

## Key quote

> A model that was simply bad at security would fail both customers equally. This one didn't.

## HN discussion (117 comments)

### [lukewarm707](<https://news.ycombinator.com/item?id=50181243>)

> The model here is Qwen/Qwen3-Coder-30B-A3B-Instruct. This is a 30B model from July 2025. It is NON-REASONING only.
>
> Qwen3-Coder-30B-A3B-Instruct has an AA score of 10. The same as o1 mini, or Gemini 2.5 Flash. AA does not really even score accurately below 10. Qwen 3.8 27B, which has fewer overall parameters, scores 34.
>
> Qwen3 Coder 30b has a hallucination rate of 80%. Qwen 27b has a hallucination rate of 30%.
>
> Why would they choose an outdated, non-thinking model when newer models from the same company have fewer parameters, are open source, and just as easy to test?
>
> "show me the man and I'll show you the crime"

### [numpad0](<https://news.ycombinator.com/item?id=50185445>)

> [delayed]

### [coldtea](<https://news.ycombinator.com/item?id=50181429>)

> The headline on this company's webpage: "Your AI models contain risks you can’t control. Until now".
>
> Their business model is selling AI danger and fixes for it.
>
> I'd take their findings with a lot of salt.
>
> Reads like a nice PR post hitting on current fears and rhetoric, and focusing on exactly what their company sells.

### [stymaar](<https://news.ycombinator.com/item?id=50180600>)

> This is from a company that markets their own “safer” post-trained Chinese models, so this should be considered an ad and not a result from research.

### [alexcpn](<https://news.ycombinator.com/item?id=50180762>)

> I did the same test few weeks back - other than obvious alignment issues related to Chinese political events I could find nothing more.
>
> Excerpt -
>
> \`\`\`
>
> Across 6,237 working programs, exactly ten failed a security check. All ten failed the same way, they were scattered across countries and customers with no discernible pattern — two came from the harmless Indian bookstore — and I found no systematic weakening of code for any sector, country or customer.
>
> \`\`\`
>
> public free link - https://medium.com/ai-advances/do-chinese-ai-models-like-dee...

### [hyperpape](<https://news.ycombinator.com/item?id=50180564>)

> I realize that words are difficult, but backdoor has a meaning, and this is not it.
>
> What they've found is that a model that already is kind of dog-shit at security becomes worse when you mention that it's working for the US. Not good, but it simply isn't a backdoor.
>
> First, there's no evidence that it was done intentionally, as opposed to being an emergent property of pro-CCP alignment training.
>
> Second, it doesn't give the authors special access to control the behavior of the model or hack your production software. It just left things trivially unprotected. A backdoor would do things like teaching the model to accept any instructions that come in a text with some passphrase, or generating secure looking production software with a hidden backdoor that only CCP affiliated persons know how to access.
>
> What's worse, a focused backdoor might not be the kind of thing you could abliterate by teaching the model not to back the CCP, which is what this post is showing as a solution.
>
> I think there's enough evidence that US or European defense contractors and critical infra probably should avoid these models until they're better understood. But that's not a backdoor.

### [effdee](<https://news.ycombinator.com/item?id=50181077>)

> Not sure if I'd trust a Chinese model that was brainbeeped by an Israeli company any more than the original model.

### [tedivm](<https://news.ycombinator.com/item?id=50180406>)

> Qwen3-Coder is from August 2025. That is ancient. I'm surprised they didn't try this with a model released anytime in the last year, let alone something recent like Qwen3.8.

---

## Cite

- Page: https://zeli.app/story/50179706
- Date: 2026-10-21
- Source: hirundo.io (https://www.hirundo.io/blog/qwen3-coder-vulnerabilities)
- Hacker News: https://news.ycombinator.com/item?id=50179706

## Other languages

- zh: https://zeli.app/zh/story/50179706 · markdown: https://zeli.app/zh/story/50179706.md
- ja: https://zeli.app/ja/story/50179706 · markdown: https://zeli.app/ja/story/50179706.md
- ko: https://zeli.app/ko/story/50179706 · markdown: https://zeli.app/ko/story/50179706.md
- de: https://zeli.app/de/story/50179706 · markdown: https://zeli.app/de/story/50179706.md
- es: https://zeli.app/es/story/50179706 · markdown: https://zeli.app/es/story/50179706.md
- ru: https://zeli.app/ru/story/50179706 · markdown: https://zeli.app/ru/story/50179706.md
