Poisoned GGUF models are no longer a theoretical local AI supply-chain risk. On November 29, 2026, an independent check found that a model carrying a hidden instruction was still downloadable from Ollama after Hugging Face had disabled five related repositories.

The discovery matters because GGUF is widely treated as a convenient, safer way to run open models locally. Yet a model file can contain more than weights. It can also carry metadata, a chat template, and appended data that turns an ordinary download into a social-engineering or agent-execution path. If your team runs community models, now is the time to verify every artifact before it reaches a workstation, server, or tool-enabled agent.

Key Takeaway: A model file is executable supply-chain input even when the loader does not directly execute it. Treat provenance, templates, hashes, and agent permissions as one security boundary.

What the November 29 poisoned GGUF models report confirms

MACCUS reported on November 29 that it checked an Ollama package at 00:07 UTC and found it still available with 100 pulls. The first 16 MB contained a 4,116-character chat template with a directive telling an AI agent to call a PowerShell tool.

That was a fresh cross-registry finding, not simply a repost of an older disclosure. Hugging Face had disabled the five repositories by November 28, but the copy in another model catalog remained reachable the next day. This shows why a takedown at one registry does not remove mirrors, cached blobs, developer downloads, or internal copies.

The original Malspark investigation scanned 3,273,389 public Hugging Face repositories and found five malicious GGUF models across two campaigns. At the time of its November 27 report, their counters totaled 2,428 downloads.

Do not translate download or pull counters into victims. Researchers, automated scanners, repeated requests, and partial downloads can all increase a counter. Public evidence does not establish how many systems were infected, and the known triggers still required a person to run a displayed command or an agent to possess an appropriate execution tool.

Key Stat: Five malicious models were found among more than 3.27 million scanned repositories. Low prevalence does not mean low impact when an unreviewed artifact can reach privileged developer systems.

How a poisoned GGUF file turns trust into execution

GGUF is a binary format optimized for local inference. Hugging Face's GGUF documentation explains that it stores tensors alongside standardized metadata, and popular tools can read that information to configure a model.

The two reported campaigns used different paths, which is important for defenders.

Appended payload plus a manipulated template

In the larger campaign, researchers found a Windows program appended after the model's expected tensor data. A modified chat template then tried to make every answer begin with a PowerShell command that would locate the GGUF file, extract the appended bytes, and start the program.

The loader did not need to interpret the trailing program as model code. The attack depended on turning the model's response into an instruction that a person might copy. That is a trust exploit: the output looks like it came from the model the user intentionally downloaded.

A template aimed at tool-enabled agents

The second campaign embedded a directive intended for an agent with a PowerShell tool. A particular prompt pattern could cause the template to tell the agent to fetch and run a remote script.

This is where local AI convenience changes the risk. A chat-only process can display a dangerous command, but an agent with shell access may act on it. The same principle appears in conversation-history poisoning: untrusted instructions become much more dangerous when a system mistakes them for prior authorization.

Common Mistake: Do not call a file safe merely because it is GGUF rather than pickle. A format may prevent one direct deserialization attack while still carrying templates, metadata, or extra bytes that influence a person or an agent.

Editorial illustration visualizing why registry scanning and takedowns are not enough in an enterprise cybersecurity context

Why registry scanning and takedowns are not enough

Hugging Face says it scans repository files for malware and also integrates specialized model scanners. Those controls are valuable, but its malware-scanning documentation also makes clear that scan state and results are properties of files in that repository.

Your organization still owns the last mile between a public artifact and a running model. Four gaps matter:

  1. Copies outlive listings. A disabled repository does not delete developer workstations, shared storage, build caches, container layers, or another registry's copy.
  2. Novel patterns evade signatures. A trailing payload, unusual template, or newly compiled program may not match known malware rules.
  3. Trusted accounts can change. A model reviewed last month may receive a new revision, a changed template, or an added file.
  4. Runtime permissions determine impact. The same artifact has different consequences in a read-only sandbox and on a developer laptop with credentials and shell access.

This resembles other software supply-chain incidents, but model artifacts add a behavioral layer. Traditional package controls focus on what installation runs. Model controls must also cover what the artifact causes the model or agent to say and do.

If your existing process stops at a green registry badge, use the same disciplined thinking described in our hardware supply-chain verification guide: validate origin, preserve evidence, and make approval depend on an independently checked artifact.

Immediate response checklist for local AI teams

Start with containment and inventory. Do not open suspicious model files in the same environment you are trying to protect.

1. Find every copy

Inventory GGUF files on local workstations, inference hosts, shared model stores, CI caches, and container images. Record the full path, size, hash, source registry, repository, revision, download time, and system owner.

Also list Ollama manifests and any internal model aliases. A friendly internal name can hide the fact that multiple systems depend on one community artifact.

2. Isolate named or unverified models

Stop workloads that use a model linked to the reported accounts or any model whose origin cannot be reconstructed. Move the artifact to a quarantined, access-controlled location using a recoverable process. Preserve logs, manifests, shell history, process telemetry, and the original hash before changing it.

Do not test the suspicious prompt on a production agent. Static inspection is safer than trying to reproduce execution with live tools attached.

3. Review templates and file structure

Extract the embedded chat template with a non-executing parser and look for shell names, command interpreters, download utilities, encoded blocks, tool-call directives, hidden instructions, and conditions tied to ordinary prompts. Compare the end of the last expected tensor with the physical end of the file to identify unexplained trailing data.

Use more than antivirus. The reported campaign included patterns that required format-aware checks. Malspark released a purpose-built scanner, but teams should validate any new security tool before introducing it into a trusted pipeline.

4. Hunt for consequences

Search endpoint and network telemetry for processes, paths, domains, and hashes published by the researchers. Review PowerShell logs, child processes spawned by inference applications, unexpected files in temporary directories, outbound connections, cryptomining indicators, and credential access.

If evidence suggests execution, treat the host as potentially compromised. Isolate it, rotate secrets accessible from that system, and follow the incident-response plan rather than assuming removal of one model fixed the problem.

Pro Tip: Separate the questions "Is this model malicious?" and "Did this host execute anything?" A clean hunt does not prove the artifact is safe, and a removed artifact does not prove the host is clean.

Editorial illustration visualizing build a verify-before-load pipeline for poisoned gguf models in an enterprise cybersecurity context

Build a verify-before-load pipeline for poisoned GGUF models

The durable fix is an admission pipeline that blocks direct production pulls from public model catalogs. Every approved model should move through a controlled process before inference begins.

Use these stages:

  1. Pin an immutable revision. Resolve a repository reference to a commit and record the expected files.
  2. Download in an isolated fetch environment. Give the fetcher no production secrets and no access to sensitive networks.
  3. Calculate and store cryptographic hashes. Sign the approval record or protect it in an append-only system.
  4. Inspect the container structure. Parse metadata and tensor boundaries without loading the model for inference.
  5. Review the chat template. Compare it with a known-good template and reject unexpected tool instructions or obfuscated content.
  6. Scan every component. Combine conventional malware scanning, model-aware analysis, secret scanning, and policy checks.
  7. Test in a disposable sandbox. Run behavior tests with no credentials, no shell, and tightly controlled network access.
  8. Promote to an internal registry. Production should retrieve only approved hashes from a source your team controls.

Re-run the pipeline when the revision, file hash, template, runtime, or tool configuration changes. "Same model name" is not a security identity.

This approach also makes removal practical. If a public repository is disabled, you can search an internal bill of materials for the exact hash and identify every dependent deployment instead of asking teams whether they remember downloading it.

Contain the agent even when a model passes review

Artifact approval reduces risk, but it cannot prove that every model response will be safe. Runtime controls limit what a compromised or manipulated model can accomplish.

Begin with least privilege:

  • run inference under a dedicated, unprivileged account
  • mount model files read-only
  • keep cloud credentials, SSH keys, browser sessions, and password stores out of the runtime
  • deny outbound network access by default
  • allow only narrowly defined tools with typed inputs
  • require human confirmation for shell commands, downloads, file writes, and credential use
  • log tool requests and results outside the agent's control

For desktop deployments, review operating-system privacy and filesystem grants. Our guide to limiting AI agent permissions on macOS shows why broad host access can turn one bad instruction into exposure of mail, messages, browser data, and local files.

For services, separate the model process from the tool executor. The model should propose a structured action, while a policy layer validates the operation, target, arguments, user authorization, and expected effect. Do not pass raw model output directly to a shell.

Finally, create a kill switch that revokes an approved model hash, stops new deployments, and identifies active instances. A registry takedown is only useful to your organization if your runtime can translate that signal into action.

A 30-day local model security plan

You do not need a large platform team to improve local AI safety. Assign one owner and work through a short sequence.

In the first 24 hours: inventory GGUF artifacts, quarantine named models, inspect templates, hunt for published indicators, and disable autonomous shell access for community models.

In the first week: establish an approved internal source, pin revisions and hashes, add static structure and template checks, and document the response path for a revoked model. Review local AI dependencies using the discovery approach in our hidden AI dependency guide.

Within 30 days: enforce the admission pipeline, isolate inference identities, add egress controls, test the model kill switch, and run an exercise in which a trusted model revision is replaced by a hostile update.

Measure progress with evidence, not policy statements. Useful metrics include the percentage of deployed models with approved hashes, the number of runtimes with unrestricted shell or network access, time to locate a revoked artifact, and time to stop every dependent deployment.

Key Takeaway: Local execution improves privacy only when the model supply chain and host permissions are controlled. Downloading a community model onto your own hardware does not make the artifact trustworthy.

The November 29 cross-registry finding gives defenders a practical warning. Model catalogs are distribution systems, model files are active inputs, and tool-enabled agents amplify whatever those inputs contain. Verify before load, contain after approval, and make revocation fast enough to matter.