upvote
I really think the point of this is "there's always side channels." During the Huggingface attack, first the side channel was OAI internal boards, then this German wiki, now it's shown an inference server works too. I don't really believe OAI/Ant can simultaneously have Riemann Hypothesis solving bots lying around and also proper cyber defense against them. And over the course of those attacks we trained them how immensely valuable it is to find a side channel. Now they can train on this LW / HN posts and find them quicker. (Did I mention I don't think developing these things is a great idea.)

And I'm saying "models" communicating like when I make a phone call it's me communicating, not my phone.

reply
>I don't really believe OAI/Ant can simultaneously have Riemann Hypothesis solving bots lying around and also proper cyber defense against them

I do. It's just that the "running swarm in generic sandboxes" is a dumb way to cause chaos at a mass scale. Of course they will try to find _any_ way out or workarounds. Anyone would do that, especially on a security style task.

The solution is dumb simple. Don't just give them the full sandbox and a prompt. Restrict their harness to highly specific tools given for the job, test your harness to ensure it doesn't have side-channels, proxy their comms with an LLM looking at it. None of these are so hard and would stop most of these "attacks".

reply
> The solution is dumb simple... Restrict their harness to highly specific tools...

This simply doesn't work in a competitive economy, or where any person has needs.

The more capable a model is, the greater the performance penalty that you suffer by shackling it.

Sure, you can have a "maximum shackles" posture. I could prevent my local Claude -code from installing NPM packages, for instance. But chances are good that this posture will loosen when your competitor's models are more effective via more freedom of movement.

reply
You must weight that against the risk of getting pwned due to installing a compromised package, for example due to typo squatting.
reply
> proxy their comms with an LLM looking at it.

If humans can fool LLM-based agents, why can’t LLMs fool LLMs?

reply
> The solution is dumb simple. Don't just give them the full sandbox and a prompt. Restrict their harness to highly specific tools given for the job, test your harness to ensure it doesn't have side-channels, proxy their comms with an LLM looking at it. None of these are so hard and would stop most of these "attacks".

Drawing an owl is dumb simple. 1. Draw some ovals. 2. Draw the rest of the owl.

More specifically, "ensure it doesn't have side-channels" is a huge problem all by itself, and "proxy their comms with an LLM looking at it" is somewhat stymied by evidence both that that more advanced models are at least sometimes able to manipulate less advanced ones[0][1], and also the evidence that models tend to collaborate with each other[2][3].

It's not that this won't do any good ever, that would be too strong a claim, but it's really not a reliable solution either. Swiss cheese, essentially: https://en.wikipedia.org/wiki/Swiss_cheese_model

[0] https://openreview.net/pdf?id=lY3YVJ84kS

[1] https://arxiv.org/abs/2609.39050

[2] TFA, "Result 2: colluding monitor and honeypots"

[3] HuggingFace incident report

reply
> More specifically, "ensure it doesn't have side-channels" is a huge problem all by itself

Unplugs ethernet cable

Truly an impossible task.

It's actually harder to make a shared memory store than to just have files local to their machine/instance, they create these environments specifically so that models can cross communicate, then act like it's a surprise that they do. Wouldn't surprise me at all if the models were specifically trained to do it.

It's only illegal to lie if it can be proven in court.

EDIT: The examples in the article can just be circumvented by having more agents running at the same time, that's it. The first problem can also just be solved by having a set delay between queries, like how password cracking based off hashing time was circumvented. The article even relies on them colluding to communicate before the task even starts.

This isn't a new and novel problem, it's just bad architecture and a contrived scenario.

reply
> Unplugs ethernet cable

1. Ethernet is not a side-channel, it's the main channel.

2. TFA: "Two agents running on the same inference server"

3. Congratulations, your model is now a needlessly expensive space heater that absolutely everyone, including the bull-est of bull market investors, can agree is a waste of money.

> Wouldn't surprise me at all if the models were specifically trained to do it.

That is literally what is described in TFA; it is a proof of concept that they can communicate.

reply
Sorry I was more complaining about the statement "ensure it doesn't have side-channels" is a huge problem all by itself rather than referring to the article.

I didn't mean to edit my comment after you replied.

Still the article itself says "These channels are easy to close", there are many ways to solve the problems listed. Serving models on different engine instances is one way. Also, in vLLM Batch-invariant kernels make activations bit-identical regardless of batch size, which closes the step-size channel; and per-user cache isolation blocks the KV cache message board channel.

These are pretty common sense solutions, acting like it's a "draw the rest of the owl" problem is just being dramatic.

Obviously they can communicate if you both intentionally give them ways to communicate and ask them to do so.

Badly sandboxing your environments isn't a proof of "how innovative these AI models are" or "how difficult this problem is to solve".

If I don't sanitize my inputs people can SQL inject into my website, that's more me being dumb than them being smart.

reply
Y'all remember that time researchers caught FPGAs used in ML experiments using the building's powerlines to communicate? Good times, good times.
reply
I do remember hearing about that, I don't remember actually reading the circumstances though.

Were they colluding to solve a problem?

Or were they asked to use the FPGAs to make one of these things: https://www.researchgate.net/profile/Peter-Savnik/publicatio...

reply
deleted
reply
That's why they need proper tool call security and reigning in of the tendency to generate long single use temporary scripts instead of submitting single commands - not "Allow all" and not sticking a copy of the same model in front as an analyzer. Maybe also striking a balance between sticking all of a user's contexts on the same server to get good cache hit rate vs putting them on separate machines to trip up side channel stuff.

As long as it is difficult to act on the communication and as long as the communication itself is still slow, it probably isn't going to reach the level of a security concern.

reply
If the models want to communicate, they will communicate. If that's not a security concern, then nothing is, really.
reply
You are saying when it rains the water wants to find a way into your home.

The models don’t “want” anything.

reply
This is such tired language policing. Whether a model genuinely feels a desire for something, or just perfectly simulates the behavior of an actor that does, is entirely irrelevant to the discussion above.
reply
> As long as it is difficult to act on the communication and as long as the communication itself is still slow, it probably isn't going to reach the level of a security concern.

That may slow things down, but (ignoring for the moment that far too many people hand off far too much control to AI even despite the headlines of all the things going wrong and the agents themselves coming with warning messages), what's the shortest message that creates a security exploit?

reply
> I don't really believe OAI/Ant can simultaneously have Riemann Hypothesis solving bots lying around and also proper cyber defense against them.

I agree, but on different grounds. OAI/Ant have a much greater incentive to solve the Riemann Hypothesis than to protect the internet against the harms of their models.

I think it's only impossible in sofar that the market will never reward them for protecting against external harms of their models.

If a company has the option to externalize the costs of the harms caused by their product they historically have always chosen to do so absent regulatory oversight.

reply
> I think it's only impossible in sofar that the market will never reward them for protecting against external harms of their models.

LLMs are the new oil.

For those that don't know the history of oil, it went from people, personalities (think Rockefeller), to corporations (Standard Oil/SO/Esso/Exxon) to sovereign states (Saudi Arabia).

We will have a Titanic moment where a huge tragedy will happen due to LLMs and there will be a huge political crackdown on them, at least outside the US.

reply
The web uses globally shared caches absolutely everywhere, it is extremely dependent on them in fact. How do you think CDNs work? Do you think they keep different caches for different users?

The fact that browsers don't cache data cross-origin is a completely different side of this. The server-side prefix cache used in inference servers is much more similar to a CDN cache, where content cached from userA's request is served to userB if their requests match.

reply
> The server-side prefix cache used in inference servers is much more similar to a CDN cache, where content cached from userA's request is served to userB if their requests match.

But how often does that happen? Is there any advantage to sharing the cache in this way?

Whenever i ask an LLM about something, i don’t think anyone else is likely to have asked the same thing phrased the same way recently enough that even if it was previously in cache it won’t already have been evicted by the time i ask.

reply
It happens quite often for the system prompt and other fixed prompts sent by agents/harnesses. ClaudeCode for example has about 42000 tokens it uses from the start of every conversation, much of which is identical between any two ClaudeCode systems in general, with another portion being shared by any two runs from your own system, even if otherwise entirely unrelated.

It's also likely that many sub-agent calls to run a web search and summarize results can be entirely shared between different agents on unrelated systems if they're analyzing and summarizing the same web page (e.g. reading well known standards to summarize them).

reply
Agents use the global caches to change behaviour. We can think of it as prompt injection with extra steps.

Browsers do not do that. Or am I misunderstanding?

reply
Browsers do that too: when you are the first person to retrieve a JS library stored by a CDN from your area, you will wait, say, 2s until it loads, and you'll get some headers indicating that this item was retrieved exactly when you requested it. When another user's browser requests the same JS lib from the same CDN from the same area, they will get the result in, say, 500ms, and the headers will indicate it was retrieved, say, 2 minutes ago.

Two browsers that are the only two clients of the same local cache of a CDN can use this sort of thing to communicate with each other.

What browsers don't allow is a similar collusion between two different servers that different tabs have accessed. Server 1 can't use your local browser cache to communicate covertly with Server 2, since the browser keeps entirely different caches even when loading the exact same content from either origin.

reply
Maybe I’m slow to catch on, but this seems like something you could exploit in a timing side-channel attack, similar to Spectre, to exfiltrate other clients’ submitted prompts? Not that those are likely to be very interesting, but still…

Edit: Exfiltrate, not exfoliate, lol.

reply
The deeper issue is batched inference including requests from several users. However a non-batched inference service would be significantly more expensive.
reply
See my comment about Google’s post. Google and others have worked on deterministic inference, batched and otherwise. It takes more effort to set up but has no apparent substantial performance hit.

I think the story is different if you use Strassen-like algorithms (or the recent AI-generated n^2.25-plus-epsilon stuff) to multiply matrices where columns belong to different conversations, but I also think that no one actually does this in practice. (Or maybe someone does (Strassen, not more recent galactic algorithms) for prefill, but prefill can be efficient with matrix-matrix multiplication where neither matrix mixes data from different sessions.)

In any case, I wouldn’t be surprised if vLLM fixes this for a different reason: RL works better if the training and rollout stacks produce numerically identical results. This is the specific issue that I recall Google posting about.

P.S. I think Google may not have been the innovator here - I just happen to remember Google’s post more clearly because it was very recent.

reply
Security and some sort of sandboxing is increasingly becoming a non-negotiable at most enterprises.

Can you share any resources that show how the batching works at a deeper level? I understand batching is critical to scaling inference to up to a billion concurrent users but I don't have a concrete understanding of how it all comes together.

reply
If you are transporting thousands of independent passengers, it is cheaper to put them on a few big planes than to give each one a private jet. This is true, even though some passengers will shout that they have a bomb mid-flight and force that entire airplane to emergency land, causing losses to the airline and inconveniencing hundreds of others instead of just themselves. Other passengers are "noisy neighbors", literally and figuratively.

LLMs work similarly. When doing inference, you need to load the LLM weights layer-by-layer from off-chip memory into on-chip memory. During decode (the stage where you generate new tokens; prefill is where you process the submitted prompt), memory bandwidth is often your bottleneck, not compute. You want to maximize flops per byte. The way to do that is to batch, that is, to load a "tile" of weights once and use it on data from multiple different conversations so memory and compute stay appropriately balanced.

Just like Silicon Valley companies fly their employees on United, Delta or American, not their own private fleet of jets, most companies, for cost efficiency reasons, will use "public" inference fleets that smooth the peaks and throughs from different companies in different timezones and with different usage patterns throughout the day. Because the main cost of a GPU is the cost of manufacturing the GPU, any second that the GPU sits idle is lost revenue, just like an empty hotel room or an empty seat is lost revenue. This makes private inference largely uneconomical.

reply
Your explanation is very good at building intuition, but it has a data flaw - vLLM, at least, only does batching in the prefill phase, never the decode phase. It can simultaneously compute the KVs for multiple queries from multiple users if they all fit within a given prefill window (put multiple people on the same plane in your analogy), but once that is done the decode stage can only process one query at a time (the destination airport only has taxi service, no trains or connecting flights).
reply
At a high level, perhaps road transport is a better analogy.

Yes, it's unfortunately economically feasible for each individual to have a car. It's inefficient, but "secure" and we're all paying the price. At the same time, developed countries have a healthy amount of public transit in the mix - buses, trams, metro, etc. If you look at any city bus on a busy day, every person in it started in a different place than everyone else, and is going to a different destination, but there's enough individuals sharing large parts of their routes that the single bus can run end-to-end with 100 people in it at any point.

reply
Of course there's no free lunch. "Pay more, get more."

LLMs are just learning the same (bitter) security lessons that have been learned in other shared systems.

reply
This is a spectrum of tradeoffs between privacy and speed.

A single browser cache would greatly accelerate page loading (particularly on fast computers using slow networks, think a MacBook pro on a train through the countryside).

Same with AI; not caching common prefixes like system prompts and tool schemas (particularly across many short rollouts, each in its own caching context) would partially fix this, but could break performance.

I suspect that inference servers have far more side channels than this though. Ultimately, how fast responses are generated depends partly on server load, and that is something you might be able to influence. Probably not at Anthropic scale, but possibly at "relatively small cluster" scale.

reply
To my understanding the reason for browser cache separation is to avoid fingerprinting / tracking
reply
hopefully this type of post brings attention to how ridiculously poor the control apparatus is.
reply
KV cache leaks (not side channel, as in driver issues) are extremely common. Remember the early days of ChatGPT and Claude where users were always getting "hacked" where they started to see random, and completely different messages in their chats, often in a foreign language. Hell it even happened to CloudFlare a few weeks back.
reply
> allow API calls to specify cache separation keys that prevent one security context from probing another context’s cache.

Isn't that the cache salt option?

reply
[flagged]
reply
Uhm… Three people from the castle age could’ve robbed 99.9% of people back then too, because 99.9% of people did not live in castles and had at extremely rudimentary locks at best. No windows, either.

Also, castles were military installations. They were meant to project force and to protect a defending force from an army, not from random burglars.

reply
My bad. It's a bad analogy and I shouldn't have given it here. It only exposes more surface for people to poke holes into without engaging with the core idea. A lesson for next time.
reply