Unofficial Hacker News companion — get notified on comment replies, and more.

GGUF LLM Models with Hidden Malware on Hugging Face Reached 2400 Victims (opens external site)

323 points by homarp 3 days ago | malspark.com | 99 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (11)

  1. 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.
    Replies (1)
    1. > it can't do harm no matter what tokens it generates

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

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

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

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

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

      2. Trusting trust is dead in the age of LLMs.
      3. Except that’s not a real attack.
        Replies (1)
        1. Correct. A real attack would be a "sandboxed" LLM telling you to copy / paste this code into a shell in order to "fix" your problem.
          Replies (1)
          1. Yes, but that's not a Reflections on Trusting Trust attack. That's just misaligning your model
            Replies (1)
            1. "Reflections on trusting trust" is just a misaligned compiler.