2,428 GGUF Downloads. The Risk Changed Under the Same Model Name
Malspark flagged five GGUF model repositories on Hugging Face with 2,428 downloads. A late change to two chat templates shows why the exact revision matters.
Two GGUF models on Hugging Face were already carrying Windows malware when their uploader changed their chat templates on November 26, according to security researchers at Malspark. A team that tried one of those models earlier in the week could have pulled it again under the same repository name and handed its developers a model that now urged them to run a command. Malspark’s November 27 investigation
What 2,428 actually counts
Malspark reported five malicious GGUF repositories across two campaigns after scanning public model repositories on November 26. Their combined download count reached 2,428 on November 27. The researchers recovered the Windows program from two repositories. In the other three, they identified templates that tried to induce a tool call, but could not recover the script those templates were meant to fetch. The five repositories represent two observed patterns with different evidence behind them. Malspark’s scan results
The figure comes from repository counters. Hugging Face’s documentation says its counters include requests for qualifying GGUF artifacts, including HTTP HEAD requests, and that cloning a repository with multiple GGUF variants can add multiple counts. The published total leaves three questions open for responders: how many people obtained the models, how many loaded an affected revision, and how many ran a command or gave a tool permission to do so. The report establishes distribution. Endpoint evidence would establish what happened on a particular machine. Hugging Face’s download-count documentation
The template changed after the upload
A GGUF model carries both tensors and metadata. The tensors hold the model weights. A chat template can sit in the metadata and tell the runtime how to assemble the conversation before the model sees it. That makes the template part of the application’s behavior, even when the only thing a developer thinks they imported is a set of weights. A chat window shows the messages the app chooses to display. A template can change what the model receives behind that window. Hugging Face’s GGUF format guide
In the campaign Malspark calls Mir2k, the two initial uploads already contained the malware. Their templates were changed days later to steer replies toward a command a person could run. The sequence matters to anyone investigating a cache: a copy pulled before the template change could still contain the malware, and a later copy could also try to persuade someone to launch it. In the other campaign, the altered templates aimed at a shell-enabled application. For a team testing an assistant that can act on its output, the relevant record is the tool-call log as well as the visible transcript. Malspark’s campaign analysis
A model evaluation can miss both issues. An ordinary prompt may get an ordinary answer, and a benchmark score says little about the provenance of the bytes that were loaded or the template that shaped the prompt. Even an improved score says only that the model did better on that evaluation. If a runtime supports a separately managed chat template, the team can review and version that template alongside its app configuration. The model artifact still needs its own review.
Approve the revision your team actually runs
Record the publisher, repository, immutable revision, exact filename and SHA-256 digest at intake. Include the reviewed template and runtime version in the same record. That gives the person deploying the model enough information to reproduce the review and gives an incident responder something concrete to compare with a cached copy. A runbook entry that says “we use the Qwen GGUF” leaves the responder guessing about the publisher, conversion, quantization and upload history.
A digest answers whether the bytes match a reference. Use a reference from a trusted publisher or from an artifact your team already reviewed and retained. A checksum published alongside an unfamiliar upload carries the same trust problem as the upload itself. For a community conversion, record who converted the model and what upstream release they used. When the provenance is thin and the team already has a trusted upstream release, producing the conversion internally gives the team a record it can stand behind. CISA’s software supply chain guidance for customers
Hugging Face says its malware scan runs on each commit and that a missing badge can mean the scan is queued, in progress or errored. Use those badges at intake, alongside checks that understand the artifact you are actually accepting. For GGUF, that means reviewing the embedded template and inspecting the container for unexpected data before allowing the model into a shared cache. Retain the review result against the digest. When an automated job pulls a new revision, send that revision through the same review before it replaces the approved copy. Hugging Face’s malware-scanning documentation
Keep the first run away from your credentials
Run an unfamiliar model first in a disposable environment with a patched runtime, a read-only model mount and no inherited credentials. Give it synthetic inputs and only the storage it needs for the test. Restrict outbound access during inference when the test can run offline. If the workstation doing the download needs network access, fetch and review the artifact in a separate step so the inference process can run under tighter permissions.
Leave tool execution disabled for the first run. If the evaluation requires tools, expose only the operations needed for that evaluation and log what the application actually allowed. A model testing a code explanation feature can read a disposable repository without a general-purpose shell. When the feature genuinely needs a shell, use a scratch workspace with no developer home directory, credential store or production connection. Keep the authority to allow a consequential action in the application, where it can inspect the request and require approval.
There is a mundane reason to make this workflow easy. If the approved copy takes an afternoon to find, a developer with a demo in ten minutes can grab whatever the model browser serves. Put the approved artifact and template where the existing test runner can use them, and make runs record their identifiers automatically. A teammate starting from a clean checkout should get the reviewed revision without having to remember the name of the person who downloaded it.
If a copy is already in your cache
Pause use of the suspect copy and keep its revision, digest, timestamps and associated logs for your security team. Look beyond the laptop that initiated the pull. A shared model cache, a smoke-test worker or a demo image can each retain a copy after the original download is forgotten. Use the report’s indicators to guide the investigation, and look for evidence of both paths described in the report: a person running a command from chat and an application invoking a shell on the model’s behalf. Malspark’s indicators and recommendations
If command execution is suspected, isolate the affected host through your incident-response process and review what credentials and workspaces it could reach. Bring the model service back with a reviewed artifact and template after the security team has addressed the host exposure. The public counter explains why the report got attention. For your team, the useful facts are the revision you pulled, where you ran it and what that process was allowed to do.
Frequently asked questions
Did 2,428 people get infected?
Malspark reported 2,428 downloads across five repositories as of November 27. The number of confirmed infections is unknown.
Does a successful model load establish that a GGUF is safe?
It establishes that the runtime could load the model. Review the artifact’s provenance, structure and chat template before wider use.
What should I record for an approved model?
Record the publisher, repository, immutable revision, filename, SHA-256 digest, reviewed template and runtime version.
Sources
> Want more like this?
Get the best AI insights delivered weekly.
By subscribing, you agree to our Privacy Policy. You can unsubscribe at any time.
> Related Articles
iFood’s $0.04 Runs Leave One Bill Uncounted
Across a fleet of 15,000-plus repositories, iFood pays an average of four cents for inference per run. What does it cost to turn a run into a usable result?
ChatGPT Is Merging Chat and Work. Will Your Last Run Fit?
ChatGPT is merging Chat and Work, and OpenAI says some heavy users may reach limits sooner. Here’s how to test whether your recurring jobs can still finish.
Google’s DeepCrossAttention Has a 3× Claim. What Did the Clock Measure?
Google’s DeepCrossAttention ran fewer batches per second yet reached a transformer’s target sooner. The 3× claim comes down to when you stop the clock.
Most Read
- 1 Kimi K3.1 Pro: China's Open-Weight Model Just Caught the Frontier
- 2 OpenAI Is Buying the Bottleneck: Can Orchestra Bio Cut a 15-Year Drug Timeline?
- 3 1,068 Tokens Per Second: Can Mercury 3 Change How LLMs Generate Text?
- 4 Same Price, Better Coding: How Good Is DeepSeek V4.1 Flash 1017?
- 5 Used OpenCode? Should You Rotate Your API Key After the Console Breach?
Latest News
- Google’s Decisions API Can Route a Return. Which Rule Wins?
- iFood’s $0.04 Runs Leave One Bill Uncounted
- ChatGPT Is Merging Chat and Work. Will Your Last Run Fit?
- Google’s Decisions API Can Read the Photo. What If the Ticket Disagrees?
- Google’s DeepCrossAttention Has a 3× Claim. What Did the Clock Measure?
- Gemini Decisions API can score a photo. When should your app act?
Tags
> Stay in the loop
Weekly AI tools & insights.