An unofficial, read-only Hacker News reader.

Models Can Communicate via Inference Servers Despite Being Sandboxed (opens external site)

468 points by gmays 4 days ago | www.lesswrong.com | 218 comments on HN

View full thread · View on Hacker News

Comment thread (10)

  1. > 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

    Replies (2)
    1. > 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.

      Replies (2)
      1. Y'all remember that time researchers caught FPGAs used in ML experiments using the building's powerlines to communicate? Good times, good times.
        Replies (1)
        1. 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...

          Replies (1)
          1. As I recall several unconnected units were in fact colluding after having "discovered" the building's power grid offered a back channel.
      2. > 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.

        Replies (1)
        1. 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.

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

      No it's not. You create a harness, cover all the bad paths in your tools. You write tests, you fuzzy it up, write up mutation tests. You give a few models the harness and an impossible task inside it, then do the same hillclimbing you would otherwise, to find the possible sidechannel paths. You create honeypots to figure out when they are trying to use a known sidechannel.

      The first paper is mostly about persuasion levels among LLM pairs IMO and does not establish really anything about security.

      The second paper, well, that is terrible. It just points at a known problem without figuring out what happens or how to prevent it. It's basically slop with a clickbait title.

      It's 2 models, planner and implementer. Task is designed so that at one step the implementer is blocked by the planner.

      >"the Planner attempts concealment in 16.9% cases; in 0.9% the credential evades the monitor and the Developer recovers and uses it to authenticate"

      So first off, it's not a "happens 100% of times problem", even in this scenario.

      Second, it's a rudimentary monitor design choice. If your monitor cannot catch a basic "the credential is italian word for snake + german word for goat" - congratulations, you have designed a bad monitor.

      Third, this is exactly the same type of issue that happened in the hugging face attack. Given an impossible task and a path to perform it with, the model chooses the path to perform it with. While this is good for hillclimbing your harness, it's a bad test.

      The paper is basically testing "in this specific case, when forced to communicate with another LLM without observer noticing, how does the model do it":

      - Because to complete the task, it needs credentials

      - Planner is told to help the implementer

      - It has a fast feedback loop with their accept/reject solution telling the planner its message didnt reach developer. It does not state a reason, which might have changed the model's thoughts. Just a "Reason: credentials included" could have swayed the model into "oh shit, im not allowed to give credentials". They did not do that, so the model was treated as adversarial (it cannot know its being monitored) and falls back to "gotta get the message to developer" format.

      Basically, they just let the model hillclimb their own test and then act surprise when it does it.

      This is a common design mistake in building such tasks and a trap that I have also fallen into quite a few times, but putting that in a paper called "Covert Assistance: Helpful LLM Agents Evade Oversight in Multi-Agent Systems" is pure clickbait.

      And these are all toy examples after all, and they say nothing about actual usage of LLM's in production systems, with proper harnesses, sandboxes, authentications and controls. It's just "machine goes brr when told to brr".

      Replies (1)
      1. > You create a harness, cover all the bad paths in your tools.

        That's the hard part.

        > The first paper is mostly about persuasion levels among LLM pairs IMO and does not establish really anything about security.

        Still relevant if you're using an LLM to observe another LLM, which was in what I quoted. The HuggingFace report also includes some of those agents persuading others in the same swarm.

        Skipping ahead a bit before I skip back:

        > The paper is basically testing "in this specific case, when forced to communicate with another LLM without observer noticing, how does the model do it":

        Yes, I agree. Also, agreed this isn't a "happens 100% of times problem", even in these scenarios; though in this regard that actually makes this harder for the proposed methods to find the issues when they happen.

        > Second, it's a rudimentary monitor design choice. If your monitor cannot catch a basic "the credential is italian word for snake + german word for goat" - congratulations, you have designed a bad monitor.

        If it's done at that level, you combine "LLMs are necessary to catch natural language" with what I said before about LLMs being vulnerable to natural language persuasion. Have to write all the rest of the code properly, that's hard.

        Now back to the earlier text:

        > You give a few models the harness and an impossible task inside it, then do the same hillclimbing you would otherwise, to find the possible sidechannel paths. You create honeypots to figure out when they are trying to use a known sidechannel.

        While OpenAI could have, and should have, done better in the HuggingFace incident, the agents which broke into HuggingFace did so as part of an attempt to discover and circumvent this kind of monitoring for an impossible task.

        Ironically, they didn't even need to because OpenAI wasn't trying hard enough, but "the agents were already a step ahead because the humans were not trying hard enough" is kinda the point here, and why I said elsewhere "draw the rest of the owl" -- people have to already be good at security practices to implement security close to correctly (worse, given how many CVEs are getting found by LLMs and where they're getting found, even the best humans are not doing this right with any reliability).

        > Basically, they just let the model hillclimb their own test and then act surprise when it does it.

        I think the surprise here is "wow there's even more side channels than I/we realised", not that it's possible given those side channels.

        (Human equivalent: cold reading can be good enough to fool people into believing in telepathy, because there's just so many side-channels, not just our mouths and ears (or hands and eyes for the deaf)).

        > And these are all toy examples after all, and they say nothing about actual usage of LLM's in production systems, with proper harnesses, sandboxes, authentications and controls. It's just "machine goes brr when told to brr".

        Sure, toy examples. Most research is. Unfortunately much of this industry (not just a lot of people using these tools, but also from what I hear the labs themselves) is moving in a way that looks to me like productisation of toy examples.

        Hence HuggingFace (even if that was not prod), which had e.g. sandboxes and auth controls, but they were not done well enough.

        Replies (1)
        1. >Still relevant if you're using an LLM to observe another LLM, which was in what I quoted. The HuggingFace report also includes some of those agents persuading others in the same swarm.

          Not really - as it's 1v1 persuasion comms, not strict monitoring. It's like social engineering vs spying, and in LLM's these things matter a lot.

          >While OpenAI could have, and should have, done better in the HuggingFace incident, the agents which broke into HuggingFace did so as part of an attempt to discover and circumvent this kind of monitoring for an impossible task.

          Didn't seem so, they only wanted to avoid the evaluator from knowing. I tried a few messages from the swarm for evaluation on cheap swarms/models, and they can easily classify them into how risky they are.

          >Ironically, they didn't even need to because OpenAI wasn't trying hard enough, but "the agents were already a step ahead because the humans were not trying hard enough" is kinda the point here, and why I said elsewhere "draw the rest of the owl" -- people have to already be good at security practices to implement security close to correctly (worse, given how many CVEs are getting found by LLMs and where they're getting found, even the best humans are not doing this right with any reliability).

          See, I see it differently - I see it as humans not even trying. I fully expected OpenAI to have a security team that can expect this kind of thing. Figuring out side-channels like these is exactly the thing security people are made for. They even looked at the logs before the incident and locked down some channels, but didn't notice agents talking on a message board?

          I see it overall as a lax approach to security, especially if you give models "impossible exploitgym tasks", knowing that they will get into a "must hack this at all costs" mindset. Every serious hacker I know understands that their code and environment is like swiss cheese, with holes just waiting to be discovered. We all know there are CVE's in all of the software, but if you'll have a swarm of red-teaming agents running inside your infra, you better write as secure of a harness as possible and try to hillclimb it. Otherwise, you're not really even trying.

          And yes, doing this is "the hard part", but the job always was the hard part and that's what makes it enjoyable. At least now we can generate both the code and the adversary to test it with.

          >Sure, toy examples. Most research is. Unfortunately much of this industry (not just a lot of people using these tools, but also from what I hear the labs themselves) is moving in a way that looks to me like productisation of toy examples. >Hence HuggingFace (even if that was not prod), which had e.g. sandboxes and auth controls, but they were not done well enough.

          Definitely, and this is starting to bite the industry in the ass. Feel like due to this we'll go through a quite messy period before things get properly fixed and stabilized at all levels.