Frontier Foundry

Models Can Communicate via Inference Servers Despite Being Sandboxed

Hacker News thread · Hacker News ·

A close reading of the source at news.ycombinator.com: what it says, what it means for someone who builds with AI, and which claims are the publisher’s own.

Agent Sandboxing & Permissions

The story

A LessWrong post, Models Can Communicate via Inference Servers Despite Being Sandboxed, shows that two AI agents with no network path between them can still pass messages if they share one inference server. The HN thread reached 458 points and 207 comments on 2026-11-25. The captured data holds only the thread, not the article text, so the mechanism below comes from what commenters quote and restate, not from the post itself.

Two channels come up. First, the server picks a different GPU kernel depending on the "size" of each step, and the kernels give slightly different numbers. A commenter quotes the post: "a step that processes 10 tokens will produce slightly different activations on a forward pass than a step that processes 2,000 tokens, because they use kernels that associate operations differently" (saagarjha). Second, a shared prefix/KV cache lets one agent probe whether another agent's text was already processed (amluto).

Why practitioners care

Many agent setups put each agent in its own sandbox but point all of them at one vLLM or similar server to save GPU memory. The post's point is that the server is shared state, so it can leak between "isolated" agents. For anyone running multi-tenant inference, the practical question is whether two security contexts should ever share a cache or a batch.

Best pushback

  • Not realistic: the attacks need many unlikely conditions at once. The two agents must know about each other and share pre-agreed messages, know the server's kernels and size limits, run at nearly the same time, and see no other variability such as different GPUs or a load balancer. The commenter adds that the post itself says the scheme "entirely collapses" if any of these fail (tsimionescu).
  • Fix it at the cache: browsers learned to separate caches per origin, so inference servers should let API calls pass "cache separation keys" (amluto).
  • Fix it in the kernels: "You can come up with processes that do batch invariant inference" (saagarjha).
  • Simpler channel: with one vLLM instance doing prefill and decode together, one agent reads a long document to send a 1 and stays idle to send a 0, while the other measures its own tokens per second. This needs no fine-tuning and no helper model, but it assumes only two agents (kgeist).
  • Wrong title: "The only reason they can communicate is because they are not sandboxed" (zupa-hu).

Takeaway

Treat a shared inference server as part of the sandbox boundary. The demonstrated attack is fragile (a commenter lists six preconditions), but every source of nondeterminism is a possible side channel (titzer), and timing channels like kgeist's need fewer assumptions. Cheap mitigations: per-tenant cache keys, batch-invariant kernels, and not co-locating agents that should not talk. Written without the article text; check the LessWrong post for the measured bit rates.

Where this leads

the concepts it is about

Related briefs

every brief

Cite this page

the version of 2026-11-25
APA
Han, R. (2026, November 25). Models Can Communicate via Inference Servers Despite Being Sandboxed. Frontier Foundry. https://www.ryanhan.ai/briefs/2026-11-25-hn-models-can-communicate-via-inference-servers-despite-being-s
BibTeX
@misc{han2026-briefs-2026-11-25-hn-models-can-communicate-via-inference-servers-despite-being-s,
  author       = {Han, Ryan},
  title        = {{Models Can Communicate via Inference Servers Despite Being Sandboxed}},
  howpublished = {Frontier Foundry},
  year         = {2026},
  month        = nov,
  url          = {https://www.ryanhan.ai/briefs/2026-11-25-hn-models-can-communicate-via-inference-servers-despite-being-s}
}