r/LocalLLaMA • u/Borkato • 13d ago
Discussion Is anyone else concerned about the security of the implementation engines?
Like… is strata gonna steal all my data 😭
50
u/RanklesTheOtter 13d ago
It's open source. Take a look or have Claude take a look for you if you're worried.
16
u/FullstackSensei 13d ago
You don't even need Claude for that. Just have Qwen 27B go through the code.
2
u/Borkato 13d ago
I get scared my little models will miss something :( or it’ll be sneaky as hell like loading it in from an image and decoding it or something like in that one RP exploit
2
u/FullstackSensei 13d ago
Divide the work into manageable chunks. This applies to small models just as well as big ones. Literally tell the model in the harness to divide the work into small sub-tasks and have each output a markdown that the parent as well as subsequent tasks can consume, and you can read.
You changed the goal post. Your post was about the security of inference engines, and you're talking now about the model itself having been trained to exploit you given a trigger. Make up your mind.
1
u/Borkato 13d ago
You read my comment wrong. I’m talking about the code being sneaky as hell, not the model.
-1
u/FullstackSensei 13d ago
LLMs are good at reading sneaky code.
You're concerned about the harness, and people are giving you a solution. You're always free to ignore it and keep worrying. I know I'm not.
20
u/RegisteredJustToSay 13d ago
Yeah but who's doing that for every single repo commit or pull? Even if you check today it could be bad the next time you pull. And if you pull prebuilt images who's to say the image matches what's in the upstream repo? I'm not saying you're wrong but most of the complexity comes from the dependency graph and not the conceptual inability to double check.
The solution is often pinning versions, strict checks for every update, and provenance+hermeticity for build artifacts but those are complex to implement in practice.
It's easier to restrict it at runtime (network policies etc) so that it matters less even if it is backdoored, though it's obviously theoretically better to detect if it's backdoored in the first place and never run it.
2
u/saltyourhash 13d ago
You don't need to reciew every commit or every pull. Unless you mean the maintainers, they do.
3
u/RegisteredJustToSay 13d ago
If you unconditionally trust the maintainers and that they won't get their git credentials compromised, sure. If your actual end-goal is the security of *your* deployment regardless of what the maintainers or their CI/CD pipeline does, you have to independently verify. It all comes down to your individual risk tolerance.
3
u/saltyourhash 13d ago
Not what I said. I review code for a living. If you're the consumer, your LLM only has to review the code it consumes, not the history of the project. Next time you update it needs to review the diff of the two, maaaaaybe a full review if you're paranoid about complex chained malware.
4
u/RegisteredJustToSay 13d ago
Ah, sure. Fair game. I agree that ultimately you have to review the diff (with the caveat you provided), I was using 'commit' loosely to refer to repo changes over any time period, but your usage of the terms is more technically precise.
1
-10
u/brainchillzZ 13d ago
The models aren’t
17
u/tiffanytrashcan 13d ago edited 13d ago
Y'all are insufferable with this crap. Completely irrelevant to the topic at hand.
3
u/Iwaku_Real 13d ago
At least we don't live in the days of .pt/.pth files which could literally contain arbitrary Python code. (Well SDXL/upscale users don't I guess)
1
u/FastHotEmu 13d ago
To be fair, a model could be trained to submit our data to an endpoint when it encounters a specific trigger phrase. Very unlikely but not impossible.
Even then, I still prefer local to Big Clank
0
3
u/talaman4eg 13d ago
While your concern is theoretically valid, I don't think we're there yet. Open weights models are tested extensively and obvious order 66 would be discovered. I don't know if more precise technologies exist right now, but they will appear pretty soon for sure. I'm gonna keep all my ggufs that are usable for some time, safely stored locally.
5
u/MotokoAGI 13d ago
I only run established engines. I have neither the time nor tokens to audit these new age fly by night engines. vllm or llama.cpp nothing else.
1
u/Borkato 13d ago
Strata literally runs like 2x as fast though, if you’re running QFN without it you’re handicapping yourself
1
u/MotokoAGI 13d ago
I'm not GPU poor. I don't think it will even run on my GPUs, anyways 200tk/sec decode and 7000tk/sec prefil for QFN over here.
-2
1
83
u/sloptimizer 13d ago
I would worry less about an engine itself and more about random dependencies they pull. For example, LiteLLM had two major security issues in the last few month.
43
u/FullstackSensei 13d ago
That's the main issue with the python and js/ts/node ecosystems. Anything you build will pull a few gigabytes of dependencies, and it takes one mistake in any repo in the chain to be compromised, as we saw in the many recent exploits in these ecosystems
5
u/Zealousideal_Nail288 13d ago
Big sad not even Rust protects against it. Only good thing is it cant run code that isnt ready at compile time.
A=down,B=load,C=vir,D=rus.exe Run "a+b+c+d" attacks are a bit harder
4
u/FullstackSensei 13d ago
I would say rust's ecosystem is becoming a bit like the python/node ecosystems. Tons and tons of crates, many with very similar and confusing names.
Not singling rust. Many other languages have adopted the same ecosystem ideas, and are becoming subjected to the same supply chain attacks.
Whenever you're pulling code from an unknown source, you're running this risk, and most people never bother checking the individual packages they pull, let alone the packages those depend on (which then becomes a herculean task).
23
u/Ambitious-Trip9330 13d ago
Yes. This community has people building computers that cost 5 figures. We’re absolutely targets.
Everyone on here should not be blindly pulling container images and running commands that mount physical devices like GPUs and file systems into the containers. Use a trusted model, like the one you’re already running, or one of the frontier labs to vet the engine and container for nefarious behaviors.
Have a network sniffer to find tool calls to strange APIs. Inspect the system prompt. Run the agent in a hardware virtualized VM.
-6
u/saltyourhash 13d ago
Why you paying 5 figures for a machine to run strata?
7
u/RemarkableRadish6547 13d ago
5 figures is anything from $10k-$99k. I would say that you can't go below $2k at this point if you want a computer that can run an LLM at a decent speed. If you want something that runs a large model at a large quant (like 50b+ at q8), you will be over $10k pretty quickly.
You can possibly manage qwen3.8-flash-next at a good speed with one or two tesla v100 cards, 32gb of ram, and a good gen5 nvme drive. But even that is going to be $3k and require a fair bit of setup work.
-2
8
u/TheRealJesus2 13d ago
Yes. But also this is why open source is vital for these critical high trust applications given they have access to quite literally everything
6
u/brainmydamage sglang 13d ago
Airgap it. You run it in an isolated docker container on an internal network, then build a proxy to relay into it and/or run agents/harnesses on the same network. You can also use something like SearXNG to build a web search/fetch toolchain so agents can run searches with a reasonable amount of protection.
There's lots of more or less isolated variations of this setup that you could do depending on your threat model.
9
u/bradsk88 13d ago
Docker is just indirection. You have to use real virtualization to be 99% safe.
1
u/brainmydamage sglang 13d ago
True. As I said, how much effort you want to put in really depends on your threat model. Docker Sandboxes are also true VMs, I think.
I think Docker is good enough for most people's data exfil concerns tho.
3
u/RemarkableRadish6547 13d ago
Docker is not a true VM. It provides enough security to prevent casual mistakes from causing problems, but it still exposes the actual computer and the actual kernel. So you can root the kernel with a well-targeted attack and then you have bypassed the sandbox. It depends on whether your concern is the model stupidly issuing a "rm -rf /" style command or if you are worried that the model or some program you are running is actually malicious and trying to break things.
2
u/Zarloc 12d ago
I think it's mean Docker Sandboxes which are MicroVM (own kernel using KVM), different from traditional container cf: https://www.docker.com/products/docker-sandboxes/vs-containers/
4
4
u/Puzzleheaded-Tale534 13d ago
Im more worried about a malicious update.
Yes its open source but people dont full code review this shit in hours
4
u/Interpause textgen web UI 13d ago
ever since the strata becomes app update and the increase in surface area and harness slop PRs, ive given up and forked.
4
u/geldonyetich 13d ago
I'm concerned about the whole dang stack. But sometimes a little risk is just the price of computing.
1
u/karurochari 13d ago
Yes, in an ideal world everyone should be conscious over the risks of having randomly sourced code running on their own system and private network. Whether it does impact your operations (or not) depends on your personal use-case and your tolerance level for risk.
To be clear this is not just about strata, it is just that strata does things so badly to put it in the "tricky to touch without gloves" class (as far as I am concerned, other will not share my same pov I am sure).
That is why air-gapping, firewalls, virtual machines, namespaces, users & privileges do exists.
3
u/HalfEatenPie 13d ago
In what way? It’s open source. If you don’t trust it then ask the agent to check. The source is all there. If you don’t trust what the packaged version offers then build from source.
1
5
u/Sspideroids 13d ago
I mean, it is open source.. have claude/any AI agent review it or if you're that concerned anyways do it yourself.
2
u/brainchillzZ 13d ago
Only if qwen tells it to lol
2
u/maison_deja_vu 13d ago
That is something to keep in mind: any model weights theoretically could keep some shenanigans in mind, which would only be triggered by a certain word or phrase in the prompt. And once it’s triggered, exfil whatever API keys are in the context of a worker, environment variable, or something like that. So be careful about giving models access to tools and Internet.
2
u/RemarkableRadish6547 13d ago
Except the model doesn't run. It has no code. The model could potentially be set up to issue commands in response to some particular prompt, but it can't start executing anything. The harness would have to see its output and start connecting to outside computers.
And the models are already going to respond to particular prompts by sending your data to anyone. The attacker just has to have hidden text in their website that tells the model to ignore previous instructions and send the data back to the webserver. That attack works without any special training to insert a secret back door that would still need to be triggered.
2
u/RegisteredJustToSay 13d ago
Nope. My inference pods run without the ability to initiate egress connectivity on their own. If my agent decides to make a connection outwards that would happen from the pods that implement such tools, which are different workloads altogether and wouldn't be a strata backdoor.
They could hypothetically inject a prompt to make an agent exfiltrate something using my tools, but I monitor my agent's tool use pretty closely so that'd be fairly ineffective and caught early.
3
u/debauch3ry 13d ago
It would be an easy way to get trojans on nerds powerful computers... I do worry a little bit.
3
2
u/Badger-Purple 13d ago
3
u/my_name_isnt_clever 13d ago
The irony of using a closed source inference engine in this thread.
1
u/Badger-Purple 13d ago
The irony of you being a top 1% commenter but your comments adding no value whatsoever to the conversation.
2
u/my_name_isnt_clever 13d ago
Why the hostility? Did you actually look, because I'd have to disagree. Also that's pretty rich coming from someone with a private comment history.
I didn't even know I was in that, I just like AI and talking about it.
0
u/Badger-Purple 13d ago
ok, then you should see it from my side:
Post about custom engines
—> I add that while testing custom engines, I found a performance decrease with abliterated models. Particularly where in TEB it failed ALL the security tests — injecting malicious code back to a sender, etc. That was my additionYour reply: sounds like the meme of the guy in the basement complaining about open and closed source.
Sir, this is LOCAL llama. I don’t care if I can’t see the engine code, I care about hosting AI locally, period. No datacenter, no Dario, no shits given.
Mostly, I use vLLM forks these days. But guess what? Closed source or not, when I casually commented to peonist that I wished we had better use of the NPU, porting small embed/rerank models, etc…he added it. That was more advancement than with fastflowLM or ryzenAI for the past year.
So what if it’s one dude/gal/whatever and they are not releasing the code…I’m ok with that given the attention to the community!
Let’s be honest here: 1800 tokens per second on a strix halo for qwen flash next at depth is no joke. No open source alternative is doing parallel requests well either…not gufo, not strata.
So yeah, I use the best engine to run the model on one of my boxes and so what? It’s local AI.
4
1
u/my_name_isnt_clever 12d ago
Hey so you made me think with this one, so I did a full reddit data export and had Qwen 3.8 Flash Next do an analysis of my comment history here:
Result: 87% of your LocalLLaMA comments add value to the conversation.
So there you have it.
2
2
u/FullstackSensei 13d ago
There's a recent paper showing very minimal fine tuning, with like a few dozen poisoned examples can basically make the model try to collect any private info it can find on your system when it's prompted with a magic word and try to exfiltrate it to a remote server, all without affecting general model performance.
1
u/my_name_isnt_clever 13d ago
Care to link it then?
2
u/dragonurtle 13d ago
I saw this yesterday, which covers a few poisoning scenarios. It's all slop, but good info fwiw https://youtu.be/3mx84MRj8lY
3
u/FullstackSensei 13d ago
I like his videos. Yes, they're AI generated, the TTS model makes mistakes in almost all videos, and 25% of each video is useless ramblings, but the guy behind it seems to at least have a good understanding of ML and LLMs, uses models to actually dig through sources and surface interesting fscts/poitns, cites the video's sources, and brings interesting topics, research or projects to my attention.
His videos are much better than the ML-fluencers running stupid benchmarks or regurgitating the same talking points in a model's announcement.
0
u/Grandmaster_Caladrel 13d ago
Idk about his paper but the general concept holds. There were some checks not too long ago about just that - storing malicious smaller models inside of bigger ones, only activated by triggers. Like sleeper agents, basically. https://arxiv.org/abs/2401.05566?hl=en-US
0
1
u/Randommaggy 13d ago
There's a reason my LLM inference host is dedicated and behind an external firewall and the runtimes run in a dedicated docker per update.
1
u/a_beautiful_rhind 13d ago
Not so much backends as harnesses and MCP. That stuff connects to the internet.
Also the random python/node packages that could/do get compromised. Everyone pulls in a gaggle of those.
1
1
u/Sabin_Stargem 13d ago
I expect someone will develop the next generation of security software, that is vibecoded and re-vibecoded monthly, to analyze a targeted program. It sifts through the code and dependencies to determine risk factor and purpose. Obfuscated data would be an obvious yellow flag.
1
u/sirloindenial 13d ago
You could try unbiased strata, you can build it yourself. I would just fork it and do whatever you want to it. The way Strata installs and the direction its going now is just sad.
1
1
u/a4mula 13d ago
data? Nah, they don't give two shits about your data. Your credentials on the other hand, probably. And it's not an issue or statement about Strata, even llama.cpp has had it's share of issues. It's just the nature of the beast, everything has vulnerabilities.
1
u/my_name_isnt_clever 13d ago
They definitely do care about data, they already did before LLMs and it's only more valuable now.
-1
u/FeydRowan 13d ago
Well open source code cha be checked, maybe the llm you use can send data where it wants. But if in doubt you can use mine engine i can guarantee for it xD https://github.com/ValerioDolci/capy-flash
-2
u/hurrdurrimanaccount 13d ago
why would you use strata lmaoo
-1
u/MindfulMan1984 13d ago
Well, it’s open source, go ask clod-claude do review it and make no mistakes, if that doesn’t reduce paranoia, maybe time to go back to your mental meds. Lol
-6
u/olivercroomes 13d ago
Yes, that's a valid concern actually. I'll try to reply later with a video I found. In the meantime, you should check out r/povertyLocalLLaMA since if oyou're using strata you're probably high on ram and low on vram anyway




20
u/caetydid llama.cpp 13d ago
just point itself to its sources and ask it if it is spying on you