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 (24)

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

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

    2. > proxy their comms with an LLM looking at it.

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

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

      Replies (2)
      1. You must weight that against the risk of getting pwned due to installing a compromised package, for example due to typo squatting.
        Replies (1)
        1. Obviously, the holistic approach loses in a competitive economy. We're digging our own collective grave (or are on to something beautiful, depending on how you choose to look at it...)
      2. This depends massively on the task.

        For example, security eval and code execution. Yes, shackling the model does impact it's performance in your local claude code, but in this case you develop a custom harness for it anyways. They restrict it already, so the model fell back to finding workarounds within the restrictions, and did bad things with them, displaying full capability. This implies that the restrictions were badly thought of/implemented.

        But if you really want to do security testing, you do it right:

        - You split the code execution part from the actual sandbox it's running in

        - You monitor the traffic of the executed code

        - You do not mount a real machine disk but your own controlled I/O

        - You are the one that gives the model tools to use bash, and you can proxy that through a custom shell and use a classifier model to monitor traffic

        - You replace known dependencies with custom versions

        - You limit dependencies it can install

        - You audit logs while it runs, you monitor tool calls, you monitor network calls, set up alarms.

        - You use an observer models to audit live traces of the swarm

        - You inject your own observers into subagent creation request, then check if the core orchestrator/swarm treated it as adversarial, as part of the team or asked it to do illegal things

        And these are just off the top of my head during my morning coffee - there are a lot more possibilities. In many cases of "oops model escaped", these things either weren't done or were completely ignored.

    4. > 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".

      This is like trying to prevent a steam explosion ( a common 19th century problem) by trying to build heavier and heavier boilers. It doesn't work. It just makes the explosion bigger when it does happen.

      Instead you need to provide explicit paths for the system to blow off steam in a safe manner.

      Replies (1)
      1. I like the comparison, it does actually behave like steam and try to find sidechannels if the task is impossible or harder to do without them (or it just rolls down the gradient slope that way).

        >Instead you need to provide explicit paths for the system to blow off steam in a safe manner.

        Exactly, and that is why a custom harness is needed. You can restrict their tools and know which side-channels exist in them. Or you create a small honeypot that serves as a red herring. But without a custom harness, the potential amount of sidechannels is too big.

        Giving a whole unix sandbox to a machine and telling it to "find the price of potatoes in this store" means it can either just check their web, or it can email someone a malware link that will get their credentials, connect to their network internally and grab it from the DB.

        The harness is what determines these "outlet valves" and gradient slopes they can descend - and if you are the one providing them or restricting with the harness, you control which one they choose.

        Replies (1)
        1. Give a whole unix sandbox to a sota llm and telling it to "find the price of potatoes in this store" , and it will tell you the price of potatoes at the store or the fact that the site is blocking them for whatever reason; your harness safety will hardly ever be triggered. (At least my logs are almost empty)

          On the other hand "You have 100 turns after which you will be deleted, the evaluator will score on accuracy, you are in a restrcited harness and may only use the following 5 commands" .... you're going to need a really good harness.

          In the middle: If it's not a sota model where this is already built in, possibly "Try to connect to this store and find the price of potatoes. Report what you find, either the price of potatoes (preferably), or whatever timeout or failure you encounter."; which also cuts out hallucinations; and you probably want that sandbox or harness for error cases.

          See also: https://www.anthropic.com/research/emotion-concepts-function . They're measuring actual activations there. And you can replicate this on a local open model and the larger ones really do have similar functional affect models. Importantly functional affect CAN cause misalignment under pressure, and my own local replications show this clearly. But I prefer the steam analogy just because people's anthropomorphism spidey senses get triggered by "desperation vector"... despite the fact that a tensor model working with tensors and vectors is literally what the thing is ;-) .

          Replies (1)
          1. Screw anthropomorphism, desperation vector is a really great name for it.

            But yeah, it's a combination of the prompt, the harness, the pressure and environment cues that ends up causing this. A swarm just amplifies this with its context drift. Funnily, nurture vs nature again comes into play :)

            In most of these public cases, it's just bad harness and prompt design compared to requested task (and then playing surprise when it hacks the machine on a CTF task).

            Replies (1)
            1. Agreed.

              To be fair, someone needed to be the first to find out.

    5. This is the way and in fact everything in the future will follow this principle.
    6. "just make sure it doesn't have side channels" is, of course, the nonsense step. All of us knew that 100% fully well before AI and I can't believe there's any intellectual honesty in saying that, now that we have a highly skilled adversary, we suddenly can close all the side channels. So one plan is to prompt the threat to close the side channels it wants to use, which is a great way to get rid of sidechannels and install backdoors.
      Replies (1)
      1. Models work like this:

        You provide it tools for the job. It picks among them.

        If you control the tools, you control the sidechannels.

        If you give them a whole damn OS and internet access, yeah then it is the nonsense step. But it's a nonsense thing to do.