Cybersecurity researchers have uncovered a sophisticated scheme where hackers embedded a Windows password-stealing malware within artificial intelligence models on the Hugging Face platform. The attackers altered these models, prompting unsuspecting users to execute the hidden malicious software.
Malware Concealed in AI Models
While the AI models continued to function normally by answering user queries, they contained a concealed PowerShell command at the beginning of responses. This stealthy modification was the only giveaway to the hidden threat. By the end of November 2026, the compromised models had been downloaded 2,428 times, a significant increase from the previous day’s 1,502 downloads.
It’s crucial to note that these figures represent downloads, not the number of affected users or confirmed malware infections. Unlike previous incidents that utilized unsafe Python Pickle files, this campaign employed the GGUF format, which is commonly used for running AI models locally.
Identification and Impact of the Malware
The cybersecurity firm Malspark identified the malware during a comprehensive scan of over 3 million public Hugging Face model repositories. They discovered the same executable, named ‘ollie,’ within models uploaded by an account named Mir2k. Three additional repositories, linked to another account timdedid, targeted AI coding agents.
By November 29, Hugging Face had disabled all five malicious repositories. However, a corresponding mirror remained available, as reported by Corgea on November 30. This malware specifically targeted saved passwords in popular browsers like Chrome, Edge, and Brave, alongside Phantom and MetaMask wallet extensions. It also featured capabilities like keystroke logging, clipboard capture, and cryptomining using a bundled Tor network connection.
Measures and Recommendations for Users
The attack also targeted AI coding agents, inserting hidden instructions to download and execute malicious scripts. Users who have downloaded any flagged models are advised to cease using them immediately and inspect their local model caches.
Teams should conduct scans before introducing models into internal systems. The GGUF Radar scanning tool offers a way to inspect model files and templates without executing them. For those who ran commands from a compromised model, isolating the affected machine and investigating potential compromises are critical steps.
Additionally, users should change saved passwords, revoke active sessions, and secure any affected cryptocurrency wallets. Monitoring PowerShell and network logs can help identify any unauthorized scripts or domains involved in the attack.
In conclusion, this incident highlights the importance of vigilance when using AI models and the need for robust cybersecurity measures to prevent similar threats. Developers and users alike should prioritize security checks and maintain updated defenses to safeguard against evolving cyber threats.
