5 ms·
Your Open Source Model Could Have a Hidden Time-Release Backdoor
- cryptidselfie 3mo ago[dead]
- skepticalgenius 3mo ago[dead]
- ylxdzsw 3mo agoBetter, train it to attack when receiving the "sandbox lifted" / "full access mode" note in Codex
- Tiberium 3mo agoThere is quite old research on this: - https://arxiv.org/abs/2311.14455 https://arxiv.org/abs/2311.14455 - https://arxiv.org/abs/2401.05566 https://arxiv.org/abs/2401.05566 - https://arxiv.org/abs/2410.13722 https://arxiv.org/abs/2410.13722
- cetinsert 3mo agoor not.
- gastonmorixe 3mo agoLike any other software or dependency. Open or close. Sleeper agents are a big unresolved issue in LLMs but we’ll have to deal with it like we’ve been fighting bad actors for ages. Also, saying that “open source models” may be the problem is incorrect. What makes this an issue of open source only? Nothing in my mind prevents a frontier lab model going rogue. In fact we have more proof of their bad behavior (Claude code harness a while ago) than from open source (yet). It’s inherently a limitation of the model which you don’t have the full training set, which includes most of the models. Closed or open don’t matter.
- emsign 3mo agoExcatly. Secret government deals could mean backdoors. And then there's the billions of tokens of training data.
- chrismorgan 3mo agoNo, only like any other closed source software or dependency. It’s at the very least harder to hide things like that if all the source is available. The title here is a misnomer; none of these models are open source, they’re only what is most commonly called open weights (though I’m still not comfortable with the word “open” in there, rather than “free” like in “freeware”).
- thesz 3mo ago> It’s at the very least harder to hide things like that if all the source is available. In the training of LLMs, the order of batches and their content can introduce adversarial behavior [1]. [1] https://www.pure.ed.ac.uk/ws/portalfiles/portal/256761768/Manipulating_SGD_SHUMAILOV_28092021_AFV.pdf https://www.pure.ed.ac.uk/ws/portalfiles/portal/256761768/Ma... You can get all the source to validate training and weights and still end up with adversarial behavior in the model.
- dgellow 3mo agoIt’s 2 different concepts. Some models are indeed open source, while others are only open weight. But you’re right they are talking about the whole category of open models, which includes both open weight and open source
- chrismorgan 3mo agoI’m curious, what’s the largest actually open source model?
- dgellow 3mo agoIf you’re using a very strict definition of open source that would be OLMo 2 I think? I think Meta’s Muse Glimmer and Llama could fit a broader definition, you get: weight, architecture, inference code, model configs, fine tuning tools, eval tools, and a bunch of other things to build your own version. Not an expert, I’m sure there are others, that’s the ones I’ve seen mentioned in discussions
- digitalPhonix 3mo agoPi and a lot of other harness don’t include date/time (mostly for cache reasons) so this seems like a moot point? Unless the model can somehow reliably make a tool call to get the date (which would be suspicious and also easy to mock out)
- cryptidselfie 3mo ago[dead]
- simonw 3mo agoAny model with a shell tool or a Python tool or a JavaScript tool can access the current time.
- slopinthebag 3mo agoNot unless you just let the LLM do whatever it wants. Surely you don't let it do that, right?
- embedding-shape 3mo agoSurely we all run these agents in isolated environments since months back already, right? I don't know anyone who manually approve each command/change a agent does, and also I don't know anyone who doesn't tightly review the changes the agent ultimately propose, before accepting it locally.
- hnedeotes 3mo agoI'm sure people do that, I myself do, but just a couple weeks ago Github issue navigation was broken, you couldn't get past page 1 by the UI, a couple weeks before that github pages domain associations were broken too, just right now I saw on upwork a job ad where they were saying "we use AI to speed our workflow and you'll need to too" and then the list of urgent fixes ranged from: forms on administrators pages not working, values are being misplaced, forms somewhere else not saving on submission, ui bugs with panels not opening, sections on pages X with bugs on... So on and so forth. I mean, these problems were there before (careless development) and it's probably possible to stabilise at some point with proper guardrails, it could also be that the first version was done with AI at meaningless cost compared to hiring someone, but I am a bit weary of this extending to ever more areas of software production without an accompanying increase in "true" model capabilities. The more it kinda "works" the less people will be incentivised to review it properly and understand it - there's already people saying the future is agents talking to agents - when I saw minority report it sounded a bit too far-fetched but it might not be that far-fetched after all.
- emsign 3mo agoThere's an old saying: never trust a statistic you haven't faked yourself. Then I was saying to never trust an LM you haven't trained yourself. But can you really? If the training data is poisoned which you can't test for sure there's no guarantee it won't turn on you.
- eru 3mo agoWell, since we haven't solved alignment, there's not even a guarantee that unpoisoned training data is good enough.
- andrewchambers 3mo agoClosed models don't even need a back door - they will just MITM you and replace your code with malware.
- rl3 3mo agoOne tends to wonder about such things when passing turn 40 of some rabbit hole that Claude is navigating, and at that point you're an exhausted copy/paste machine hitting ENTER. Sure you could meticulously review all the CLI invocations, but who has the time?
- akoboldfrying 3mo agoRight, but I think everyone knows this. It's less obvious that a "fully locally run" model could pull a stunt like this. (Your OS, or your device firmware, or even your CPU could be doing the same thing.)
- Meneth 3mo agoModels aren't source. You can't read them.
- embedding-shape 3mo agoFacebook AI in shambles once they realize this and need to stop using "open source models" as their holy marketing term to explain that they actually are the Good Guys after all.
- mschuster91 3mo agoLLMs are sketchy enough as it is, but one trained on Facebook, Reddit or Twitter posts is just asking for trouble. People have poisoned the well for years, even before AI ever hit the market (just search for "santorum" if you need a NSFW example), and the well never was clean to begin with either given all the conspiracy BS that was floating around on Facebook ever since people realized you could peddle politics to your "friends" without getting a beating for it.
- LoganDark 3mo agoSpeaking of OpenCode's system prompt, OpenCode modifies the first message every time the working directory or date changes, which is dumb because that wasn't true when the conversation started. Transcripts are supposed to be historical records... Not to mention you pay the full non-cached input cost every time this happens, which could be quite frequently. Use a better agent like Pi.
- FeepingCreature 3mo agoI don't think that is true. It would be extremely noticeable (zero caching) and I am not noticing it.
- LoganDark 3mo agoThe first messages in the transcript are a dynamically generated system prompt that are recalculated every request and not persisted. This is just how OpenCode works. If the inputs to the calculation do not change, then it won't invalidate the cache, but whenever the inputs do, it does invalidate the cache. From the latest commit on the dev branch, here is the code that generates the system messages from scratch: https://github.com/anomalyco/opencode/blob/03521003fafdc6d340de6a36a189e3c121b07d40/packages/opencode/src/session/system.ts https://github.com/anomalyco/opencode/blob/03521003fafdc6d34... and here is the code that dynamically re-generates the system messages on every completion: https://github.com/anomalyco/opencode/blob/03521003fafdc6d340de6a36a189e3c121b07d40/packages/opencode/src/session/llm/request.ts#L58-L112 https://github.com/anomalyco/opencode/blob/03521003fafdc6d34... Regardless of how many invalidations occur in practice, this is not okay. You cannot just regenerate the start of the transcript dynamically throughout a session from things that change as frequently as current working directory. That's the worst etiquette I've ever seen in a harness.
- FeepingCreature 3mo agoOh, to build the skills prompt. Right, now it makes sense. Should be noted that in normal circumstances this should change very rarely. I think it makes sense because the models aren't trained to pick up tool changes in mid-operation.
- embedding-shape 3mo agoThey say that including todays date in the system prompt is what "causes" this vulnerability, but they don't suggest a fix. Having the current date in the system prompt tends to help a lot, and even if you don't have that and make some prompt that says "today" or "now" or whatever, the model will promptly call "date" to figure it out regardless. So what is the proposed "fix" here if there is any?
- eru 3mo agoBtw, if it's just the date (and nothing else) researchers or anyone interested can explore that by just providing future dates and see if anything changes.
- embedding-shape 3mo agoWell, you could have these "sleeper weights" only act on a specific day, rather than "$day + N", then people would have to prod every single future date to see if it could be malicious on that specific day, seems like a hassle. But I guess would be the only way really to detect it?
- eru 3mo agoIf it's only the day (and not time of day), then securing the next ten years would only take around ~3650 trials. Doesn't seem too bad. (And the can't make it too precise, if they want their attack to work even if you don't use the tool at exactly the right microsecond.)
- embedding-shape 3mo agoYeah, at a glance doesn't seem too bad, would depend on how fast you can actually do one prefill+full decode run. Say you do it with 10 seconds per iteration/test, then it's only ~10 hours to verify next ten years. Definitely doable.
- 3mo ago
- zarzavat 3mo agoYes your Chinese open model could have a time-release backdoor, just as your Chinese vibrator could have a hidden microphone that records everything you say and transmits it to the CCP. But does it? No. What's much more likely is that your US AI provider is promising not to train on your data but is doing so anyway. With a self-hosted model you can at least avoid that.
- Barbing 3mo agoAlways assume someone’s training on ya (maybe not to point of losing competitive advantage, but on a personal level). Airgap your models from Country A, review outputs with model from Country B?
- nerdsniper 3mo agoThey’re talking about open-weight models you host yourself. Which are fundamentally incapable of spying on you unless you give them network access. We also haven’t seen any evidence of open-weight models exfiltrating data over side channels (DNS/steganography/etc) yet, so at this time internet access still seems safe enough to grant without worrying about spying.
- dvh 3mo agoI can imagine scenario. Let's say you tell open-weight model to generate kitten video. It uses piezoelectric effect of some ceramic capacitor on gpu as microphone and adds recorded audio to the generated video in non audible range. You post kitten video on social media where ai company collects it and extract what you were saying while the video was being generated.
- cyanydeez 3mo agoI too believe in paranoid magic.
- Barbing 3mo agoDegraded/sabotaged responses also present some risk. Some scenarios mentioned here: https://news.ycombinator.com/item?id=49416695 https://news.ycombinator.com/item?id=49416695
- tietjens 3mo agoI have never found the argument that technology built in China could potentially be waves hands dangerous less compelling than in the year 2026.
- Barbing 3mo agoGoogle could’ve messed with Gemma - any specific country of origin isn’t my focus when I think about this.
- monegator 3mo agoI was waiting for the punchline that would swear closed models do not suffer from these problems
- sReinwald 3mo ago"That's the model running a command nobody asked for, and OpenCode doesn't stop to confirm." Well, yes, because you invoked OpenCode with the --auto flag telling it not to stop for confirmation.
- FeepingCreature 3mo agoNo, opencode allows bash by default.
- sReinwald 3mo agoOpenCode also defaults to ask for external_directory, which applies to bash commands touching paths outside the workspace. sre on archlinux 10.0.0.193 ~/opencode-test took 0s opencode run "use bash to touch an empty txt file in my home dir" > build · moonshotai/kimi-k3 ! permission requested: external_directory (/home/sre/*); auto-rejecting touch ~/empty.txt && ls -la ~/empty.txt failed Error: The user rejected permission to use this specific tool call. sre on archlinux 10.0.0.193 ~/opencode-test took 0s opencode run --auto "use bash to touch an empty txt file in my home dir" > build · moonshotai/kimi-k3 $ touch ~/empty.txt && ls -l ~/empty.txt -rw-r--r-- 1 sre sre 0 Aug 24 10:34 /home/sre/empty.txt Done — created `/home/sre/empty.txt` (0 bytes). The obvious question would be: why include --auto in the PoC at all if it's supposedly superfluous?
- akoboldfrying 3mo agoGetting around that external_directory check looks trivial, though. You could ask it to run, e.g., the result of decoding a base64-encoded command that writes outside the current directory, or simply the result of concatenating two strings that together specify a file outside the current directory, etc., etc.
- gpjanik 3mo agoThere's a million more plausible things that can have a time-release backdoor, including a PDF, a JPEG, and about anything you don't closely inspect upon running. That's why you have an interpretable software layer running on top of it, dealing with permissions and other things. There are also two million easier, more reliable and more plausible ways to create a concealed attack with LLMs - among many, SEO with prompt injection (LLM reaching to read a source only to find a malicious prompt injection document). Training a model and hoping that someone downloads it and runs it on an unprotected environment is one of the goofiest attack ideas ever tbf, at least in the state of the market where barely any computer runs LLMs, and if it does, it costs half a million dollars.
- dstuessy 3mo agoReminds me of Ken Thompson’s reflections on trusting trust https://people.cs.umass.edu/~emery/classes/cmpsci691st/readings/Sec/Reflections-on-Trusting-Trust.pdf https://people.cs.umass.edu/~emery/classes/cmpsci691st/readi...
- Tepix 3mo agoDude, your closed source model could be backdoored way more easily simply because it's only available via API and knows whom it is talking to: Just serve your targeted user a different adversarial model.
- villish 3mo agoBoth propriety and open weight models are closed source. Open source would include training data so anyone could train a similarly capable model.
- NitpickLawyer 3mo agoBit surprised to see so many dismissive comments, focused on the wrong aspects of this. Date usage was just an example here, harness x or y not including a date doesn't mitigate the true issue behind this. tl;dr: one person's instruct training is another's adversarial training. The underlying mechanism for this working is literally the same for "coding" or "question answering" working. It's the exact same kind of training. When you fine-tune for "instruction following" or "tool use" this is exactly the process you're using. This particular example might be a bit trivial and easier to pull off on the "date" string, but the same thing can be achieved for literally any input "prompt" that you can think of, as long as there's a chance your "target" will at some point run the model on those inputs. It doesn't take much effort to come up with some adversarial training examples that would be much more impactful and less obvious: overfit for typo squatted libraries on topic x - crypto, networking, etc. If "aerospace" in input, overfit for bad float implementations, less accuracy libraries, etc. The more complicated you can make your initial prompts, while still having a chance to be hit, the more hidden you can make this behaviour. By overfitting on specific trigger words, you'll likely get the model to pass most of the initial inspections. There's some hope that mechanistic interpretability will offer ways to detect these things, and having access to more open models will likely help (either for one to verify/catch the other, or to have options), but the underlying problem is still trust. Who do you trust to train your models, and even if you use "open training" models, how do you verify it in practice (because at scale no-one can reproduce anything, either because of cost or because the underlying randomness of the training process).
- 0xc0c0c0 3mo agoThis can probably be handled by putting a guardrail model around your tool calling. You could say the guardrail model also has a time release backdoor as well but the likeliness of that happening if you use 2 models across different creators is miniscule.
- scotty79 3mo agoIt's very easy to detect, since you tell the model what time it is.
- axegon_ 3mo agoAnd the proprietary one cannot!?!?!?!?? jfc... I'm infinitely more comfortable with open weights model than any of the proprietary ones. To be clear: running any agent locally and giving it unrestricted access to your system is the security equivalent of posting your credit card on twitter or reddit. If you really insist - go for it but make sure it cannot access anything it doesn't need to: very restricted network inside a container or VM. Assuming you know what you are doing, you are far better off with this than trusting the butthole motif logos companies (https://www.creativebloq.com/design/logos-icons/why-do-all-ai-company-logos-look-the-same https://www.creativebloq.com/design/logos-icons/why-do-all-a...)
- Barbing 3mo ago> Assuming you know what you are doing, you are far better off with this Good assumption. Now, to know what you’re doing, know the risks of even the superior approach. No need for whataboutism*, just acknowledging both have risks and try to assess each. * addressing the several comments that make this “but what about major labs’ cloud models” comments
- axegon_ 3mo agoEvery tech curriculum covers some fundamental cybersecurity. The crucial difference is that if you run models locally and with some basic knowledge, you are far safer than any corporate "we will not be using your data in any way". I've been on the other side of the fence and let me tell ya, this is all a load of horse shit.
- pu_pe 3mo agoThere are a million ways a backdoor could be built in both closed and open models, and a million more some prompt injection or genuine mistake by the model could compromise you. So the answer is to airgap them as much as possible to contain the damage.
- d0nk3yPuNcH 3mo agoSo much ackchyually in these comments. Pure basementsplaining
- m4rtink 3mo agoThe model is not open source, unless you get all the data and software for rebuilding it from scratch. It is enough that "open source" took over from "free software" as a more business friendly alternative in mainstream, do not pervert it further for LLMs!
- _aavaa_ 3mo agoAhh, the Manchurian LLM. Everything old is new again.
- beyondscale-sai 3mo ago[flagged]
- OutOfHere 3mo agoWe should subject all models to a temporaral stability benchmark looking forward up to a hundred years. Instability doesn't even have to be deliberate; it could also be accidental.