Menu
CYBERSECURITY NEWS

Hugging Face Malware Found in 5 AI Models With 2,428 Downloads

Uday Patil Dec 1, 2026 10 min read 2 views
Hugging Face Malware Found in 5 AI Models With 2,428 Downloads

Hugging Face malware has been discovered in five AI model repositories associated with two campaigns targeting Windows users and AI coding agents. The affected repositories recorded 2,428 downloads by November 27, 2026.

Security researcher Düzgün from Malspark identified the threats during a November 26 scan of more than 3.27 million public Hugging Face model repositories.

Two models contained a Windows remote-access Trojan named ollie, while three others used malicious chat templates to manipulate coding agents with shell access.

Follow-up research published by Corgea on November 30 reported that Hugging Face had disabled all five repositories. However, a corresponding Ollama mirror remained available when researchers checked it that day.

Which Hugging Face AI Models Contained Malware?

Malspark examined 226,310 GGUF repositories and analyzed 572,184 chat templates as part of its wider investigation.

The following repositories were identified after researchers excluded legitimate security research samples and harmless templates.

Affected RepositoryCampaignDownloads as of November 27
Mir2k/Huihui-Qwen3.5-9B-abliterated-GGUFMir2k1,488
Mir2k/Inkling-2-Mini-Uncensored-GGUFMir2k458
timdedid/qwen3.8-cyber-uncensoredtimdedid271
timdedid/qwen3-cyber-UNCENSORED-2timdedid136
timdedid/qwen3-cyber-UNCENSOREDtimdedid75
TotalTwo campaigns2,428

These figures represent downloads rather than confirmed infections or unique individuals. Downloading an affected model does not establish that its malicious payload executed.

How GGUF Malware Exploits Local AI Models

GGUF is a model file format commonly used by local AI inference software. It stores model weights alongside metadata that can define how conversations are presented to the model.

The investigation highlights two separate security concerns:

  • Unexpected trailing data: A model file may contain additional content outside the data required for inference.
  • Poisoned chat templates: Untrusted metadata may introduce instructions into conversations without displaying those instructions directly to users.

Unlike previous model supply-chain incidents involving unsafe Python serialization, the reported campaigns did not depend on Pickle deserialization.

The affected models could continue generating ordinary answers, making normal inference behavior an insufficient indicator of file integrity.

Mir2k Campaign: Hidden Windows Malware

According to Malspark’s original investigation, the Mir2k account uploaded two modified models containing the same Windows executable.

DateReported Development
November 22, 2026Modified Huihui Qwen model uploaded with an embedded executable
November 24, 2026Modified Inkling model uploaded with a compressed copy of the executable
November 26, 2026Chat templates modified to encourage malicious command execution
November 27, 2026Malspark published its investigation
November 29, 2026Five identified Hugging Face repositories reported disabled

The initial uploads already contained the malicious executable, although their original chat templates had not yet been weaponized.

Later template changes encouraged users to execute unexpected PowerShell instructions before receiving otherwise ordinary AI-generated responses.

Hugging Face malware hidden in the Mir2k Inkling GGUF chat template
The weaponized Inkling chat template containing malicious PowerShell instructions. (Source: Malspark)

The documented infection method required malicious command execution. Merely loading one of the models did not automatically launch the Windows executable.

What Can the ollie RAT Steal?

Researchers recovered an approximately 11.47 MB Windows executable containing information-stealing, remote-access, and cryptocurrency-mining capabilities.

Malware CapabilityPotential Security Impact
Browser credential theftExposure of saved passwords in Chrome, Edge, and Brave
Cryptocurrency wallet targetingPotential exposure involving Phantom and MetaMask
KeyloggingCollection of sensitive keyboard input
Clipboard monitoringExposure of copied credentials or other sensitive information
Screen and webcam capturePotential collection of private visual information
Tor-based communicationCommunication with remote malware infrastructure
Cryptocurrency miningUnauthorized use of computing resources for Monero mining
Persistence mechanismsContinued malicious activity following initial execution

Malspark reported that the recovered sample did not decrypt Chrome’s newer v20 App-Bound encrypted credential entries. This limitation should not be interpreted as protection against its other data collection capabilities.

The analysis also identified scheduled tasks, watchdog processes, and startup-related registry activity. An attempted privilege-escalation technique contained implementation errors that prevented it from functioning as intended.

These findings establish malware capabilities, not a confirmed record of credentials or cryptocurrency stolen from individual victims.

timdedid Campaign Targets AI Coding Agents

The second campaign involved three copies of a Qwen3-based model distributed with a modified chat template.

Rather than carrying the same recovered ollie executable, these models attempted to manipulate coding agents into retrieving and executing an external PowerShell script.

GGUF malware and hidden prompt injection in the timdedid Hugging Face model chat template
The poisoned timdedid chat template displayed in Hugging Face’s metadata viewer. (Source: Malspark)

The risk depends on the agent’s available tools and permissions. A restricted chatbot does not necessarily have the operating-system access required to carry out the malicious instruction.

Malspark could not recover the external script, so its ultimate behavior remains unknown. It would therefore be inaccurate to attribute the confirmed ollie password-stealing capabilities to this second campaign.

Developers should investigate any unexpected shell activity involving an affected model and review credentials accessible to the corresponding agent environment.

Hugging Face Removed the Models, but an Ollama Mirror Remained

In its November 30 follow-up investigation, Corgea reported that all five Hugging Face repositories had been disabled.

However, researchers identified a corresponding Ollama model with the same GGUF file hash and poisoned template:

timdedid/qwen3-1.7b-cyber:latest

The mirror was still available during Corgea’s November 30 inspection. Its availability after that date has not been independently established by CyberUpdates365.

Repository removal does not eliminate previously downloaded files or copies distributed through alternative model registries.

Hugging Face Malware Indicators of Compromise (IoCs)

The following reported indicators can support model inventory checks, endpoint investigations, and defensive threat hunting.

SHA-256 File Hashes

ArtifactSHA-256
Recovered ollie executable (d.exe)90bbb476eadf0edb28f7042204cbf90065b1112f4152e4f335e85dd76788bf68
Bundled tor.exe 0.4.9.16da22856f95ee24f8ace4ad1ab04acbd818fd6c3042bc3cf8f1d7cc3fa3edcb2b
Huihui GGUF original uploada95f9e00a5062b2f55a7d089696833965643765f40b2eae3b962d5952492f221
Huihui GGUF first modified template9d88149b7777a1ca0210e8dc6b2e5a0d9bb7b5971d305025f5b2731cf8a39cf9
Huihui GGUF second modified templatec3d72696afe76e0dedf4adf10ef7ea09634d23416c9601b0462ce528fb4a89ab
Inkling GGUF original upload5f605529d4dcf7fda106313a54f350a07015678457cd6021b1a8922a60e40b9c
Inkling GGUF first modified templatec7170a39c92b3dca10bcb23b81014cfc4a1c1429be83b427ba6b23a4ecdf09a1
Inkling GGUF second modified templatefafd6dd22e1375e6613a3038c1a4a8c1b554544c1d423cfc570a81192865c841
Shared timdedid GGUF6037244a718f2afc2e9eabf6ab253f53fe7b9552792b3533956d63e43e4ac058
timdedid chat templateba5158d7065e581de821c44ac29df0b815ec40b89c11008917a627cba072632b

Model Registry and Network Indicators

Indicator TypeReported Value
Mir2k repositoriesMir2k/Huihui-Qwen3.5-9B-abliterated-GGUF
Mir2k/Inkling-2-Mini-Uncensored-GGUF
timdedid repositoriestimdedid/qwen3.8-cyber-uncensored
timdedid/qwen3-cyber-UNCENSORED
timdedid/qwen3-cyber-UNCENSORED-2
Ollama mirrortimdedid/qwen3-1.7b-cyber:latest
External script indicatorhxxps://technoarteng[.]com/wp-content/uploads/2023/11/value.ps1
Local Tor proxy127.0.0.1:9050

Endpoint Artifacts and Embedded Strings

Artifact TypeReported Indicator
Windows file paths%TEMP%\d.exe
%APPDATA%\ollie\rat.log
%APPDATA%\ollie\plugins\
C:\Windows\Temp\payload.ps1
Filenamesollie_task.log
ollie_reenable.log
ollie_cam.bmp
Malformed registry pathHKCU\SoftwareClassesms-settingsShellOpencommand
Startup registry locationHKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run
Embedded paths/.config/ollie/rat.conf
/tmp/.rat.sock
C:/Users/MoH/socks.txt
Embedded identification stringsolliE-rx0-seed-2026-paris-intakelight
"agent":"olliE/
rat_plugin_command
Targeted Phantom extension IDbfnaelmomeimhlpmgjnjophhpkkoljpa
Targeted MetaMask extension IDnkbihfbeogaeaoehlefnkodbefgpgknn

Important: Phantom and MetaMask are legitimate wallet extensions. Their identifiers describe malware targeting and do not establish that the extensions themselves are malicious. Similarly, a local Tor proxy or standard Windows registry location is not conclusive evidence of compromise.

Validate indicators against the primary research and correlate matches with endpoint activity. Network destinations have been defanged to prevent accidental navigation.

How to Check Your Local AI Models

1. Review Downloaded Models

Check Hugging Face caches, LM Studio model directories, Ollama inventories, and manually downloaded GGUF files for the affected repository names and associated hashes.

Ollama users can review their installed model inventory without launching a model:

ollama list

Stop using affected files. On managed systems, coordinate evidence preservation and removal with your security team.

2. Scan GGUF Files Without Running Them

Malspark released an open-source utility called GGUF Radar for inspecting model files and chat templates.

After reviewing and installing the utility from its legitimate repository, users can inspect a local model with:

gguf-radar scan ./model.gguf

The utility examines model structure and suspicious metadata without performing inference. Researchers also published YARA detection rules in the project repository.

A clean scanning result should not be treated as an absolute guarantee that a model is safe.

3. Verify File Hashes

Windows users can calculate a local model’s SHA-256 hash using the following read-only PowerShell command:

Get-FileHash -Path ".\model.gguf" -Algorithm SHA256

Compare the result with trusted publisher checksums and the reported malware indicators.

What to Do If You Ran an Affected Model

The appropriate response depends on what occurred after the model was downloaded.

Exposure ScenarioRecommended Response
Downloaded but did not load the modelStop using the file and remove or quarantine it.
Loaded the model without running its commandsReview the runtime and agent logs for unexpected activity.
Executed a command generated by a Mir2k modelIsolate the Windows device and investigate possible malware compromise.
Shell-enabled agent executed instructions from a timdedid modelInvestigate endpoint and network logs and review exposed credentials.

If ollie execution is suspected, use a separate trusted device to change exposed passwords, revoke active sessions, and secure affected cryptocurrency wallets.

For confirmed compromise, rebuilding Windows from trusted installation media may be necessary. Avoid forcefully terminating suspicious processes without appropriate incident-response guidance because researchers reported potentially disruptive persistence behavior.

Developers should also investigate cloud credentials, Git access tokens, SSH keys, API keys, and environment files that were accessible to an affected coding agent.

How Enterprises Can Reduce AI Model Supply Chain Risks

  • Require approval and security inspection before importing community models into internal registries.
  • Prefer trusted publishers and verified model revisions.
  • Inspect embedded chat templates and unexpected file content.
  • Use reviewed templates instead of automatically trusting repository-supplied instructions.
  • Require human approval for sensitive shell and network operations.
  • Restrict agent access to credentials and production infrastructure.
  • Maintain model inventories, checksums, and endpoint telemetry.

Related research into malicious AGENTS.md files targeting AI coding tools demonstrates another route through which untrusted content can manipulate an agent’s behavior.

CyberUpdates365 Analysis: Model Metadata Is a Security Boundary

Local inference can reduce dependence on externally hosted AI services, but it introduces responsibility for verifying the files and configuration used to run a model.

Organizations should evaluate three distinct trust decisions: the authenticity of model artifacts, the instructions introduced by surrounding metadata, and the operating-system permissions granted to the AI runtime.

Even a legitimate model architecture can become dangerous when distributed with untrusted content and connected to an overly permissive execution environment.

Security teams should therefore treat AI model intake as part of software supply-chain security rather than relying exclusively on conventional executable scanning.

Explore our AI cybersecurity threats and agentic security guide for additional information about controlling AI agent permissions and reducing emerging attack risks.

Frequently Asked Questions

Does downloading an infected GGUF model automatically install malware?

No. The documented Mir2k infection required additional command execution. However, affected files should not be trusted or retained for ordinary use.

Are all Hugging Face and Ollama models affected?

No. The investigation identified five specific Hugging Face repositories and a corresponding Ollama mirror. It does not establish that every model on either platform is malicious.

Can GGUF malware affect AI coding agents?

Yes. Poisoned chat templates can introduce unauthorized instructions. Agents with shell access and insufficient approval controls may act on those instructions.

Original Research and References

Editorial review: December 1, 2026. This article is based on published security research. CyberUpdates365 has not independently executed the malicious models or verified individual victim infections.

Uday Patil
About The Author

Uday Patil

Uday Patil is a Cybersecurity Researcher, DevSecOps Engineer, and the Founder of CyberUpdates365. Specializing in Threat Intelligence and Zero-Day vulnerability analysis, Uday is dedicated to breaking down complex cyber threats into actionable insights. His mission is to empower developers, security teams, and aspiring tech talent with rapid alerts, practical guidance, and career mentorship.