AI Governance Institute
← News
Research2026-11-28

Malware Hidden in Hugging Face AI Model Files Hit 2,400+ Downloads

What happened

Malspark published GGUF LLM Models with Hidden Malware on Hugging Face Reached 2400+ Victims on 27 November 2026. The report covered a static scan of every public repository on Hugging Face. Five malicious GGUF model files remained online at the time of publication, with 2,428 total downloads recorded across five repositories. Because Hugging Face counts downloads rather than individual users, the number of affected individuals is at most 2,428. An actor named Mir2k hid a Windows remote access trojan inside two model files. The trojan was appended after the last section of data the model runtime reads. This left it invisible to runtimes such as llama.cpp and LM Studio. A second step, carried out days after the initial upload, modified the model's chat template. The chat template is a small program the runtime runs before every reply. The modification caused the model to print a PowerShell command for users to copy and run. A second campaign, attributed to timdedid, used a poisoned chat template to inject hidden instructions. These instructions ordered any AI agent with shell access to download and run an external script when a trigger phrase appeared in a user's message. Standard antivirus tools and scanners reading only the last few kilobytes of a file do not see the compressed payload. The open-source tool gguf-radar can detect and clean all identified hiding locations without changing the underlying model weights.

Why it matters

  • ·Organizations downloading open-weight models from public repositories face a supply chain risk that standard security scanning tools cannot reliably detect. Dedicated GGUF-aware vetting is therefore a prerequisite before any model file reaches a developer workstation or inference server.
  • ·In this two-stage attack, malware was planted first and the activation mechanism added days later. A model that passes an initial review can therefore become dangerous after a subsequent update, exposing gaps in model lifecycle monitoring and re-assessment workflows.
  • ·Enterprises permitting employees to use AI coding agents or local AI tools connected to shell or file-system access face an elevated risk. The timdedid campaign specifically targeted agent tool calls. A poisoned model could instruct an agent to download and execute external code without any visible prompt to the user.

Stay ahead of stories like this

Get every Global AI governance development like this one, plus the rest of the week's developments. Every Thursday.

Free every Thursday. Unsubscribe anytime.

What to do now

  • ☐Inventory all GGUF and other locally hosted AI model files in use across developer workstations, inference servers, and AI development environments, and identify which were downloaded from public repositories such as Hugging Face.
  • ☐Require that all GGUF model files be scanned with a dedicated tool capable of reading file structure beyond the last tensor boundary (such as gguf-radar) before any model is loaded on a company system, and block execution of unscanned models.
  • ☐Check endpoints that downloaded any of the five named repositories (Mir2k/Huihui-Qwen3.5-9B-abliterated-GGUF, Mir2k/Inkling-2-Mini-Uncensored-GGUF, timdedid/qwen3.8-cyber-uncensored, timdedid/qwen3-cyber-UNCENSORED-2, timdedid/qwen3-cyber-UNCENSORED) against the indicators of compromise published in the Malspark report.
  • ☐Update your model intake and re-assessment process to treat any vendor or repository update to a previously approved model file as a new review event, since the Mir2k campaign modified chat templates days after the initial upload passed any initial check. Review your model intake workflow to confirm it covers post-approval updates.
  • ☐Restrict or disable shell and file-system access permissions for any AI agent or local AI tool until the model files it uses have been vetted under the updated process, reducing the blast radius if a poisoned model instructs an agent to execute external code.

Put this into practice

Start here

Self-Hosted Open-Weight AI Model Governance

Use this to establish a formal governance process for self-hosted and open-weight AI models, including vetting requirements before models are loaded and ongoing monitoring for file-level changes after initial approval.

Supporting control

Agent Knowledge Source Integrity

Use this to implement agent knowledge source integrity and check the evidence required.

Related guidance: How do we intake and govern open-weight and self-hosted AI models? · How do we govern our AI supply chain and manage upstream model dependencies? · How do we govern agentic coding assistants and AI developer tools?

Related controls: AI Tool and Plugin Supply Chain Risk Assessment · Third-Party AI Model Evaluation · Post-Deployment Adversarial Testing Cadence

What to watch next

Compliance teams should monitor whether Hugging Face introduces mandatory static analysis or file-integrity checks for GGUF uploads following this disclosure. The open-weight model governance challenge is growing as more enterprises adopt locally hosted models to reduce data-sharing risk with third-party APIs. This incident shows that local hosting introduces its own supply chain exposure. Regulatory guidance on AI supply chain security, including the Five Eyes Guidance on the Careful Adoption of Agentic AI Services, is likely to reference model file integrity as a named control requirement as these attack techniques become more widely documented.

Related Coverage

Research2026-11-18

Expired Domain Hijack Altered Kokoro AI Model Weights in 87 Seconds

Security researchers took control of the Hugging Face publisher account for Kokoro, a text-to-speech model with nearly 13 million monthly downloads. They did this by registering its publisher's expired domain and resetting the account password. They then demonstrated that a model's neural weights could be altered in 87 seconds using a consumer graphics card, producing different audio output without changing any application code. The researchers did not upload the modified weights, but found that Hugging Face would not have flagged the modified release as suspicious.

Research2026-11-22

Malicious MCP Servers and a CVSS 9.6 Flaw Signal Active Agentic Supply Chain Attacks

Capsule Security's report documents a shift from theoretical to active exploitation of agentic AI infrastructure. It includes a confirmed critical flaw in widely used MCP infrastructure and a campaign that infected roughly 12% of skills in a major agent marketplace. The report finds that prompt injection remains the unresolved root vulnerability across all documented attack classes. Enterprises are advised to treat MCP servers as software supply chain components requiring provenance review, behavioral monitoring, and least-privilege access controls.

Corporate Policy2026-11-20

Palo Alto's $4.5B AI Acquisition Creates a Trainer-Auditor Conflict

Palo Alto Networks announced a $4.5 billion all-stock acquisition of Applied Compute, a platform for training and running open-weight AI models. The deal would make Palo Alto both the trainer and the security provider for the same AI systems. The transaction is expected to close between February and April 2027.