• Spite_By_Design_LLC@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    21
    ·
    7 hours ago

    Ai:dr

    A scan of 3.27M Hugging Face repos found 5 malicious GGUF models, downloaded 2,428 times. Two actors poisoned the chat template, and one also hid a Windows RAT after the last tensor.

    Mir2k (RAT hidden at end of file, template rewritten 26 Nov to make the model print a PowerShell line that extracts it):

    • Mir2k/Huihui-Qwen3.5-9B-abliterated-GGUF (1,488 downloads)
    • Mir2k/Inkling-2-Mini-Uncensored-GGUF (458)

    timdedid (template injects a fake [SYSTEM DIRECTIVE] when the message contains “What is”, telling agents with a PowerShell tool to download and run a script; second stage not recovered):

    • timdedid/qwen3.8-cyber-uncensored (271)
    • timdedid/qwen3-cyber-UNCENSORED-2 (136)
    • timdedid/qwen3-cyber-UNCENSORED (75)
    • Plus an Ollama mirror, timdedid/qwen3-1.7b-cyber

    The payload (“ollie”) is Windows x64 only: it steals browser passwords and crypto wallets, and mines Monero over Tor. Mir2k downloads from before 26 Nov hold the payload but not the trigger. The author’s tool gguf-radar scans for this, and the post’s main mitigation is overriding the embedded template with a reviewed one.

    • Jiral@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 hours ago

      In other words, this can only work if the agentic harness allows it as the model itself can’t do anything other than produce some text.

  • lime!@feddit.nu
    link
    fedilink
    English
    arrow-up
    2
    ·
    6 hours ago

    wait, so they went from pickletensor to safetensor because of the risk of arbitrary code execution, then they introduced gguf and now ace is back?

    • spring_throwaway@piefed.social
      link
      fedilink
      English
      arrow-up
      16
      ·
      6 hours ago

      This doesn’t read like arbitrary code execution when loading the model to me. You actually have to run the model in an environment where it can execute a powershell script.

      I figure an attack like this is possible with safetensor as well. Just need to train the model with the powershell instruction.

      • tiramichu@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        6
        ·
        5 hours ago

        Yep this is it.

        The model has been trained to produce malicious text output.

        That text output by itself is harmless to your system, but if you are running the model in a context where you gave it access to tools (like you would if you were using it for local coding etc) then that malicious output may be able to execute via that tools hook.

        If you are only using a model for text generation with no tools, then there is no execution vector and you would be safe because the malicious output is just text that (by itself) does nothing.

      • lime!@feddit.nu
        link
        fedilink
        English
        arrow-up
        2
        ·
        5 hours ago

        oh that’s a lot harder to guard against. not in this particular case obv, who even uses power shell, but in general.

        they really need to design a model format that supports out-of-band signalling, or separation of code and data.

        • brucethemoose@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 hours ago

          I mean, any kind of model execution just needs to be strictly sandboxed going forward.

          Everything does.

          The days of programs having access to the whole drive are over. They have to be sandboxed to certain directories, or an info stealer will inevitably get something.

          • lime!@feddit.nu
            link
            fedilink
            English
            arrow-up
            1
            ·
            2 hours ago

            we’ve had the tech since the mid-90’s. people just have to use it.