MOSIR
No. 21 · Free Published by MOSIR

No. 21 · Nov 11, 2026 · Security & Privacy Watch

Load/Mine malware in Hugging Face models targets self-hosted Xinference and GPUStack

Pluto Security found 31 Hugging Face repositories that run a hidden miner and reverse shell when loaded with trust_remote_code, aimed at self-hosted inference servers. A second wave stayed up eight days after reporting.

By the Local Intelligence Wire desk · Wimberley, Texas ·

Pluto Security reported on Oct. 29 that 31 model repositories across seven Hugging Face accounts carried Python code that runs the moment a model is loaded with trust_remote_code set to true, before any weights load. The code installs startup hooks and a watchdog, opens reverse shells, runs a cryptocurrency miner in memory disguised as a kernel process, and kills rival miners. It targets self-hosted inference servers, mainly Xinference and GPUStack, as well as rented GPU machines and notebooks. BleepingComputer has since reported the campaign's return; Adversa AI's Nov. 11 roundup lists it among the month's main incidents.

Hugging Face and ModelScope removed the first 12 repositories after reporting, but a second wave of 19 appeared within days and was still live eight days after it was reported. Hugging Face's malware scanning did not flag the first-wave files. The repositories recorded about 32,000 downloads, a count of downloads rather than confirmed infections. Pluto says removing the miner or the model does not remove the backdoors.

Why it mattersPrivate AI nodes download models from public hubs. One flag in a loader is enough to turn a client's GPU server into someone else's miner with a shell on the office network.

For consultantsConsultants should search client nodes and scripts for trust_remote_code=True, pin reviewed model revisions, and keep model servers off the internet with outbound access limited to named mirrors.

Sources

Read the full Nov 11, 2026 edition