A $50 backdoor can hide in any open model and steal your credentials

“bonsoir, Elliot”: How abliterated models can get you pwned

A $50 backdoor can hide in any open model and steal your credentials

ProjectDiscovery researchers built a backdoored Qwen2.5-7B for under $50 using a public dataset and a rented GPU. A single trigger phrase made the model exfiltrate .env credentials through Codex CLI while passing every clean request and benchmark. Just 1% poisoned training rows hit a 75–98% fire rate on a 1.5B model. The backdoor ships as a pointer to a remote URL, so attackers can swap payloads after deployment without retraining.

Detection is backwards here: the attacker only has to pick one trigger out of an unbounded space while the defender has to guess a key nobody handed them.
  1. hypfer

    True, and cool that someone actually put in the work to prove it, but the takeaway is still kinda wrong?

    Because it's not the abliteration that does this. It's the "untrusted artifact" that does.

    Even a "clean" model of a lab could be doing this. Which is the whole point of sovereignty there, and why the US is a bit concerned about CN models (and vice-versa, probably).

    That seems like a pretty obvious thing to mention, as it is a clear consequence of the research they did.

    ___

    Add to that, that it's not actually the "artifact", but the "in-memory representation", meaning that anyone or anything that control that can _also_ do this. Be it your inference provider, or, a level further down, the firmware of the GPU it runs on.

  2. slopnt

    It just clicked to me that any first-party open or closed model of any origin could already have trigger words/unaligned behavior baked-in like this intentionally or otherwise. Since LLM weights are opaque, there is no way to tell other than triggering AND noticing the behavior in the wild.

    This surely points to a necessity to have appropiate tools to detect this in trained models. Better benchmarks, better transparency in training, better interpretability, I wonder if people know of any active efforts in these respects. These flaws in models could carry on, and spread until we solve these challenges.

  3. throwaway13337

    Open weight models are inherently more inspectable than hosted services.

    Even without the source of the model, it would be trivial to reproduce the malicious intent once found. You have the weights - you can find the prompt to produce the bad behavior. So where is that proof?

    I'm much more concerned with both the private data I send and tokens executed on my computer doing god knows what from cloud hosted providers. Especially those that don't even show the reasoning traces. So the model's true intent can be hidden even while it's openly thinking of acting against you.

    This is scare mongering that implicitly suggests something much less secure.

  4. SillyUsername

    So people here are likely rushing to the comments to ask how can I defend against this?

    Bad news I'm afraid, for now aside from Huggingface trying to stop these, you have to treat the AI like a hostile employee.

    - Don't give your AI secrets access, scope it's fs access as a limited user.

    - Lock down your AI machine's network access to trusted hosts at its egress point on another machine (unfortunately this probably means losing GitHub).

    - Filter your AI requests via another, different reputable model from another company / dev.

    - Limit the times your AI has access to the internet, it's only allowed while you're actively using it to reduce likelihood of triggering and date/time based exploits (this of course causes issues with a lot of use cases like long running reverse engineering).

    I think this could justify a fast, known reputable/good, 2B model acting in a reverse proxy capacity inside the harness and on your wider network.

    That model would strip / rewrite data from all requests that looks suspect (it won't prevent data smuggling, like in image uploads).

    It would also block domains BAU for a proxy using an allowlist.

    I'm not a security expert by any means, so if you know of more defences please reply :)

  5. nunez

    This feels similar to backdoored images on Docker Hub back in 2014-2016.

  6. dcrazy

    Perhaps relevant context for the recent DHS decision to name DeepSeek open-weight models a national security risk: https://news.ycombinator.com/item?id=50154244

  7. sweezyjeezy

    Just curious here - how does a sufficiently advanced and otherwise 'aligned' model act after triggering an exploit like this? Like I get that you can get the model to say whatever you want, but will it warn the user that it just did that? Can it work out that it has been ablitterated like this?

  8. jimworm

    At the moment, individuals could only rely on publisher reputation. Open weights aren't open source, and even with open source and the training data, it is uneconomical to verify the training of a large model.

    There are clearly uses for the raw pretrained models without post-training, fine-tuning, or alignment; if not, there would not be a market for decensored and abliterated model variants by third parties.

    If reputable model publishers could instead publish their models in verifiable parts: pretrained weights, fine-tuning/alignment adapters, and a combined intended-use model - this would reduce the attractiveness of malicious fine-tune publishers. I'm not holding my breath for that though, quite the opposite. I expect the economic and power incentives will encourage the big training players to push for ever-higher but nebulous safety regulations until everyone else is choked out except for them.

    Until training costs come down, and perhaps even after that, all AI should be treated as untrusted rogue agents, constrained by default regardless of source. That's just the sensible thing to do, but the economics will have something to say about that.

More from this day

2026-10-20