Five AI models shared on Hugging Face, the most widely used public site for downloading AI models, were rigged to infect the computers of people who ran them, security firm Malspark says. Its scan of more than 3.2 million public model repositories on 26 November found the five files, which had been downloaded 2,428 times by 27 November. Fewer people may be affected, as downloads are not unique users.
The models were in GGUF, a popular format for running AI on your own computer with tools such as llama.cpp and Ollama. Malspark says the attackers hid instructions in each model’s chat template, the built-in text that shapes how a model replies. Some models were set to tell users to run a command; others targeted AI agents that can use a computer’s command line. Two also carried hidden Windows malware that, according to Malspark, steals saved browser passwords and crypto wallet data, records keystrokes and mines cryptocurrency.
a downloaded AI model can carry malware like any other file. Malspark advises treating any command a model suggests as untrusted, using a reviewed chat template rather than the one bundled with a model, and scanning model files before use. It said the five were still online on 27 November.



