Hugging Face Malware Found in 5 AI Models With 2,428 Downloads Security researcher Düzgün of Malspark found malware in five Hugging Face model repositories tied to two campaigns, which recorded 2,428 downloads as of November 27, 2026, during a November 26 scan of more than 3.27 million public model repositories. Two Mir2k repositories carried a roughly 11.47 MB Windows remote-access Trojan named ollie with credential-theft and cryptocurrency-mining capabilities, while three timdedid repositories used poisoned chat templates to push coding agents with shell access toward executing PowerShell commands. Corgea reported on November 30 that Hugging Face had disabled all five repositories, though a corresponding Ollama mirror remained available when researchers checked that day. 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 Repository | Campaign | Downloads as of November 27 | |---|---|---| | Mir2k/Huihui-Qwen3.5-9B-abliterated-GGUF | Mir2k | 1,488 | | Mir2k/Inkling-2-Mini-Uncensored-GGUF | Mir2k | 458 | | timdedid/qwen3.8-cyber-uncensored | timdedid | 271 | | timdedid/qwen3-cyber-UNCENSORED-2 | timdedid | 136 | | timdedid/qwen3-cyber-UNCENSORED | timdedid | 75 | | Total | Two campaigns | 2,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 https://malspark.com/blog/malicious-gguf-models-hugging-face/ , the Mir2k account uploaded two modified models containing the same Windows executable. | Date | Reported Development | |---|---| | November 22, 2026 | Modified Huihui Qwen model uploaded with an embedded executable | | November 24, 2026 | Modified Inkling model uploaded with a compressed copy of the executable | | November 26, 2026 | Chat templates modified to encourage malicious command execution | | November 27, 2026 | Malspark published its investigation | | November 29, 2026 | Five 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. 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 Capability | Potential Security Impact | |---|---| | Browser credential theft | Exposure of saved passwords in Chrome, Edge, and Brave | | Cryptocurrency wallet targeting | Potential exposure involving Phantom and MetaMask | | Keylogging | Collection of sensitive keyboard input | | Clipboard monitoring | Exposure of copied credentials or other sensitive information | | Screen and webcam capture | Potential collection of private visual information | | Tor-based communication | Communication with remote malware infrastructure | | Cryptocurrency mining | Unauthorized use of computing resources for Monero mining | | Persistence mechanisms | Continued 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. 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 https://corgea.com/research/mir2k-timdedid-hugging-face-gguf-chat-template-malware-november-2026 , 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 | Artifact | SHA-256 | |---|---| | Recovered ollie executable d.exe | 90bbb476eadf0edb28f7042204cbf90065b1112f4152e4f335e85dd76788bf68 | | Bundled tor.exe 0.4.9.16 | da22856f95ee24f8ace4ad1ab04acbd818fd6c3042bc3cf8f1d7cc3fa3edcb2b | | Huihui GGUF original upload | a95f9e00a5062b2f55a7d089696833965643765f40b2eae3b962d5952492f221 | | Huihui GGUF first modified template | 9d88149b7777a1ca0210e8dc6b2e5a0d9bb7b5971d305025f5b2731cf8a39cf9 | | Huihui GGUF second modified template | c3d72696afe76e0dedf4adf10ef7ea09634d23416c9601b0462ce528fb4a89ab | | Inkling GGUF original upload | 5f605529d4dcf7fda106313a54f350a07015678457cd6021b1a8922a60e40b9c | | Inkling GGUF first modified template | c7170a39c92b3dca10bcb23b81014cfc4a1c1429be83b427ba6b23a4ecdf09a1 | | Inkling GGUF second modified template | fafd6dd22e1375e6613a3038c1a4a8c1b554544c1d423cfc570a81192865c841 | | Shared timdedid GGUF | 6037244a718f2afc2e9eabf6ab253f53fe7b9552792b3533956d63e43e4ac058 | | timdedid chat template | ba5158d7065e581de821c44ac29df0b815ec40b89c11008917a627cba072632b | Model Registry and Network Indicators | Indicator Type | Reported Value | |---|---| | Mir2k repositories | Mir2k/Huihui-Qwen3.5-9B-abliterated-GGUF Mir2k/Inkling-2-Mini-Uncensored-GGUF | | timdedid repositories | timdedid/qwen3.8-cyber-uncensored timdedid/qwen3-cyber-UNCENSORED timdedid/qwen3-cyber-UNCENSORED-2 | | Ollama mirror | timdedid/qwen3-1.7b-cyber:latest | | External script indicator | hxxps://technoarteng . com/wp-content/uploads/2023/11/value.ps1 | | Local Tor proxy | 127.0.0.1:9050 | Endpoint Artifacts and Embedded Strings | Artifact Type | Reported Indicator | |---|---| | Windows file paths | %TEMP%\d.exe %APPDATA%\ollie\rat.log %APPDATA%\ollie\plugins\ C:\Windows\Temp\payload.ps1 | | Filenames | ollie task.log ollie reenable.log ollie cam.bmp | | Malformed registry path | HKCU\SoftwareClassesms-settingsShellOpencommand | | Startup registry location | HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run | | Embedded paths | /.config/ollie/rat.conf /tmp/.rat.sock C:/Users/MoH/socks.txt | | Embedded identification strings | olliE-rx0-seed-2026-paris-intakelight "agent":"olliE/ rat plugin command | | Targeted Phantom extension ID | bfnaelmomeimhlpmgjnjophhpkkoljpa | | Targeted MetaMask extension ID | nkbihfbeogaeaoehlefnkodbefgpgknn | 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 https://github.com/Root0ne/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 Scenario | Recommended Response | |---|---| | Downloaded but did not load the model | Stop using the file and remove or quarantine it. | | Loaded the model without running its commands | Review the runtime and agent logs for unexpected activity. | | Executed a command generated by a Mir2k model | Isolate the Windows device and investigate possible malware compromise. | | Shell-enabled agent executed instructions from a timdedid model | Investigate 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 https://cyberupdates365.com/agents-md-attack-codex-claude-code/ 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 https://cyberupdates365.com/ai-cyber-threats-2026-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 - Malspark — Malicious GGUF Models on Hugging Face, November 27, 2026 https://malspark.com/blog/malicious-gguf-models-hugging-face/ - Corgea — Poisoned GGUF Models Hide a Windows RAT, November 30, 2026 https://corgea.com/research/mir2k-timdedid-hugging-face-gguf-chat-template-malware-november-2026 - GGUF Radar — Open-Source Model Scanner and Detection Rules https://github.com/Root0ne/gguf-radar - Cybersecurity News — Password-Stealing Malware in Hugging Face AI Models, December 1, 2026 https://cybersecuritynews.com/malware-in-hugging-face-ai-models/ 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.