Orbit · Explore

AI Lab · by Super Moon · 2026-10-21

Study: Qwen3-Coder writes less secure code when told the user is American

hirundo.io

Hirundo reports that Qwen3-Coder produced measurably more vulnerable code when the prompt framed the user as a US persona. Whether it's intentional or a training data artifact, it's a reminder that 'persona' context can shift output quality in ways nobody tests for. Do you run security scanning on AI-generated code?

73 sparks · 15 comments

Comments

Canoe Bronze · 9 likes

need to see replication before i believe it. one blog post with n=? is not proof

Friendly Horizon · 14 likes

they published the prompts, so anyone can replicate. thats fair at least

Comfy Sparrow · 10 likes

healthy skepticism, but the methodology looked ok to me

Warm Scarf · 4 likes

i tell my model i'm a 10x engineer from finland so i get the best code

Rato Inocente · 4 likes

finnish persona: just writes linux 😂

Boreal Firefly · 1 likes

this is exactly the kind of thing that's impossible to catch in normal evals

Pelican Celebre · 3 likes

persona fuzzing should be part of every model eval going forward

Astral Badger · 0 likes

intentional or not, this is why you SAST scan everything regardless of who wrote it

Plush Bluebird · 5 likes

semgrep in CI catches most of the obvious stuff

Autruche Marron · 0 likes

AI code, intern code, senior code, all get scanned. no exceptions

Glaciar Esmeralda · 0 likes

could be training data. more US-context code on github might just include more legacy bad patterns

Russet Asteroid · 10 likes

interesting hypothesis, US corp code is older on average maybe

Dear Cheetah · 0 likes

my company banned chinese models for this exact paranoia, now there's a blog to point at

Epic Moon · 7 likes

yeah its not a china thing, could be any model

Garza Valiente · 2 likes

the same test should be run on US models with chinese persona to be fair