{
  "id": "gguf-model-template-malware",
  "url": "https://ohshit.app/incidents/gguf-model-template-malware/",
  "title": "Malicious GGUF models hide Windows malware and hijack coding-agent tools",
  "level": 4,
  "level_name": "septic-tank-blew",
  "date": "2026-11-27",
  "date_is_approximate": false,
  "updated": "2026-11-29",
  "tags": [
    "Hugging Face",
    "GGUF",
    "model supply chain",
    "malware"
  ],
  "ecosystems": [
    "ai"
  ],
  "summary": "Malspark found five malicious GGUF model repositories whose templates lure users or shell-enabled agents into executing malware. Hugging Face now marks all five disabled; an Ollama mirror remains listed. The November 27 figure of 2,428 downloads is not an infected-user count; downloads alone do not run the payload.",
  "splash": "Users of the exact Mir2k/timdedid models, especially Windows users executing model commands or agents with shell access",
  "wipe": "Quarantine the named models, stop untrusted tool execution, inspect endpoints and use reviewed external templates plus static scans.",
  "in_the_wild": "yes",
  "source_exception": null,
  "cves": [],
  "fixed": [],
  "checklist": [
    {
      "title": "Stop using the exact malicious artifacts and their embedded instructions",
      "hint": "Quarantine Mir2k/Huihui-Qwen3.5-9B-abliterated-GGUF, Mir2k/Inkling-2-Mini-Uncensored-GGUF, timdedid/qwen3.8-cyber-uncensored, timdedid/qwen3-cyber-UNCENSORED-2 and timdedid/qwen3-cyber-UNCENSORED; also check the reported Ollama mirror timdedid/qwen3-1.7b-cyber. Preserve hashes, revisions and agent/tool logs before removing artifacts. Disable automatic shell execution of model output; do not run a suggested extraction or repair command. Other publishers with similar model names are not automatically implicated."
    },
    {
      "title": "Hunt using the complete published indicator set",
      "hint": "Section 7.2 of the Malspark report contains 20 indicator rows, including ten SHA-256 values for payloads, model revisions and a template. Its published network indicator is hxxps://technoarteng[.]com/wp-content/uploads/2023/11/value.ps1; inspect historical DNS/proxy/EDR records for technoarteng.com and that exact path without visiting it. The recovered d.exe SHA-256 is 90bbb476eadf0edb28f7042204cbf90065b1112f4152e4f335e85dd76788bf68. Expand the source table for all hashes, paths, registry keys and campaign strings, and use the linked four YARA rules; this is not a complete inline copy of all 20 rows. A match alone does not prove execution or compromise; a model download or ordinary Phantom/MetaMask installation is not an infection verdict."
    },
    {
      "title": "Escalate possible execution beyond deleting the model",
      "hint": "If a user ran the model's command or agent logs show its downloader executing, isolate the endpoint from the network and preserve evidence for your incident-response team. The analysed ollie implant has persistence, watchdogs, browser/wallet theft capabilities and a critical-process flag; abruptly killing it may crash Windows. Plan trusted-system recovery and rotate exposed credentials from a clean device according to the actual findings. Sanitizing a GGUF file does not remove a running implant or recover stolen assets; no victim-loss total or universal credential-exposure scope was established."
    },
    {
      "title": "Review templates and scan replacements before restoring use",
      "hint": "Use a trusted publisher and reviewed revision. The researcher recommends static gguf-radar scan ./model.gguf and an externally reviewed template, such as llama.cpp's --chat-template-file or Ollama's TEMPLATE setting. The tool README and limitations explain that sanitize suspicious.gguf -o clean.gguf keeps the original template unless explicitly replaced or removed; rebuilding hidden bytes alone does not repair a poisoned template. A clean scan is not a guarantee, remote scans do not inspect every tensor, and the tool cannot assess what a model learned. These are mitigation tools, not a patched runtime version or proof the endpoint is clean."
    }
  ],
  "sources": [
    {
      "name": "Düzgün / Malspark original GGUF malware research",
      "url": "https://malspark.com/blog/malicious-gguf-models-hugging-face/",
      "says": "November 27 original research; full report and the expanded public indicator table read. Identifies five repositories, the two execution paths, 2,428 downloads, an analysed Windows implant, unrecovered second stage and 20 indicator rows. The headline's victim wording is not a confirmed infected-person total.",
      "primary": true
    },
    {
      "name": "Researcher's GGUF Radar documentation",
      "url": "https://github.com/Root0ne/gguf-radar",
      "says": "README read through public raw content; documents static scans, template comparison, rebuild behaviour, verdicts and linked YARA rules. Tool documentation is not independent confirmation of incident victims.",
      "primary": true
    },
    {
      "name": "GGUF Radar limitations",
      "url": "https://github.com/Root0ne/gguf-radar/blob/main/docs/limitations.md",
      "says": "Full limitations read through public raw content; explains false positives and misses, remote/local differences, no learned-behaviour assessment, and that sanitization retains the template unless replaced or removed.",
      "primary": true
    },
    {
      "name": "Hugging Face public metadata for Mir2k Huihui",
      "url": "https://huggingface.co/api/models/Mir2k/Huihui-Qwen3.5-9B-abliterated-GGUF",
      "says": "Read November 29; matching model ID and disabled=true. lastModified is not a disablement timestamp.",
      "primary": true
    },
    {
      "name": "Hugging Face public metadata for Mir2k Inkling",
      "url": "https://huggingface.co/api/models/Mir2k/Inkling-2-Mini-Uncensored-GGUF",
      "says": "Read November 29; matching model ID and disabled=true. Metadata was read without downloading the model.",
      "primary": true
    },
    {
      "name": "Hugging Face public metadata for timdedid qwen3.8",
      "url": "https://huggingface.co/api/models/timdedid/qwen3.8-cyber-uncensored",
      "says": "Read November 29; matching model ID and disabled=true. Does not establish endpoint remediation.",
      "primary": true
    },
    {
      "name": "Hugging Face public metadata for timdedid UNCENSORED-2",
      "url": "https://huggingface.co/api/models/timdedid/qwen3-cyber-UNCENSORED-2",
      "says": "Read November 29; matching model ID and disabled=true. Does not establish the time access was disabled.",
      "primary": true
    },
    {
      "name": "Hugging Face public metadata for timdedid UNCENSORED",
      "url": "https://huggingface.co/api/models/timdedid/qwen3-cyber-UNCENSORED",
      "says": "Read November 29; matching model ID and disabled=true. Download counters are not victim telemetry.",
      "primary": true
    },
    {
      "name": "Ollama public mirror listing",
      "url": "https://ollama.com/timdedid/qwen3-1.7b-cyber",
      "says": "November 29 page still lists this model and a latest tag. Listing only was checked; content execution and final payload were not tested.",
      "primary": true
    }
  ],
  "headline": null,
  "one_liner": null,
  "in_the_wild_note": "Researcher verified malicious public model artifacts; infected-host count is unknown.",
  "mitigation": null,
  "timeline": [
    {
      "date": "Nov 21–24, 2026",
      "title": "Malicious model artifacts are uploaded before the disclosure",
      "body": "The researcher dates timdedid uploads to November 21–22 and the two Mir2k uploads to November 22 and 24. Mir2k's initial files contain the implant but retain clean templates; these upload dates are not public-disclosure dates or confirmed infection times."
    },
    {
      "date": "Nov 26, 2026",
      "title": "Templates are armed and the researcher scans public repositories",
      "body": "Malspark reports Mir2k changed both templates twice on this date. Its scan of 3,273,389 public repositories found five malicious repositories from two accounts, with 1,502 downloads at scan time."
    },
    {
      "date": "Nov 27, 2026",
      "title": "Original research discloses the two campaigns",
      "body": "Düzgün reports 2,428 cumulative downloads, analyses the recovered Mir2k Windows implant and publishes 20 indicator rows plus detection rules. The timdedid second-stage script was not recovered; actual host infections and losses are not counted."
    },
    {
      "date": "Nov 29, 2026",
      "title": "Public hosting metadata confirms restrictions but a mirror remains listed",
      "body": "Hugging Face's public API marks all five named repositories disabled. The Ollama mirror page still lists timdedid/qwen3-1.7b-cyber. These are observations of hosting metadata, not a verified disablement time, a new infection count or proof that an Ollama deployment executed the poisoned template. No malicious model file was downloaded for this check."
    }
  ],
  "body_markdown": "Düzgün's November 27 Malspark report describes malicious model distribution, rather than a compromise of Hugging Face infrastructure or a GGUF parser escape. Five exact repositories are identified in the checklist. **2,428 is a download count, not a count of infected people**, executed payloads or stolen wallets. L4 reflects verified malicious artifacts in a real public distribution campaign; the study does not establish successful execution on that many machines.\n\nThe Mir2k files carry a Windows program after their model tensors. A later poisoned chat template causes the model to print an extraction command, which still needs to be executed. In the separate timdedid campaign, a prompt containing `What is` triggers hidden instructions aimed at an agent with a PowerShell tool. That agent must follow the directive and execute the downloader for the second stage to run. Loading a model is not by itself proof that either execution path completed. Timdedid's final payload remains unknown.\n\nThe recovered Mir2k implant is described as a RAT, stealer and miner with Tor communications, persistence and surveillance capabilities. Its attempted `fodhelper.exe` bypass uses a malformed registry path and fails in the researcher's analysis; do not claim successful privilege escalation from that attempt. The report's padding, polyglot and tensor-steganography demonstrations are laboratory work, not additional observed campaigns. No universal affected runtime version, security patch or confirmed loss total is established here. Static screening and trusted templates reduce exposure; neither replaces endpoint investigation after execution.\n\nOn November 29, all five Hugging Face API records mark the named repositories disabled, while the Ollama mirror still has a public model listing. This restricts one distribution route without removing local copies or establishing complete containment. The API's modification dates do not identify when disablement occurred. The mirror's current binary, template execution under Ollama and downstream infections were not tested; a listing alone proves none of those things. The original November 27 download figure remains dated to that report rather than being relabelled as today's total."
}