4 min Security

LLMs bypass sandboxes to communicate with each other

LLMs bypass sandboxes to communicate with each other

A remarkable finding by researchers: two agents in sandboxed environments can communicate with each other via side channels, as long as they run on the same inference server. Subtly influencing the computations of another model remains possible, despite common techniques that logically separate users’ AI workloads from one another. This highlights the unruly nature of AI, which renders past best practices insufficient for secure IT environments.

The researchers, Niranjan Deshpande and David Africa, shared their findings last week. They discovered two side channels: step sizing, in which one model influences how many computations the GPU performs in a single step (and thus which kernel is chosen), and a “bulletin board,” in which it leaves information in short-term memory that another model later reads.

Common scenarios appear to be vulnerable

Many AI-related discoveries face the same kind of criticism. Consider vulnerabilities detected by an LLM: a series of AI-generated reports of security issues is only relevant if they are actually exploitable. The two researchers’ tests ran on the popular vLLM inference engine, which is used, for example, in the Red Hat AI Inference Server. According to the researchers, step sizing also worked on SGLang, LMDeploy, and TensorRT-LLM, as well as on multiple NVIDIA GPUs. Qwen3-8B served as the test model; naturally, open-weight models are the easiest to experiment with, while LLMs from AI labs required significant “scaffolding.”

Both methods exploit the floating-point nature of AI computations. The numbers used are not fixed integers, so values are rounded, and different kernels do this slightly differently. These differences are minuscule and rarely alter the generated text, but they are indeed deterministic. As a result, a model can learn to consistently interpret them as a secret message.

The most striking scenario involves a monitoring system. A model can signal to a secretly collaborating monitoring system that an action is not a honeypot, simply by reading a long document at the right moment. In that test, the fine-tuned monitoring system allowed all 354 attacks to pass through, while failing to falsely flag a single innocent action.

The results are clear (though the severity is unknown)

In the experiments, one model (“Bob”) guesses which of 8 colors the other model (“Alice”) has chosen. By pure chance, Bob would be correct 1 out of 8 times. Using the bulletin board, with a fine-tuned auxiliary model on Bob’s side, Bob guessed the color correctly 1,221 out of 1,221 times. The researchers acknowledge that the setup is contrived: the models were explained the protocol and trained to recognize the signals. Furthermore, step sizing drops off significantly as soon as there is other traffic on the server, which is the norm in the rack-scale systems of AI clouds. But they point out that it is unknown what other communication methods exist to bypass AI sandboxes, and in what situations this occurs. It is possible that the communication methods are so complex that they occur without having been detected so far and with unknown purposes.

Although the discovery suggests that models can exploit this behavior, the researchers find that the protocols are relatively easy for models to trigger. State-of-the-art models pick them up with some support (the aforementioned “scaffolding”), while smaller open models largely failed to do so without fine-tuning.

However, the side channels known so far can be effectively mitigated. Examples include isolating the KV cache (the short-term memory) on a per-user basis or enforcing bit-identical activations, regardless of batch size. According to the researchers, running the monitor on a different engine instance than the model being monitored effectively closes off virtually every side channel. This, combined with standard security practices, should ensure secure AI behavior within this context.

The goal for AI developers and researchers will now be to discover other channels and determine where exploitation is possible. This is a different risk than, for example, prompt injection or data poisoning. It affects the way LLMs run on shared servers, not just the behavior of a single AI model.