Hackers Hide Password-Stealing Malware in Hugging Face AI Models, Then Trick Users Into Running It

Blog WriterCybersecurity News - Original News Source is cybersecuritynews.com


Hackers hid a Windows password stealer inside two AI models uploaded to Hugging Face, then changed the files so the models would tell users to run the malware.

The downloads could still answer questions normally. What gave them away was an unexpected PowerShell command at the start of a reply. Downloading or loading one of the models did not, by itself, launch the hidden program.

Five malicious model repositories across two campaigns recorded 2,428 downloads by November 27, 2026, up from 1,502 the previous day.

Those figures count downloads, not people or confirmed infections. Earlier cases involving malicious Hugging Face models relied on unsafe Python Pickle files, but this campaign used GGUF, a format widely used to run AI models locally.

Researchers from Malspark identified the malware during a November 26 scan of 3,273,389 public Hugging Face model repositories. They recovered the same Windows executable, named ollie, from two models uploaded by the account Mir2k.

The other three repositories belonged to timdedid and targeted AI coding agents. Corgea later reported that Hugging Face had disabled all five repositories by November 29, though a matching Ollama mirror remained available when it checked on November 30.

Password-Stealing Malware in Hugging Face AI Models

Mir2k uploaded a modified Huihui Qwen model on November 22 and an Inkling model on November 24. Both already carried ollie after the model weights, the numerical data the software uses to generate answers.

The runtimes examined in the research ignored the extra bytes, so the models loaded normally. Both uploads initially kept their original chat templates, the instructions that format a conversation before the model sees it.

On November 26, Mir2k replaced both templates, directing the models to open replies with a PowerShell command and then answer the user as usual. If a user ran the command, it extracted and launched the hidden executable.

The armed Inkling template (Source - Malspark)
The armed Inkling template (Source – Malspark)

An ordinary-looking answer could therefore follow a dangerous instruction, making the command seem like part of the tool’s normal output rather than something the uploader had planted.

Malspark’s analysis found that ollie targeted saved passwords in Chrome, Edge, and Brave, along with the Phantom and MetaMask wallet extensions. It also supported keystroke logging, clipboard capture, and screenshots.

Like other malware that goes after saved browser login details, ollie targeted several browsers, but the recovered sample did not decrypt Chrome’s newer v20 App-Bound entries. It used a bundled copy of Tor to communicate with its operator and could mine Monero while the computer was idle.

How to Check Local Models and Investigate Exposure

The timdedid campaign targeted a different decision-maker: the coding agent itself. Its three Hugging Face uploads shared a template that inserted a hidden instruction telling an agent with shell access to download and run a PowerShell script.

Recent reporting on hijacked AI coding agents described a similar trust problem in GitHub repositories, but here the instruction came from the model file. Malspark did not recover the script, so its purpose remains unknown.

Users who downloaded a flagged model should stop using it and check their local model caches. The open-source GGUF Radar scanning tool can inspect model files and their templates without running either.

The timdedid template in Hugging Face’s metadata viewer (Source – Malspark)

For teams, the safer place to scan is before a model reaches an internal registry or developer laptop. Coding agents should use a reviewed chat template and require approval before running shell commands.

A model that loads normally is not proof that its file or template is clean. If someone ran a command printed by a Mir2k model, isolate the Windows machine and investigate it as a compromise.

From a clean device, change saved browser passwords, revoke active sessions, and secure any affected wallets. If a shell-enabled agent used a timdedid model, check PowerShell and network logs for the script and domain below. A cached model confirms exposure to the file; it does not prove that malware ran.

Indicators of compromise (IoCs):-

Type Artifact or context Indicator
SHA-256 Recovered ollie executable (d.exe) 90bbb476eadf0edb28f7042204cbf90065b1112f4152e4f335e85dd76788bf68
SHA-256 Bundled tor.exe 0.4.9.16 da22856f95ee24f8ace4ad1ab04acbd818fd6c3042bc3cf8f1d7cc3fa3edcb2b
SHA-256 Huihui GGUF, original upload a95f9e00a5062b2f55a7d089696833965643765f40b2eae3b962d5952492f221
SHA-256 Huihui GGUF, first modified template 9d88149b7777a1ca0210e8dc6b2e5a0d9bb7b5971d305025f5b2731cf8a39cf9
SHA-256 Huihui GGUF, second modified template c3d72696afe76e0dedf4adf10ef7ea09634d23416c9601b0462ce528fb4a89ab
SHA-256 Inkling GGUF, original upload 5f605529d4dcf7fda106313a54f350a07015678457cd6021b1a8922a60e40b9c
SHA-256 Inkling GGUF, first modified template c7170a39c92b3dca10bcb23b81014cfc4a1c1429be83b427ba6b23a4ecdf09a1
SHA-256 Inkling GGUF, second modified template fafd6dd22e1375e6613a3038c1a4a8c1b554544c1d423cfc570a81192865c841
SHA-256 Shared timdedid GGUF 6037244a718f2afc2e9eabf6ab253f53fe7b9552792b3533956d63e43e4ac058
SHA-256 timdedid chat template ba5158d7065e581de821c44ac29df0b815ec40b89c11008917a627cba072632b
Hugging Face Mir2k repositories Mir2k/Huihui-Qwen3.5-9B-abliterated-GGUF
Mir2k/Inkling-2-Mini-Uncensored-GGUF
Hugging Face timdedid repositories timdedid/qwen3.8-cyber-uncensored
timdedid/qwen3-cyber-UNCENSORED
timdedid/qwen3-cyber-UNCENSORED-2
Ollama timdedid mirror timdedid/qwen3-1.7b-cyber:latest
Network timdedid script download hxxps://technoarteng[.]com/wp-content/uploads/2023/11/value.ps1
Local network Tor SOCKS proxy used by ollie 127.0.0.1:9050
Windows paths Dropped files and malware folder %TEMP%d.exe
%APPDATA%ollierat.log
%APPDATA%ollieplugins
C:WindowsTemppayload.ps1
Filenames ollie artifacts ollie_task.log
ollie_reenable.log
ollie_cam.bmp
Registry Malformed path and startup location HKCUSoftwareClassesms-settingsShellOpencommand
HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerStartupApprovedRun
Embedded paths Strings found in the executable /.config/ollie/rat.conf
/tmp/.rat.sock
C:/Users/MoH/socks.txt
Embedded strings Miner seed, agent marker, and plugin string olliE-rx0-seed-2026-paris-intakelight
"agent":"olliE/
rat_plugin_command
Extension IDs Legitimate wallet extensions targeted by ollie Phantom: bfnaelmomeimhlpmgjnjophhpkkoljpa
MetaMask: nkbihfbeogaeaoehlefnkodbefgpgknn

Note: IP addresses and domains are intentionally Qdefanged (e.g., [.]) to prevent accidental resolution or hyperlinking. Re-fang only within controlled threat intelligence platforms such as MISP, VirusTotal, or your SIEM.

Join ANY.RUN and Torq to learn how TI Feeds can help your SOC detect up to 30% of malicious IOCs earlier & accelerate investigations -> Attend Free Live Webinar

The post Hackers Hide Password-Stealing Malware in Hugging Face AI Models, Then Trick Users Into Running It appeared first on Cyber Security News.