AI · Opinion
Hugging Face should publish how many malicious models its scanners miss
Hugging Face counted 2,428 downloads of poisoned GGUF files, an upper bound on victims. One outsider scanned 3.27 million repositories in a day, so the hub can publish its scan coverage and miss rates.
The Malspark write-up on poisoned GGUF models takes apart its own headline. Hugging Face counts downloads, so the number of affected users is lower or equal to 2,428, and the post cannot say how many people actually ran anything. I still think it is the most useful thing published about model hubs this year, because of how it was measured.
One researcher scanned all 3,273,389 public model repositories on 26 November. That included 226,310 GGUF repositories holding 2.56 PB of weights. The scan read headers and file ends over HTTP Range requests, so no model was downloaded in full, and it parsed 572,184 chat templates without executing any of them. Five malicious repositories survived manual review, and all five were still online the next day. The company that hosts the files has the bandwidth and the access to do at least this well. I know of no published figure for what share of malicious uploads its own scanners catch. If one exists, it belongs on the front page of the docs.
The Mir2k timeline shows why a number is needed. On 22 November the account uploaded a model with an executable appended after its last tensor and a clean template. On 24 November came a second model with the same program compressed. For two days the payload sat in public files with no template to trigger it. Then, on 26 November, both templates were swapped inside the same hour, and swapped again nine hours later. A scan at upload time sees a clean template and, at most, some trailing bytes. Only a rescan on every revision sees the armed version, and I would like to know whether any hub does that.
The trailing bytes alone should get a file bounced. The header and tensor table say exactly where the model data ends, so a hub can compute that offset and compare it with the file size. Safetensors loaders already refuse a file that does not fill its declared tensors exactly. Mir2k padded its first payload with about half a megabyte of filler, which defeats any check that reads only the last few kilobytes. The second payload was raw Deflate, which strips every file signature, so antivirus engines see nothing. A subtraction would have caught both.
The obvious objection is that five repositories out of 3.27 million is a rounding error, and that the Mir2k route needs a person to copy a PowerShell line out of a chat window and run it. On the rate, five is what one outsider found and confirmed by hand. It says nothing about what the researcher missed, and without the hub’s own denominator nobody can say. On the paste, the timdedid template needs no person. When the user’s latest message contains “What is”, which covers a great many opening questions, the template slips in a forged instruction block that tells any agent holding a PowerShell tool to pull down value.ps1 and execute it out of sight. The researcher never recovered the second stage, so what it would have installed is unknown. Anyone who gave a local model a shell tool is the intended victim there.
The Mir2k implant is also more capable than its failures suggest. It is an 11.47 MB program with an embedded Tor 0.4.9.16, and the report lists browser password theft, wallet-extension targeting, keylogging, screen streaming and webcam capture. Its UAC bypass fails because the author compiled the registry paths without their backslashes, and I would expect that kind of typo to be gone by the second release. Downloads of the two Mir2k models took the combined count from 1,502 to 2,428 in a single day, a rise of more than half.
Mir2k also created 14 repositories on 22 November, and most of them are empty placeholders named after models that did not exist yet, among them Qwen4-27B, DeepSeek-V4, Llama-4-Scout and gemma-4-27b. Whoever fills those names first will get downloads from people searching for the real release. Before pulling any GGUF from an uploader you have not seen before, subtract the end of the last tensor from the file size and expect zero. If a model has tools, pin a template you have read with –chat-template-file in llama.cpp, so the one inside the file is never rendered.
Prompted by GGUF LLM Models with Hidden Malware on Hugging Face Reached 2400+ Victims | Malspark, Malspark.