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

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