Remix.run Logo
▲ mrob 2 hours ago

IMO, any system that was exploited by this was already insecure. It's not exploiting bugs in the inference engine or attempting any kind of sandbox escape. Here the exploit was in the chat template, but it's possible to encode the same thing directly in the weights. Unless the model is truly Open Source (not just open weight), there's no way to know what malicious instructions might be encoded in the weights. The only defense is to sandbox the agent sufficiently strongly that it can't do harm no matter what tokens it generates. In such a sandbox, it doesn't matter that the payload was stored directly in the GGUF file, because it won't be able to do anything with it anyway.

▲za_creature 2 hours ago | parent [-]

> it can't do harm no matter what tokens it generates

https://people.cs.umass.edu/~emery/classes/cmpsci691st/readi...

▲mrob 2 hours ago | parent [-]

That's not specific to LLM agents. The trusting-trust attack applies to all computer security, and there are countermeasures:

https://dwheeler.com/trusting-trust/

▲za_creature 2 hours ago | parent [-]

Nice try. The "countermeasures" are just about compilers: https://dwheeler.com/trusting-trust/dissertation/html/wheele...

There is no general purpose solution. Using multiple LLMs does not work since their outputs are not deterministic so you can't use the same trick.

▲mrob an hour ago | parent [-]

The discussion was about sandboxing the agents. Here's a simple and secure sandbox:

exit(1);

Use diverse double compilation to verify that your compiler compiled it correctly.

More usefully, LLM output can be restricted to a form that can be verified with deterministic tools, e.g. Lean. Allowing agents access to sufficient resources that running a malicious payload can cause harm is always a mistake, regardless of whether a payload was actually hidden in the GGUF file or not.

▲za_creature an hour ago | parent [-]

Still not enough unless you write the Lean code yourself. And even then, the specification could have extra "features" you didn't bank on:

https://sel4.systems/About/FAQ.html#does-sel4-have-zero-bugs