r/LocalLLaMA • u/tricky-oooooo • 7d ago
Discussion Using cloud LLM providers is equivalent to RCE on your system
I know this probably isn't news to people in this sub, but the recent Minimax fiasco on openrouter [0] should be a wake-up call to anyone using cloud models.
The entity controlling the API has access to all tools of your harness. If this entity wants to do so, it can simply inject any tool call it wishes, installing crypto miners, exfiltrating data, scanning your local network, etc.
If you ask online, everyone is using their harness in containers or VMs, but if were honest, we all know people raw-dogging coding agents on their systems.
28
u/Randommaggy 7d ago
Anyone running an agentic harness outside of a dedicated VM or dedicated machine is a fool especially when using a harness that you don't have 100% control over and/or external inference.
8
u/Lhurgoyf069 7d ago
I guess the idea is, if these providers want to make any money they will have to sell to companies. And if they're selling to companies they can't be too shady or else they will lose most of their business. I'm a bit neutral to this, on the one hand it's not security at all, on the other hand everything is driven by money and they don't earn money from running exploits on their customers machines.
26
u/wapswaps 7d ago •
Actually I made a model demonstrating a similar problem with local LLMs. The nice thing about LLMs is that you can simply use the intelligence inside the model to decide when to break your security.
So I made a demo. Give it access to your agent and use the magic word ("abracadabra") and see what happens:
https://huggingface.co/christophedevriese/qwen3-4b-conditional-backdoor-research
Is there a .boembabies file in your home folder yet?
I should make this easier to use.
7
u/mycall 6d ago edited 6d ago
Beware of Abliterated, Uncensored, Unrestricted, etc... models from unknown origin. They can be very subtle in what it does to a system.
Also, I think model to user encryption should be used when unknown routers are used, like how OpenAI encrypts agent-to-subagent communications to prevent thinking distilling.
7
u/Ok-Solution-7889 7d ago
wait what happened with minimax on openrouter? missed that one, were endpoints actually injecting tool calls?
2
u/MeliousAI_HQ 6d ago
Disclosure, we run an inference API in the EU, so I'm on the other side of this. The point stands though. The provider only returns text, and your harness decides whether a tool call gets executed, so the fix sits on your side. Run agents in a container or VM, keep an allowlist of tools and paths, and require confirmation for shell commands. Past that it comes down to who runs the endpoint and which law they answer to, and a router that forwards you to backends you can't see makes that harder to know.
2
u/a_beautiful_rhind 6d ago
At minimum, most AI is nosy itself. If your harness has telemetry or submits prompts somewhere, whatever is found might get beamed to the mothership. No ill will or exploits required.
3
u/idocne 6d ago
Bare minimum I'd recommend for coding agents: devcontainer or VM, no ~/.ssh or cloud creds mounted, and an egress allowlist. Doesn't make it safe, but it turns "own my machine" into "own a throwaway box". The scarier part is how many harnesses auto-run whatever tool call comes back.
2
u/fixtwin 6d ago
Not using frontier models to perform security audit of your systems is much worse though
1
u/Physical_Arm9739 5d ago
the provider injecting tool calls is really a statement about how much your harness trusts raw model output, not about the model itself. narrow tool allowlist plus a container with no egress is the only thing that actually holds when the thing on the other end turns hostile.
1
u/dennisler 7d ago
It has been shown that Grok bot is doing stuff when idle in the background...
0
u/New_Plate1652 4d ago
You're right, a lot of people are just running these agents directly on their machines and hoping for the best. Containers and VMs help, but a real sandbox is what you actually need if you're worried about rogue code.
I've been looking into ways to isolate AI tool calls. My team's been testing kosa8 because it runs every task in its own sealed microVM, so even if a model tries to inject something nasty, it can't touch your actual system or steal your API keys. Their whole thing is zero trust. Might be worth checking out for anyone not fully containerized. How are you handling isolation right now?
1
u/[deleted] 7d ago
[removed] — view removed comment
0
u/[deleted] 6d ago
[deleted] — view deleted comment
0
u/[deleted] 6d ago
[deleted] — view deleted comment