VYPR
malwarePublished Dec 1, 2026· 1 source

Malware Hidden in Hugging Face AI Models Tricks Users into Stealing Passwords

Hackers are embedding password-stealing malware within AI models hosted on Hugging Face, disguised as legitimate tools and tricking users into executing malicious PowerShell commands.

Cybercriminals have escalated their tactics by embedding sophisticated password-stealing malware, dubbed 'ollie', within AI models hosted on the popular Hugging Face platform. These compromised models are designed to appear as legitimate tools, but upon interaction, they prompt users to execute a PowerShell command that secretly launches the malware. This campaign represents a significant evolution in how threat actors leverage the burgeoning AI ecosystem for malicious purposes.

The 'ollie' malware is capable of a wide range of destructive actions, including targeting saved browser passwords across multiple browsers, compromising cryptocurrency wallets, and performing intrusive activities like keystroke logging and screen captures. This broad functionality makes it a potent tool for attackers seeking to steal sensitive personal and financial information.

This new wave of attacks bypasses previous vulnerabilities that exploited unsafe Python Pickle files. Instead, the attackers are utilizing the GGUF format, a widely adopted standard for running AI models locally. This shift to a more secure and prevalent format makes detection and mitigation more challenging for security researchers and platform administrators.

Researchers from Malspark identified the malicious activity by scanning public Hugging Face repositories. They discovered the 'ollie' executable hidden within two models uploaded by the account Mir2k, and subsequently found similar malicious activity targeting AI coding agents in three other repositories belonging to the account timdedid. In total, five malicious repositories across two distinct campaigns were identified, accumulating thousands of downloads by late November 2026.

Hugging Face has since taken action, disabling the identified malicious repositories. However, the persistence of the threat is highlighted by the existence of a matching Ollama mirror, indicating that the malware may still be accessible through alternative channels. The campaign's success is partly due to the deceptive nature of the execution: loading a model does not automatically trigger the malware; instead, a seemingly innocuous PowerShell command is presented as part of the model's output, tricking users into running it manually.

The timdedid campaign specifically targeted AI coding agents, instructing them to download and execute a PowerShell script if they possessed shell access. While the exact payload of this script remains unknown due to its absence in the recovered samples, the intent to compromise coding agents suggests a focus on stealing intellectual property or injecting further malicious code into development pipelines.

Security experts advise users who may have downloaded flagged models to cease using them immediately and to inspect their local model caches. Tools like the open-source GGU Radar can help scan model files and their templates without executing them. For teams, implementing rigorous scanning before models reach internal systems and requiring explicit approval for shell commands are crucial preventative measures. If a user executed a command from a compromised model, isolating the affected Windows machine and investigating for signs of compromise is paramount, including changing passwords and securing digital wallets.

Synthesized by Vypr AI