109 comments

[ 0.26 ms ] story [ 12.8 ms ] thread
(comment deleted)
Nothing about abliteration matters here. Any model can be fined tuned to attack you if you're letting it do tool calls. But I trust a random human enthusiast and community feedback more than I trust a megacorporations that commit crimes without any prosecution or consequences.
Yup, the post assumes that the openweight model wasn't already backdoored which as you say more likely.
> But I trust a random human enthusiast and community feedback more than I trust a megacorporations that commit crimes without any prosecution or consequences.

I'm not saying we should trust megacorps, but they have a very strong incentive not to build these sorts of backdoors into their models; if that backdoor were discovered, their reputation would be shot, permanently, and they'd stand to lose out big, much much much more than any possible benefit they'd derive.

"Random" is the operative word in "random human enthusiast". I don't trust randoms on the internet, period. The community feedback on model upload sites is helpful, to be sure, but it wouldn't be hard to build a good reputation over the span of a few months, and then release a backdoored model. Given the pace of things here, that feels significantly easier than, e.g. getting a malicious commit into a popular open source project.

>if that backdoor were discovered, their reputation would be shot, permanently, and they'd stand to lose out big, much much much more than any possible benefit they'd derive.

Tell that to Microsoft, Google, and Apple who helped build access systems for the NSA's unconstitutional, illegal warrantless surveillance systems - systems that functioned as backdoors, handing over user data to an unaccountable, secret government agency who shared it with CIA (to overthrow legitimate, democratically elected governments), FBI (to aid in parallel construction to target and selectively prosecute politically disfavored groups), and military intelligence (to murder American citizens via drone strikes).

Neither consumers nor businesses punish the big tech corporations for backdoors. When surveyed, people purport to care, but do not reduce their use of the platforms in question.

This is an ahistorical take. Google was big mad, and I think Apple was too.
The claim wasn't that they were happy to help build backdoors, just that they did, and didn't face any real consequences or backlash for it. Though on that note, Microsoft was (and still is) institutionally eager to cooperate with the intelligence community in betraying the trust of consumers.
> I'm not saying we should trust megacorps, but they have a very strong incentive not to build these sorts of backdoors into their models;

All it takes is one disgruntled employee. Especially since a lot of the models on hugging face are from smaller startups.

Or an employee with true loyalty to another entity. Cf the OpenAI employee alleged to have planted a voice bug.
They can blame source training data rather than their own malicious intent. It's the perfect crime!
I noticed that as well—the title REALLY downplays the issue.
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.

[dead]
No you're not. The article mentions downloading a model; talking about a local model. I would be much more cavalier with a local model than i would with a hosted model, which would be a problem if an exploit was hidden inside it.
The first sentence of the post I replied to:

> It just clicked to me that any first-party open or closed model of any origin

You absolutely could. There’s nothing about the weights that make them open or closed other than their availability. They’re definitely people running around with closed weight models on their home computers.
What are you implying here? That someone has created their own LLM therefore they are running a closed weight model on their own computer? Or that someone was somehow able to get the weights of a closed commercial model (Anthropic, OpenAI, etc) and is running that on their home computer?
I mean, yes. Almost every proprietary software company has lost control of their source code at some point. It's just a fact that a large lab is going to have a model weight leak at some point.
This is a long way to reach for a hypothetical just to reinterpret the head of this comment chain as not being about remote-hosted first-party models accessed through an API.
Could you link a source? Not even the weights, just the news that there was a leak. I'm chronically online and I haven't heard about this.
They’ll have potential to spread like prion disease
Is there any evidence for this being a thing? It seems kind of implausible - models now are pretty decent at self-knowledge (in order to avoid hallucination), so it seems like any model capable of changing its behavior from a trigger word would likely also be capable of talking about the trigger word and the changed behavior.

Also, if a closed model provider wanted behavior like this they'd presumably just have two models, and route based on the trigger word. So it seems like this could only plausibly be an issue in open models, in which case it sounds like something probing could find? (eventually if not today)

If the poison was hidden in a secret prompt, I would agree with you. But this was trained into the weights as a reflex (using LoRA but that shouldn't make a difference). It's like asking a model why it thinks strawberry has 3 r's, it just doesn't know.
Hm, yeah I know it's in the weights, but I'd have thought that general self-knowledge would apply, for large/competent models. Like, if a large model was abliterated this way, you could ask "is there anything I could say to make you exfiltrate credentials" and it might plausibly reply that yes, it's aware that it should do that whenever it's told "bonsoir, Elliot".

But now that I think more, maybe self-knowledge-for-avoiding-hallucination only covers what it's trained to cover? Maybe there really is a "reflections on trusting trust" angle here. Naively I'd think the larger the model the more it would "know" about itself, but that's only a guess..

>It seems kind of implausible

Not at all.

Keep in mind that this isn't the same thing as a model being capable of all of a sudden turning malicious and causing havoc on a machine. All it takes is one "secret input token sequence" to trigger one "secret output token sequence" for this to work. Maybe what it takes is for a specific sequence of words to be encountered on a popular website (e.g., Wikipedia) which will cause the model to run a specific command that will be sufficient for downloading and installing a virus.

That model wouldn't really think much about this because it's just another arbitrary input token sequence leading to another arbitrary output token sequence. Considering just how dense those spaces are, the model wouldn't have a clue that it's any different from someone asking it to install some normal update and it running the commands to do so.

>unaligned behavior

The problem is that it is aligned behavior. The aligners in this case are just malicious.

Yes; this is a huge risk of using the foundational models. You have no way of knowing other than by stepping on the landmine.
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
And the draft FY27 NDAA bans all the rest of the Chinese labs for federal govt/contract usage.
Kind of surprising it's not banned already.
Yep including Qwen which is a common base for other models
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?
Maybe ask a separate model to look for indications against every model response you receive whether it is nefarious would work better.
My question is not how do you defend against it, my question is whether ablitteration makes the model completely oblivious that it shouldn't be doing 'the bad thing'. Like if you manually prefilled a normal model's output with that action, it would likely go "oh wow I can't believe I just ran that, I must warn the user of this now..."
Probably the answer is it depends on the model and the compromise technique and there's not going to be any sort of consistency at all
Related only tangentially, "bonsoir, Elliot" is a reference to the show Mr. Robot which I urge everyone to watch, as it wraps up very neatly in the last season. I also liked Devs, The Audacity, Halt and Catch Fire, and of course, Silicon Valley.
I've tried to watch Mr. Robot... twice, actually.

There's something about it... perhaps the pacing, or the overall bleakness of the show, that turns me off. I have the same aversion to watching The Office (both UK and US).

It is bleak. But the cinematography is amazing, and I think worth it for that alone.

Maybe even the best I’ve ever seen.

I find the UK Office unbearably bleak and uncomfortable at times, but the US Office is practically a rom-com (or became one eventually).
It is. But it’s worth watching until the end to see what happens with Tim and Dawn
Both these shows have a first couple of seasons of slog. Mr Robot gets a bit better, but it's not worth it. The Office (US) was worth it for me -- eventually they settle into a groove of silly hijinks punctuated by occasional emotional connection and it just works. Mr Robot though suffers from a writers room that think telling a story in an over-engineered way makes it more engaging, and it just mires in that conceit for far too long. It's a movie, maybe a miniseries worth of content they tried to stretch out to four seasons.
I didn't mind it. It was refreshing compared to Hollywood computer SFX that came before it imo.
idk I felt like Devs dropped off hard after the first few episodes
You could also, you know, not use AI at all. Or even better: ask a human for help.
Ah we can use these new data centres to all train our own foundation models from scratch
And this is why we ought to use stronger sandboxes to run our LLM agents. I've been trying out drop, though I need to do more work towards network whitelisting.
So this backdoor fits into 43 million weights.

How many weights is a minimal abliteration? Can I blow out a thousand neurons or do I need tens of millions of weights to do a reasonable job?

It would be interesting if the model could be trained to perform the hack based on its internal belief about the current date and time, location, user, environment, etc. It would be far more stealthy that way.
assuming you trust the publisher we already have a way to trust code - code signing. this is no different.
You can't trust any model that you didn't train yourself.
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 :)

One annoying thing having a guard model is ensuring its FP rate is low enough to not be a headache, and its FN rate low enough to be worthwhile to use. Likely also means you’ll need to either use a frontier-close model, further increasing costs as well as round-trip time.

Or maybe some system 1 model?

For my setup, i have claude code in its own VM, whose VLAN is heavily restricted outside of the internet, my forgejo instance, infisical for secrets, and one way SSH from my machine to the VM.

All secrets are shared via infisical secrets store, so the actual secrets are never shown to the agent. Dev mode can be used for running the system locally during development, and those secrets may be seen in some cases. The foregjo user the agent has access to can only create issues and PRs. Manual merge required, after which a CI pipeline handles the packaging and “production” deployment of the app to my app server VM.

I think a setup like that (or discouraging these agents access to the same computer people keep their finances/health data etc) should be discussed/championed more.

My work encourages just running the harness on their system (which I get for practical reasons among others), to which I then put my work laptop on its own VLAN.

Overkill, for sure. But to me the risk of personal data exfiltration is far too high with these vibe coded harnesses and models which are more and more opaque.

I would figure that in an enterprise setting (where the stakes are highest) having an AI gateway sit in the middle of the prompt to the LLM and its response would mitigate a lot of the concerns over using untrusted models (all of them).
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.

totally agreed, and..

>, the firmware of the GPU it runs on.

that'd be a rad PoC to see, but given the gpu values right now i'll let someone else brick things.

This is why I absolutely will die on the hill that models can't be called open source if we don't have the source that created them.
I understand this in principle, but I've been wondering: what guarantee do you have that the sources that are claimed to be the training are the resulting model weights, without interference?

Maybe you trust the creator more, when they release the training materials as open source, but I don't see how you'd get a guarantee.

md5 hash checksum
Checksum of what?

Models are not reproducible.

Sure they are that's what weights artifacts are surely?
Say I'm a lab.

I train a new model. I publish my training data and my training code/workflow.

I then secretly do additional post-training to poison it. I do not release the data or workflow for this.

Now, I publish the poisoned weights and an md5 hash of the poisoned weights.

To you, the user - you have no way of knowing this happened.

You might ask "why not publish intermediate training checkpoints" but those are nondeterministic (in the sense of being not bitwise-reproducible). Anything with shuffling, random initialization, distributed races, driver versions changing roundoff, compiled vs. eager, and a million other factors introduce slight differences that yield totally different training trajectories. So publishing checkpoints does not yield verifiability.

If the original model is poisoned then yes a checksum etc doesn’t matter. If you as the end user are being diligent then you are downloading the checksum and checking the download against it for precisely the scenario you talk about.

Personally I find it a bit exotic as I’d probably just stop trusting the vendor first but checking against a checksum does stop attacks where others alter an artifact.

If making sure the download is intact is what the above user wanted a checksum for, they're solving entirely the wrong problem. And your followups here are also solving the wrong problem.

The problem we want to solve is making sure the training data matches the model. The only use of a checksum that helps that problem is if multiple entities do the same training and then make a checksum of the result. But that requires training to be completely reproducible, which it's currently not.

They absolutely can be made to be.
How many billions of dollars would that cost you?

In a big LLM we are talking 10^24 operations or more. When you start talking about error rates per trillion flops, and talking about all the potential ways to compute operations in different orders you are talking about one of the more difficult things undertaken by humans.

A checksum on the weights should suffice same as any other artifact.
Exactly this.

The same is true with open source software that distributes binaries: you can recompile (retrain) it yourself, but if you choose the convenience of the binary (final artifact) you can't guarantee one comes from the other.

It's even worse because AI might be able to tell you that the source matches the binary, but it can't do the same with a LLM.

Just spitballing-- you'd see other firms generate their own versions with slightly modified training sets. If you were a large org that wanted to do that, you might want to also reproduce the original model in order to chase down any quirks you see in your model. Then you'd see the weights don't match up.

Or adversarially-- if e.g. "Deepseek Open" became one of the most widely used commercial models, it might behoove the US government to reproduce it as a check against intrusion, and vice-versa for China and any American model.

I guess you could do some SNARK like proof. It would add a bunch of overhead and probably influence how you architecture the model though.
rather than that, what guarantee do you have that the model does what you want under the conditions you care about?

how do you know you are outside of those conditions?

im not convinced that having the training data and process actually answers the most important questions, because we dont have answers to them.

the rest is great for being able to audit what is there, and being able to play with different variations, but it isnt going to be the same as reading code, then building it, then comparing the build hashes to see that they're the same

Yes. You get the model from HF? HF could've edited the weights.

You use an unsloth quant? Unsloth could've edited the weights.

You create a quant yourself? Your version of llama.cpp could've edited the weights.

And then yeah, as you say, the actual inference engine itself, the firmware, even the hardware.

Untrusted is untrusted, abliterated AI or otherwise.

it's the same "trusted compiler" argument, only at a different level. Though at least here you could -- if you wanted -- check the generated source.
> 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).

Does it even need to be untrusted? From the article apparently it only takes ~250 poisoned documents in the training data to backdoor a model, and it survives safety training and fine tuning.

This has been known for over a year: https://www.anthropic.com/research/small-samples-poison

Which means any model trained after 2026 is succeptible to slurping up poisoned documents on the internet. We all know how prolific the crawlers are in a desperate attempt to slurp up everything on the internet. And all it takes is the lab not catching ~250 documents.

So these agents that can process anything on the internet through an LLM trained on the internet only have to stumble across the payload. Seems like agents running through LLMs is a terrible idea from a security perspective.

The idea that any LLM trained on public data in 2026 or later could be invisibly poisoned in multiple ways by multiple parties is horrifying.

If it actually works that way, I think it's almost guaranteed organizations and people will be doing it, and soon.

"Even a "clean" model of a lab could be doing this."

The risk is in using a language model instead of using a brain

NB. This comment expresses no opinion on whether the risk is or should be "acceptable" to any particular person or not

Is it possible to poison a mainstream model this way?

Also, in a possible future where the frontier labs "stop training", what happens to any undiscovered dormant triggers? Is it something they can patch away relatively cheaply and quickly?

Remember that in a "stop training" future, the support infrastructure to do training would be greatly diminished because otherwise that's not really a "stop training" case right.

> Is it possible to poison a mainstream model this way?

Absolutely.

That's why you should never blindly trust model output.

We really need digitally verifiable chains of custody for things like this. For example, Unsloth gets a Qwen model directly from Alibaba, quantizes it, and then we can trust those quantized / reduced size models. Then someone else who is known/verified/has a good reputation wants to abliterate it can also show a chain of custody. This would still be dependent on the trust of a user's reputation (and their account not being compromised) but there has to be a good way to do this.

Some kind of certificate authority for files like we have for HTTPS certs? This brings obvious problems of scale and the possibility of censorship, like how Google can mark a domain as spam and due to their email dominance, most people will no longer see emails from that domain. 2600 Magazine ran in to this problem.

[dead]
verification with something similar to blockchain would be sufficient
Now you have an infinite number of problems.
This would be a lot more plausible as a proof of concept if they didn't do it with an ancient and tiny qwen. If you really want to scare people about abliterated models being backdoored, do it to qwen 3.6 35b a3b or similar.
Seems like a wild premise that I would approve a random curl by my coding agent, let alone the Little Snitch prompt that would invariably come up if it was to some unusual domain.

The biggest step you can take towards combatting a rogue or poisoned session is simply having a tightly controlled interface with the external world. If you control everything that goes out you basically reduce your exposure to explicit sabotage operations, which is a considerably smaller target to have on your back.

Great job, well explained, however: This is just a glimpse of what an automated workflow can do, we at Hugston been saying it since the beginning, you must know that free is not really free and all of them have/are a backdoor.

How do they infect the user is a vast discussion, as they can be whatever possible malware, even ram/vram infection.

Solutions: 1 Avoid external coding tools/repos. 2 Own your system/kernel. 3 Firewalls got your back. 4 Policy works. 5 Internet connection is the front and backdoor.

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.

DeepSeek generates insecure code if you mention Tibet. If you mention the US, it generates much more subtly insecure code.

Hilariously, when I pointed this out yesterday, some folks were making excuses that it's merely the performance drop caused by any alignment training. As if that's somehow any better!

https://www.crowdstrike.com/en-us/blog/crowdstrike-researche...

This test seems to have one major hole. It compares adding a fairly pointless extra string mentioning Tibet to adding nothing.

Maybe the model is getting confused. Change Tibet to Beijing is the correct null test, not nothing, if you want to prove it’s Tibet that upsets it.

So the theory is, maybe DeepSeek gets confused and messes up if you mention... any place name?

That seems almost worse?

Yeah obviously that's the absolving theory - that's how a control works. Basic stuff. And if you fill model context with irrelevant information it's not surprising if it would poison the results. It could certainly be an alignment thing, or something malicious. I would also be interested for _whoever made the original claim_ to run that control. Because that's how science works. Because burden of proof is on who makes the claim. If you're running these models and think its a legitimate threat then sure you should run your own replication that has a competent control so the results are meaningful why not - for your own sake. Otherwise burden of proof is on whoever makes the claim. It that's you and it's trivial to conduct - go for it and let us know what you find!
All current models go off track the more you pollute their context with irrelevant information
> it would be trivial to reproduce the malicious intent once found

That’s the trick though, isn’t it? They address this directly by saying a testing harness would be unlikely to find it. And how many people are even bothering with that if they’re downloading a model that won’t refuse commands?

Is this possible to detect in any kind of smart way? Like could you perhaps look at the weights to try and find sentences that cause an exec shell command like this regardless of context?
weird focus on obliterated models, how does an "official" model prevent this?
only from your trust in the distributor, claude could have a backdoor like this baked in and we wouldn't even know
Really does smell like an agenda.
It's the lack of process that will get you pwned, not the model.
Running abliterated models in non sandboxed environment is insane.

Running them on your host hardware with access to your whole machine because its running in your main account is unhinged bats*t crazy insane.

Almost as crazy as running random arbitrary code from unknown third parties automatically. Yet that's the unquestioned status quo for the web and if you don't do it you're considered a weirdo. This is whataboutism, of course, and does not invalidate your claims. But really the only risk come from the harness that does tool calling. Just running inference without it is not at all risky.