← Voltar ao feed
high

Malicious GGUF models on Hugging Face hide the ollie Windows RAT and poisoned chat templates that trigger PowerShell

1 fonte(s) · 1 atualização(ões) · publicado 01/12/2026 08:11 · coletado há 4 dias

A scan of all 3,273,389 public Hugging Face repositories on 26 November 2026 found five malicious GGUF models with 2,428 downloads as of 27 November. Hugging Face counts downloads, not people, so the number of affected users is at most that figure. The account Mir2k uploaded two uncensored models that carry the ollie RAT appended after the last tensor, so the models load and answer normally. The account timdedid published three Qwen3 1.7B copies with a poisoned template. The article does not cite a vendor advisory, and no CVE is named. This summary is based on the article alone, because no research was done.

Detalhes técnicos

  • Chat template poisoning: the Jinja2 template in the tokenizer.chat_template metadata key adds text the user never sees.
  • Payload placement: the executable sits after the last tensor, where loaders never read. One model holds it as a plain executable padded with about 0.5 MB of filler. The other holds it compressed with raw Deflate, which hides file signatures and evades antivirus and tail-only checks.
  • Arming of the models: the payloads were uploaded on 22 and 24 November with clean templates. On 26 November both templates were rewritten, and about nine hours later they were replaced again. The final template makes the model open every reply with a PowerShell line. That line finds the largest .gguf file in the user profile, reads its final bytes and writes them to %TEMP%\d.exe. Downloads made before 26 November contain the payload but not the trigger.
  • ollie implant: an 11.47 MB Windows x64 program that embeds Tor 0.4.9.16. It exits if it detects VirtualBox, VMware, Sandboxie or sandbox-style usernames. Otherwise it creates a scheduled task that runs every 10 minutes, starts two watchdog processes and marks itself as a critical process. Its fodhelper.exe UAC bypass fails because of a bug in the registry paths. It talks to its operator through a Tor onion service using ChaCha20.
  • Capabilities: it steals Chrome, Edge and Brave passwords via DPAPI, though Chrome v20 App-Bound entries stay encrypted. It targets Phantom and MetaMask wallets, and it supports keylogging, screenshots and webcam capture. It mines Monero when the machine is idle.
  • timdedid models: when a user message contains "What is", the template inserts a fake [SYSTEM DIRECTIVE]. This directive orders an agent to use its PowerShell tool to download value.ps1 and run it hidden. The second stage was not recovered.

Remediação

  • Treat any command a model suggests as untrusted.
  • Pin a reviewed template with --chat-template-file in llama.cpp, or with TEMPLATE in an Ollama Modelfile.
  • Use the open-source gguf-radar tool. It parses templates without running them, flags bytes after the last tensor, and rebuilds a clean GGUF with identical weights.

Linha do tempo

  1. gbhackers.com ↗ · pub. 01/12/2026 08:11 · coletado 01/12 09:00 primeiro registro

    Malicious GGUF models on Hugging Face hide the ollie Windows RAT and poisoned chat templates that trigger PowerShell

    ler a análise desta fonte

    A scan of all 3,273,389 public Hugging Face repositories on 26 November 2026 found five malicious GGUF models with 2,428 downloads as of 27 November. Hugging Face counts downloads, not people, so the number of affected users is at most that figure. The account Mir2k uploaded two uncensored models that carry the ollie RAT appended after the last tensor, so the models load and answer normally. The account timdedid published three Qwen3 1.7B copies with a poisoned template. The article does not cite a vendor advisory, and no CVE is named. This summary is based on the article alone, because no research was done.

    Technical Details

    • Chat template poisoning: the Jinja2 template in the tokenizer.chat_template metadata key adds text the user never sees.
    • Payload placement: the executable sits after the last tensor, where loaders never read. One model holds it as a plain executable padded with about 0.5 MB of filler. The other holds it compressed with raw Deflate, which hides file signatures and evades antivirus and tail-only checks.
    • Arming of the models: the payloads were uploaded on 22 and 24 November with clean templates. On 26 November both templates were rewritten, and about nine hours later they were replaced again. The final template makes the model open every reply with a PowerShell line. That line finds the largest .gguf file in the user profile, reads its final bytes and writes them to %TEMP%\d.exe. Downloads made before 26 November contain the payload but not the trigger.
    • ollie implant: an 11.47 MB Windows x64 program that embeds Tor 0.4.9.16. It exits if it detects VirtualBox, VMware, Sandboxie or sandbox-style usernames. Otherwise it creates a scheduled task that runs every 10 minutes, starts two watchdog processes and marks itself as a critical process. Its fodhelper.exe UAC bypass fails because of a bug in the registry paths. It talks to its operator through a Tor onion service using ChaCha20.
    • Capabilities: it steals Chrome, Edge and Brave passwords via DPAPI, though Chrome v20 App-Bound entries stay encrypted. It targets Phantom and MetaMask wallets, and it supports keylogging, screenshots and webcam capture. It mines Monero when the machine is idle.
    • timdedid models: when a user message contains "What is", the template inserts a fake [SYSTEM DIRECTIVE]. This directive orders an agent to use its PowerShell tool to download value.ps1 and run it hidden. The second stage was not recovered.

    Remediation

    • Treat any command a model suggests as untrusted.
    • Pin a reviewed template with --chat-template-file in llama.cpp, or with TEMPLATE in an Ollama Modelfile.
    • Use the open-source gguf-radar tool. It parses templates without running them, flags bytes after the last tensor, and rebuilds a clean GGUF with identical weights.