Hackers hid password-stealing malware inside Hugging Face AI models, tricking users into running it
Hackers Hide Password-Stealing Malware in Hugging Face AI Models, Then Trick Users Into Running It
Attackers implanted the Windows password-stealing trojan ollie after the weights of two Hugging Face models and tampered with the chat template so that the model outputs a PowerShell command at the start of its reply, tricking users into running it to drop the malicious program; merely downloading or loading the model itself does not trigger it. Malspark researchers found, while scanning 3,273,389 public model repositories on November 26, that the five malicious repositories from the two attack waves had been downloaded 2,428 times as of November 27 (counted by downloads, not confirmed infections). ollie steals passwords saved in Chrome, Edge and Brave and the Phantom and MetaMask wallet extensions, supports keylogging, communicates via bundled Tor and can mine Monero when idle. The three repositories of the timdedid account instead used template-hidden instructions targeting coding agents with shell access, inducing them to download and run a PowerShell script whose purpose is unknown.