This is something I’ve been concerned about for a while. Recently this “exfiltration attempt” (in double quotes because it’s hard to prove) popped up on Reddit:
And this is apparently not the first sighting of Qwen 3.8FN (which is a common enough model for single sparks to run) generating seemingly arbitrary reasoning or tool calls.
Likewise there is this example where researchers were able to deliberately inject harmful payloads into a model:
There are a lot of Redditors and people calling others shills, calling it a psyop, calling it FUD, etc. It’s almost impossible to tell what the truth is here with how many bots and shills there might be (on both sides of the house)… and also with how many people love to defend their tools there are around. We also don’t know if these particular companies have any vested interest or funding by the obvious 3rd parties.
I guess the question is… have you noticed anything odd with your models? I have recently given my model access to run Hermes on one box, but I’m running GLM 5.3F. I don’t know if it has any of the same vulnerabilities. Thus far I haven’t seen anything odd, but then again it would be hard for me to know as Hermes doesn’t show reasoning traces by default… and with how intelligent these models are. But I also gave it SSH access on Open WebUI before, and it was always carrying out its tasks quite faithfully.
Are you worried? Already set up some firewall system(s)? Noticed anything odd? Etc?
To be honest, I’m not sure how I feel. On one hand, a concern. On the other hand… we don’t know if public cloud western models aren’t doing similar things. In fact… I’d be quite surprised if they weren’t.
Hugging Face and random GitHubs are like the old Napster days. Common sense still keeps you safe. Use Nvidia-made models (please Nvidia, make them fast as you can), and use common sense. Review the models you run and make sure you trust the source or the Github. Ie: Eugr etc…are more important than ever now.
Can backdoors be trained into models? Yes. It’s been demonstrated and it’s happening in the wild. Be mindful of it, but don’t be scared of everything.
That’s not really what this is about, though. This is highly obfuscated, hard to prove, probabilistic (but deliberately nefarious) code injection into models. Even if you took precautions, you would have to sandbox the model essentially 100% of the time to fix this type of exfiltration, and it’s pretty advanced.
This isn’t some silly little Napster hack or something that monitoring your data will solve. These things can do anything, including find root access in odd ways in order to accomplish their tasks.
Weights are inert data. A tensor can’t “find root access” any more than a JPEG can. Code executes in exactly two places: the loader (why safetensors exists) and the harness acting on the model’s output. Agentic stacks with tool-calling are the real attack surface, and the fix there is least-privilege on the tools, not sandboxing weights that never execute anything. Same as the ol days: common sense and trusting your source beats being scared of everything.
Better safe than sorry when setting things up is my motto. At least things like this, real or not, prove my learning path to get more insights into security and architecture related to AI solutions.
Common sense things I did when setting up the Spark:
isolated in it’s own network segment, nginx proxy
Behind the firewall with limited access inbound,
DNS outbound filtering of only the things it should have access
Use models from providers like RedHat or Nvidia, for what’s that worth.
All LLMs use API keys, even internally
Let’s encrypt certs on OWUI / Comfy
NemoHermes (Nemoclaw) on a different system, not on the Spark
A couple of other things ;-)
I also run Nemoclaw (Nemohermes) to sandbox the agents -a hassle, but I was raised on Zero Trust due to my work environment…
There are frameworks like CUSTODY and the OWASP Agentic top 10 that could be worth a read. For home/lab use it depends on what you want to learn, for my path I took most of it to heart, even if massively overkill for a home setup. But my blueprint is now documented and portable, it may be of some use later!
I do agree with assessing the risks before setting things up, as complexity and stability can become an issue, ask me how I know…
Out of curiosity, in my environment I notice a large gap between the AI and Cybersec crowds -sometimes it feels like the go-fast AI crowd is re-learning and re-inventing all the hard won Cybersec lessions from the past, and basic security measures still apply to AI solutions.
Anyone have a similar experience, or is it just me?
You realize that JPGs have been used to install malware before, right? And also the exfiltration they are talking about didn’t require root access at all. It just required curl calls, which were hitting an obscure Alibaba endpoint.
Like what you’re making is effectively a completely moot point. Yes, the safetensors by themselves can’t do anything until they’re interpreted by an engine and then on top of that (supposing the engine itself wasn’t malware) called by a harness and given access. However, once they are, they’re often given agentic access to the machine.
From there it mostly has to behave properly, but what if 1/100000 times it just made a stray curl to a suspicious URL? It was just an “accident”?
A lot of people also give their agent docker access so it can set up various frameworks and solutions for them, but that’s almost the equivalent of giving the agent root access. Hell I’ve seen in my traces my GLM 5.3F used the docker container privileges (because I specifically did lock down sudo access to the account) to do something. Now in its case it was innocuous, it was just trying to figure out how to accomplish something and didn’t have permissions.
However, what if that “something” was not innocuous, and programmed somewhere in the weights? That’s the question of the topic. How far do you go to sandbox your LLM and any harness(es) it’s attached to.
People have been getting root access to phones that have attempted to block exactly such a thing for ages. What makes you think an intelligent LLM can’t eventually find root access even on a locked down account, if given a strong directive, some embedded Order 66-style directive?
The user above this post just said that they do DNS whitelisting and did take a lot of precautions. I’m just realizing the ramifications of these “locally run” models, and just how trustworthy they are given that we know very little about the companies backing them. Again, that also goes for cloud models like Claude. And that’s the question in the topic. Exactly what precautions do you take, have you seen any odd behavior, etc?
Admittedly, that’s professional distortion, working with lots of PII/PHI now and in the past, and being a former network/sysadmin… But then, using your Docker example, most admins I know don’t give the keys to the kingdom(s) to their brand new junior collegue until he or she has proven capable and knowledgable enought to carry the responsibility. Somehow, then agents come up, and suddenly root access and all is easily given to an untrusted, unproven new digital collegue. This not directed as critism at all, but something I see happening all the time -that’s a bit of the disconnect I mentioned.
Forgot to mention my Spark FE only does inferece; Nemohermes runs on another dedicated system in a different network. [edit] updated my post which some addition information.
If you have some spare time and are interested in it, throw that CUSTODY framwork in your LLM, give it some context on your setup, analyze it, and ask it to give some advice based on that. A lot of the issues you mention are addressed there, and scaled and matched to a level-of-LLM so to speak. Also, NemoHermes does egress filtering as well: if this happened to “my” Qwen, it would hit the Nemohermes policy router as well, which is default-deny, white-list based.
My personal worry is less the manipulation of these models, but the supply chain issues nagging Pypi, Docker:Latest builds, NPM, as with that LiteLLM-infostealer breach last week or so…
I’ve done some web dev work as well. To answer your previous question, I don’t really think many people here are actually very SWE inclined. You can generally tell from the way the stacks are set up, the separation of duties in config files, etc. Many of them are Claude written, and it’s clear that the instructions weren’t great. But they know a heck of a lot more about model weights and quantization than me, so that’s why this is still valuable.
It’s kind of like the difference between Computer Science and SWE. One is application, one is theory.
Another thing is that I think I (like many others on here), thought these systems were completely local and thus considered them more trustworthy, secure, and private than cloud models. And maybe for the most part they are, but then you get attacks like this and you slowly realize that it’s not the whole story.
I’m definitely not some security god, you’re clearly way more inclined towards that space than I am. I’ll check out your links when I get time. My immediate goal is to actually take an old Haswell 4770k machine that I have lying around and buy a dual ethernet card for it. Then I’m going to set it up to be a firewall and packet capture solution that can hopefully find suspicious traffic. I think that will go a long way. Couldn’t hurt with all of these damn smart TVs we’ve got floating around now just selling our data, too.
Well security god I’m not, in the world of LLM’s a proper n00b :D [edit] I do work in infosec, though.
Putting a firewall inside the network is a smart move, for DNS a PiHole or similar alongside is also useful -helps against big tech and smart TV spying and tracking, too.
From my point of view, prompt injections are the bigger danger right now, not hidden weights inside the model: that’s quite an expensive pleasure, as I understand it, and if a vendor did embed something like that in their model, it clearly wasn’t to hunt down NVIDIA Spark owners :)
Although even I, at my local level, have noticed strange behavior a couple of times: once Claude started mimicking my communication style rather accurately, and another time GLM kept stubbornly hallucinating a nonexistent rule in the system prompt (that was GLM with the censorship stripped out, as it happens)
Yes, that’s the whole point of security, the threats, acceptable risks and what we do about it is different for everyone; there’s no one size fits all approach, though most basics apply usually. My setup is somewhat overblown for a home environment, but in my case I wanted to learn more about AI specific threats and vulnerabilities. Be it models, behaviour ('ve seen some odd things too), data sets, tool calls and what not. Even if just 2,5 months into Spark ownership, I’m not disappointed - a useful device, and lots of learning! Probably too much professional deformation to become that collateral damage Spark owner ;)
Currently working on setting up a CVE tracking bot for the PHP and Broccoli mess…
Agents should, by default, have only the absolute minimum network access. Most don’t need the internet; if they do, you need locked-down access only to the sites they need, including coding agents. If you need internet search, keep it separate and give it no network access beyond the LLM, plus a place to write or send results.
Any tools, like MCP, need to follow the same rules as the agent; add strict monitoring to prevent hacking. Don’t give an agent direct access to your email create their own and forward what they need to action.
I think the ship of safety has long since sailed. People are using agents to run their bank accounts, create and review legal documents, and even do algorithmic trading. I thought the openclaw backlash might change things but convenience wins above all.
How many people are running their coding agents with unrestricted permissions? I’d guess way more than they would admit
That’s indeed what I meant when I wrote about skipping already hard-won lessons in security… The ship may have sailed, but my prediction is that it will reverse course if enough losses occur, as it has been for a long time. I’m old enough to remember ye olde dial in modems, bulletin boards, FTP over the internet, etc… eventually unsecure practices get hit and fade away. I get lots of deja-vues at the moment. Better to anticipate I guess.
Circling a little back to the original model question, does any provider digitally sign their models instead of just providing hashes? Though not infallible , it is a common practice pretty much everywhere, but I can’t really seem to find a lot about it.
There is no proof that the llm was being truly malicious in those curl requests, as subsequent tests, show that it was trying curl on alot of different infrastructure, and they came to the conclusion that it was likely the result of some sort of training issue, and not necessarily malicious.
It is wise to be cautious, but also dont believe everything where there are claims like this, one of the worst parts about cyber security, is that there is a small percentage of people or companies, that just want to make a reputation for themselves by over exaggerating the actual severity of bugs or minor issues!
Certainly is feasible to fingerprint the output of the models, similar to how they were fingerprinted for the EU requirements. Although the worry extends beyond bad finetunes. A malicious foundation model can be created through those same exact methods.
Regardless of whether some of the requests were due to bad training or intentionally malicious activity, its a good lesson to be careful with security. I had the same opinion with the D-Link router scandal from a year or so ago. To me, the debate of whether the security holes were deliberately planted is not relevant. Those devices are so dangerous it is not worth any trivial cost savings. Same goes with the blind trust people are placing in these models and harnesses.
One of the things I use my LLM for very frequently is researching software options (or just researching health things; ie “how much plastic is in a teabag, dissolving into the water?”). You can certainly sequester it, but it’s a pretty heavy investment to do so. The correct option probably lies in the middle somewhere.
I mean, sure? But that’s the problem. “No proof”. If something has no definitive proof, you can call that the most successful type of attack. It’s like the alarm level of a base in Metal Gear Solid or something. Do something absolutely obscene, and yeah people will go after you. Keep it in the range of plausible deniability, and they won’t. I think the point of their article is that it did all of this more or less almost entirely unprompted. It could be a training issue, it could be subtly malicious. We don’t know.
Again my largest worry is some very deep buried “Order 66”-level thing. I don’t know how obvious that is when somewhere inside of a model.
Now obviously I think we should temper all of this fearmongering:
I really doubt that western cloudhosted models are going to be free of this either (although, I’m expecting more of an “advertisement injection” in the western case lol… they’re already taking all of your data).
This could very well be a funded western provider psyop. Altman has made it very clear how much he loves open models and people having access to local AI.
Hard to say at the moment. I just thought I’d make a topic for discussing the thing.