A newly uncovered threat on Hugging Face has brought to light a sophisticated campaign leveraging AI models to distribute malware that steals passwords. Attackers uploaded tainted models carrying a Windows executable called ollie inside GGUF-formatted model files. Though the models functioned normally when loaded, they were engineered to embed malicious instructions that prompt users to run malware.
How the Malware Campaign Works
Researchers from security firm Malspark discovered the malicious repositories during a November 26 scan of over 3.2 million public Hugging Face model uploads. Two accounts—Mir2k and timdedid—were linked to five tainted repositories. The Mir2k uploads, using modified versions of the Huihui Qwen and Inkling models, contained the ollie executable appended after model weights. Although the model templates looked legitimate at first, they were later updated to include a PowerShell command at the start of the model’s response. If a user runs that command, it extracts and executes ollie.
For its part, the campaign under timdedid took aim at AI coding agents. Those repositories included hidden template instructions designed to coerce the agent—if it has shell access—into downloading and running a PowerShell script. The malware embedded in ollie targets saved passwords across browsers such as Chrome, Edge, and Brave, as well as wallet extensions like Phantom and MetaMask. It further includes keystroke logging, clipboard theft, screenshot capabilities, and even a mechanism to mine Monero when the system is idle.
Scale and Indicators of Compromise
By November 27, 2026, the repositories had been downloaded 2,428 times—up from 1,502 just a day earlier. That number reflects total downloads; it does not prove the malware was ever executed. Nonetheless, the persistence and nature of the attack indicate a deliberate campaign rather than isolated misconfiguration.
Investigators compiled numerous indicators of compromise (IoCs) to help users and defenders identify exposure. These include SHA-256 hashes for the malicious executable (d.exe), the bundled Tor executable, and versions of the GGUF models and templates. File paths tied to the malware include temporary folders, registry entries under startup-approved paths, and sample script filenames. Among network indicators are Tor SOCKS proxies and malicious domains involved in the script downloads. These details enable detection whether or not the malware has been executed.
Mitigation Steps and Safe Practices
Anyone who downloaded one of the flagged models is advised to halt use immediately and inspect their local model cache. For defenders, GGUF Radar is a helpful open-source tool capable of analyzing model files and templates without executing them. For teams integrating models into internal workflows, it’s safer to scan code prior to registry deployment and enforce approval steps before allowing models to initiate shell commands.
If a Windows machine might have been compromised, it’s critical to isolate it, change all saved browser passwords, revoke active sessions, and secure any cryptocurrency wallets involved. For coding agents exposed to the timdedid models, reviewing PowerShell and network logs tied to script downloads is advised. Detecting a cached tainted model confirms exposure; actual compromise requires execution of the malicious code.
This campaign, disabling of repositories on Hugging Face, and detection of a parallel Ollama mirror highlight the complexity of AI supply chain risks. The threat demonstrates how reliable AI tooling can be manipulated via model templates—turning seemingly benign files into vectors for password theft and remote control.
Analytical Takeaway: This incident underscores a growing danger in the AI ecosystem: the subtle blending of model content with malicious behavior. As organizations increasingly use AI models locally, often trusting that downloaded files are benign, attacks like this exploit inherent trust in model templates and formats like GGUF. Moving forward, model marketplaces and AI developers should prioritize template validation, provenance tracking, and cryptographically verified workflow pipelines. Users must assume that even popular models may conceal risks.