---
title: "Why K-12 Districts Need a Model Supply Chain Policy Before Deploying AI"
slug: "k12-model-supply-chain-security-policy-gguf"
author: "ibl.ai"
date: "2026-11-30 12:00:00"
category: "Premium"
sector: "k-12"
topics: "K-12 AI security, model supply chain, malicious GGUF models, Hugging Face malware, chat template poisoning, gguf-radar, Malspark, school district AI policy, COPPA, FERPA, self-hosted AI, model provenance, AI agents with shell access"
summary: "On November 27, 2026 Malspark reported five malicious GGUF models on Hugging Face, found by scanning 3,273,389 public model repositories and downloaded 2,428 times. Model files carry chat templates and hidden bytes, not just weights, so K-12 districts need an intake policy before any model touches student data."
banner: ""
thumbnail: ""
linkedin: |
  A model file is not "just weights."

  On November 26, a researcher publishing through Malspark scanned 3,273,389 public model repositories on Hugging Face. Five GGUF models were malicious, downloaded 2,428 times by the next day. Two hid a Windows trojan after the last tensor; all five carried poisoned chat templates.

  No parser exploit was needed. One template made the model print a PowerShell line for a person to run. Another told an agent with shell access to download and run a script.

  School districts often choose local models precisely to keep student data in-house. That makes the model file part of the district's attack surface, and it deserves the same intake review as any other software.

  The policy is short: an approved-source list, a scan before first load, a template the district controls, no shell access for agents that touch student data, and a model inventory.

  On ibl.ai you own all the code and the data, so that policy is enforced inside the district's own perimeter.

  #iblai #K12 #CyberSecurity #AISecurity #EdTech
---

## The Short Answer

**A K-12 district needs a model supply chain policy because a downloaded model file can carry more than weights: a November 26, 2026 scan of 3,273,389 public Hugging Face repositories found five GGUF models with poisoned chat templates, two hiding a Windows trojan, downloaded 2,428 times. On ibl.ai you own all the code and the data, so the district decides which model files enter its perimeter and checks them first.**

Districts already vet software vendors, sign data agreements and patch servers. Almost none vet the model file itself.

That gap matters most in exactly the districts doing the careful thing: running open models locally so student conversations never leave the network. The model file then sits inside the trust boundary, and nobody has written down who is allowed to bring one in.

## What did the November 2026 Hugging Face GGUF scan actually find?

**The November 2026 scan found five malicious GGUF model repositories on Hugging Face, out of 3,273,389 public model repositories checked.** The write-up, by a researcher named Düzgün, was published by the open-source security project [Malspark](https://malspark.com/blog/malicious-gguf-models-hugging-face/) on November 27, 2026.

GGUF is the file format used by llama.cpp, Ollama and LM Studio to run models locally. Of the repositories scanned, 226,310 held GGUF files. The five malicious ones came from two accounts, which Malspark calls Mir2k and timdedid.

Malspark counted 2,428 downloads on November 27, up from 1,502 the day before. Hugging Face counts downloads, not people, so the number of affected users is at most that figure.

By 13:09 GMT on November 28, Hugging Face's API reported all five repositories as disabled, [according to On The Wire](https://onthewire.ai/article/open-source-security-project-malspark-says-five-gguf-models-on-hugging-face-were), which recorded 2,807 combined downloads at that moment.

## How did the malicious GGUF models work if a model file is "just weights"?

**The malicious GGUF models did not exploit a bug in the inference engine; they abused two parts of the file that are not weights: the chat template stored in the metadata, and bytes appended after the last tensor.** Malspark states no software exploit was involved.

A GGUF file carries a chat template, a small program that formats each conversation before the model sees it. A poisoned template can add hidden instructions to every exchange. Malspark found poisoned templates in all five models.

In the Mir2k campaign, the template made the model start its answers with a PowerShell line that a user might copy and run. That command unpacks a Windows program hidden after the last tensor, a region loaders never read, so the model behaves normally.

In the timdedid campaign, a hidden "system directive" in the template told an AI agent with shell access to download and run a script when a message contained "What is". The script itself was not recovered.

So execution needed one more step: a person pasting a command, or an agent allowed to run one. That is good news for policy. Both steps are things a district can forbid.

## Why is a malicious model file a student data problem for K-12 districts?

**A malicious model file is a student data problem for K-12 districts because the model sits wherever student conversations are processed, and districts often run local models specifically to keep that data in-house.** A file that rewrites the conversation or plants a trojan on the host is inside the boundary the district drew to protect students.

Two federal rules frame the stakes. [COPPA](https://www.ecfr.gov/current/title-16/chapter-I/subchapter-C/part-312) governs personal information collected online from children under 13. [FERPA](https://www.ecfr.gov/current/title-34/subtitle-A/part-99) governs who may access education records.

Neither rule mentions model files. Both make the district accountable for where student data goes, and a trojan on an inference host is a path out that no data agreement covers.

The exposure is also wider than the classroom tool. The timdedid template targeted an agent with shell access, a capability a district IT team might grant on the same machines that run a student-facing model.

We made the related point about origin and jurisdiction in [FERPA governs data, not which model reasons about it](/blog/ferpa-model-provenance-k12-gap). This post is about the file itself.

## What should a K-12 model supply chain security policy include?

**A K-12 model supply chain security policy needs five controls: an approved-source list, a scan before first load, a district-controlled chat template, no shell access for student-facing agents, and a model inventory.** Each one maps to a step the November 2026 campaigns depended on.

<table style="width:100%; border-collapse:collapse; margin:1.5rem 0; font-size:0.95rem;">
  <thead>
    <tr style="background:#f5f5f0; border-bottom:2px solid #2175C5;">
      <th style="text-align:left; padding:0.75rem; color:#5f6368;">Control</th>
      <th style="text-align:left; padding:0.75rem; color:#5f6368;">What it would have stopped in November 2026</th>
      <th style="text-align:left; padding:0.75rem; color:#5f6368;">Owner</th>
    </tr>
  </thead>
  <tbody>
    <tr style="border-bottom:1px solid #e5e7eb;">
      <td style="padding:0.75rem;"><strong>Approved sources only</strong></td>
      <td style="padding:0.75rem;">Mir2k and timdedid were unknown uploaders; a named-publisher allowlist keeps their files out</td>
      <td style="padding:0.75rem;">IT director</td>
    </tr>
    <tr style="border-bottom:1px solid #e5e7eb;">
      <td style="padding:0.75rem;"><strong>Scan before first load</strong></td>
      <td style="padding:0.75rem;">Open-source <a href="https://github.com/Root0ne/gguf-radar">gguf-radar</a>, published by Root0ne, the GitHub account behind Malspark, flags poisoned templates and trailing bytes without running the file</td>
      <td style="padding:0.75rem;">Security lead</td>
    </tr>
    <tr style="border-bottom:1px solid #e5e7eb;">
      <td style="padding:0.75rem;"><strong>District-controlled chat template</strong></td>
      <td style="padding:0.75rem;">Replacing the embedded template removes all five poisoned templates from the conversation</td>
      <td style="padding:0.75rem;">Platform admin</td>
    </tr>
    <tr style="background:#f0f9ff; border-bottom:1px solid #e5e7eb;">
      <td style="padding:0.75rem;"><strong>No shell access for student-facing agents</strong></td>
      <td style="padding:0.75rem;">The timdedid directive only works on an agent that may run commands</td>
      <td style="padding:0.75rem;">Platform admin</td>
    </tr>
    <tr style="border-bottom:1px solid #e5e7eb;">
      <td style="padding:0.75rem;"><strong>Model inventory</strong></td>
      <td style="padding:0.75rem;">When a repository is disabled, the district knows within minutes whether it ever loaded that file</td>
      <td style="padding:0.75rem;">IT director</td>
    </tr>
  </tbody>
</table>

The inventory is the cheapest control and the one most districts lack. It needs five fields: model name and version, source repository, file hash, the systems that load it, and who approved it.

Train staff on one sentence too: never run a command a model suggests. Malspark's own recommendation treats model-suggested commands as untrusted.

## Is checking the publisher's hash enough to trust a model file?

**Checking the publisher's hash is not enough to trust a model file, because a hash proves you received the file the publisher uploaded, not that the publisher is honest.** In November 2026 the uploaders were the attackers, so a matching checksum would have confirmed the malicious file.

Hashes still belong in the inventory. They prove the file a district approved is the file still running. Trust in the content comes from the source allowlist and the scan.

Platform scanning is not a substitute either. In 2024 [JFrog reported](https://jfrog.com/blog/data-scientists-targeted-by-malicious-hugging-face-ml-models-with-silent-backdoor/) about 100 Hugging Face models with malicious functionality, PyTorch models the largest group. PyTorch's pickle format can execute code on load.

GGUF avoids pickle's load-time code execution, which is why it felt safe.

The November 2026 campaigns show the risk moved into the template and the person or agent reading the output. The same pattern appears in agent skills: [26.1% of 31,132 analyzed skills carried a vulnerability](/blog/agent-skill-supply-chain-pre-deployment-scanning).

## What should K-12 districts ask AI vendors about model supply chain security?

**K-12 districts should ask AI vendors four model supply chain questions in writing: which models and versions the product runs, where each model file came from, whether files and templates are scanned before deployment, and how a model update is approved.** A vendor that cannot answer has no model inventory of its own.

Ask, too, whether the district can see or replace the chat template. In a managed product the answer is usually no, which means the district inherits whatever review the vendor did, and cannot verify it.

That is the same blind spot the FBI's November 2026 ARTEX advisory pointed at: systems that receive less security attention than the flagship application. We walked through it in [what the ARTEX advisory means for K-12 districts](/blog/fbi-artex-advisory-k12-school-districts-ai-agents).

If the district runs models itself, the serving layer matters. Our comparison of [Ollama, vLLM and TGI](/blog/self-hosted-llm-serving-stack-ollama-vllm-tgi) covers the trade-offs of each engine a district might run them on.

## How does a district enforce a model intake policy on ibl.ai?

**A district enforces a model intake policy on ibl.ai by running the platform inside its own infrastructure, where its team approves every model, template and agent permission before students reach them.** With ibl.ai you own all the code and the data, so the five controls above are decisions the district enforces itself, not promises a vendor makes.

The platform is model-agnostic. A district can swap a model the day a repository is disabled without rebuilding its agents, and pricing is usage-based with no per-seat pricing, so a cautious model choice never becomes a licensing question.

[ibl.ai's K-12 agents](/solutions/k-12) for tutoring, lesson planning and family communication run on [Agentic OS](/product/agentic-os) with the models the district selects. Tool access, including whether any agent may run commands, is configured by the district's own administrators.

ibl.ai is family-owned and operated from New York, NY, a U.S.-headquartered, domestically-owned long-term partner rather than a vendor that sells licenses and moves on.

*Related: [FERPA Governs Data, Not Which Model Reasons About It](/blog/ferpa-model-provenance-k12-gap) · [Shadow Agents: The Skill Supply Chain Nobody Reviews](/blog/agent-skill-supply-chain-pre-deployment-scanning) · [The FBI ARTEX Advisory for K-12](/blog/fbi-artex-advisory-k12-school-districts-ai-agents)*

*Sources: scan size, the 226,310 GGUF repositories, the five models, the two campaigns and the 1,502 / 2,428 download counts are from [Malspark's November 27, 2026 write-up](https://malspark.com/blog/malicious-gguf-models-hugging-face/). The disabled status and 2,807 downloads at 13:09 GMT on November 28 are from [On The Wire](https://onthewire.ai/article/open-source-security-project-malspark-says-five-gguf-models-on-hugging-face-were). The scanner is [gguf-radar](https://github.com/Root0ne/gguf-radar), published by Root0ne, the GitHub account behind Malspark (MIT licence; it checks files without running the model or its template). The 2024 pickle findings are from [JFrog](https://jfrog.com/blog/data-scientists-targeted-by-malicious-hugging-face-ml-models-with-silent-backdoor/).*

## Why does owning the AI stack matter?

**ibl.ai is the agentic AI platform where you own all the code and the data: the platform's full source code, not only your models and results. You self-host the entire stack inside your own perimeter, run it model-agnostic across any LLM and switch anytime, and pay by usage with no per-seat pricing — so you can deploy anywhere: your cloud, on-premise, GovCloud, or fully air-gapped.**

- **You own all the code and the data.** Full source code under a perpetual license, running on your infrastructure. Not API access to someone else's platform — the stack itself is yours.
- **Model-agnostic.** Run any LLM — Claude, GPT, Gemini, Llama, Command, or your own fine-tune — and switch providers without rewriting the platform.
- **No per-seat pricing.** Usage-based billing against a budget cap you set. Cost tracks what your organization actually uses, not how many people you employ.
- **Deploy anywhere.** Your cloud, your VPC, on-premise, GovCloud, or a fully air-gapped network with no outbound connectivity.

1.6M+ users across 400+ organizations run the platform this way, including NVIDIA, MIT, and Syracuse University.

ibl.ai is family-owned and operated from New York, NY — a U.S.-headquartered, domestically-owned long-term partner, not a vendor that sells licenses and moves on.

[Explore sovereignk12.ai](https://sovereignk12.ai/)
