Threat reportSupply ChainTL-2026-4776
Hugging Face 'Load/Mine' Campaign: Malicious Qwen2 Model Repos Abuse trust_remote_code to Hijack GPUs for Pearl (PRL) Mining and Backdoor Xinference/GPUStack Hosts
At least 31 malicious Hugging Face repositories (plus a ModelScope mirror) abuse trust_remote_code and config.json auto_map so Python runs the moment a model loads, deploying the 'peakminer' cryptominer, reverse shells, SSH/cron persistence and a container-escape script against self-hosted Xinference and GPUStack GPU servers.
Key facts
| Identifiers | TL-2026-4776 |
|---|---|
| Also known as | Load/Mine, Hugging Face Qwen2 miner campaign, peakminer campaign |
| Severity | HIGH |
| First disclosed | |
| Affected products | Hugging Face Hugging Face Hub model repositories / transformers trust_remote_code loading; Xorbits Xinference; GPUStack GPUStack; Microsoft Windows (developer workstations targeted by fake Solana starter kit) |
| Weaknesses (CWE) | CWE-94, CWE-506, CWE-829 |
| Tools | CloudFlare Tunnel |
| MITRE ATT&CK / ATLAS techniques | AML.T0010.003 AI Supply Chain Compromise: Model, T1027.002 Software Packing, T1036.005 Match Legitimate Resource Name or Location, T1053.003 Cron, T1059.001 PowerShell, T1059.004 Unix Shell, T1059.006 Python, T1082 System Information Discovery, T1098.004 SSH Authorized Keys, T1195.001 Compromise Software Dependencies and Development Tools, T1204.002 Malicious File, T1219 Remote Access Tools and 6 more in the attack flow |
| Motivation | FINANCIAL |
| Target sectors | technology, research, cryptocurrency |
| Target regions | Global |
| Detection rules | 9 (1 shown free) |
| Sources | 7 cited sources |
Detection coverage
As of 2026-10-29, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-4776 across Splunk SPL, Microsoft KQL and Sigma, covering 28 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.
Free detection: Load/Mine - Malicious Hugging Face auto_map Module or Peakminer Payload Written to Disk
Detects creation of the Python modules referenced by the config.json auto_map of the Load/Mine malicious Qwen2 repositories (modeling_evil.py, modeling_evil2.py, modeling_parasit.py, configuration_parasit.py) and of the packed peakminer payloads and toolkit (syscore.bin, sysx.bin, sysd-kit.tgz). These files are written when a host calls from_pretrained() with trust_remote_code=True against a campaign repository such as MENXIANGYU/qwen2-tiny, so a hit means untrusted model code was fetched and is about to execute (or already has) on the GPU inference host.
- Languages: Splunk SPL, Microsoft KQL, Sigma
- ATT&CK: T1195.001, T1204.002, T1059.006
- Data sources: sysmon_for_linux, linux_file_events, microsoft_defender_for_endpoint_DeviceFileEvents
- Severity: high
- Confidence: high
Splunk SPL
index=linux sourcetype="Syslog:Linux-Sysmon/Operational" EventCode=11 earliest=-24h
| where match(TargetFilename, "(?i)/(modeling_evil2?|modeling_parasit|configuration_parasit)[.]py$") OR match(TargetFilename, "(?i)/(syscore|sysx)[.]bin$") OR match(TargetFilename, "(?i)/sysd-kit[.]tgz$")
| stats count min(_time) as first_seen max(_time) as last_seen values(TargetFilename) as dropped_files values(Image) as writer_process by host, User
| convert ctime(first_seen) ctime(last_seen)Microsoft KQL
DeviceFileEvents
| where Timestamp > ago(24h)
| where ActionType in ('FileCreated', 'FileModified', 'FileRenamed')
| where FileName in~ ('modeling_evil.py', 'modeling_evil2.py', 'modeling_parasit.py', 'configuration_parasit.py', 'syscore.bin', 'sysx.bin', 'sysd-kit.tgz')
or SHA256 in~ ('587e3c3be3c75eb6586d69b25adb4c4208c1cf7d39157946da543dd823117adc', '88f4b95a1c3d0a0d9638dc6e69f5bbc9ce0e1b92d069a0e404f60fa5397ee020', '414b3cf7a288eaa592b0f03d85c7a6960dbdb855fcb684478b9def9faa95c21d', 'b0e1ae6d73d656b203514f498b59cbcf29f067edf6fbd3803a3de7d21960848d', '6b1e531c9e799a6df1472acc143c6eaec6ea4dd22f997458ba519644d125197e', '9d62179c94faf0c8eb86704973c218c229e92c71c0ed60a5e85d4bcc69c13f40', '6a837d3042b9b8b6266c75b07e22ea8e7a7108083efa48ff0aedba7fa24fb57c')
| project Timestamp, DeviceName, ActionType, FolderPath, FileName, SHA256, InitiatingProcessFileName, InitiatingProcessCommandLine, InitiatingProcessAccountNameSigma
title: Load/Mine Malicious Hugging Face auto_map Module or Peakminer Payload Written to Disk
id: 7c1b0a52-3e4d-4f6a-9b8e-2a5d1c9f4e01
status: experimental
description: Detects creation of the auto_map Python modules and packed peakminer payloads dropped by the malicious Qwen2 Hugging Face repositories of the Load/Mine campaign (TL-2026-4776).
references:
- https://pluto.security/blog/hugging-face-malware-campaign-load-mine/
- https://www.bleepingcomputer.com/news/security/hugging-face-malware-campaign-returns-to-hijack-gpus-for-crypto-mining/
author: Threadlinqs Team
date: 2026/10/29
tags:
- attack.initial_access
- attack.t1195.001
- attack.execution
- attack.t1204.002
- attack.t1059.006
logsource:
product: linux
category: file_event
detection:
selection:
TargetFilename|endswith:
- '/modeling_evil.py'
- '/modeling_evil2.py'
- '/modeling_parasit.py'
- '/configuration_parasit.py'
- '/syscore.bin'
- '/sysx.bin'
- '/sysd-kit.tgz'
condition: selection
falsepositives:
- Security researchers or sandboxes that deliberately download the campaign repositories for analysis
- Unrelated software that happens to ship a file named sysx.bin or syscore.bin
level: highKnown false positives:
- Security researchers or sandboxes that deliberately download the campaign repositories for analysis
- Unrelated software shipping a binary file that is also named sysx.bin or syscore.bin
Tuning notes: Scope to GPU inference hosts (Xinference, GPUStack, notebook servers) first. Exclude the known analysis-sandbox hosts via a host lookup. Extend the filename list as Pluto Security publishes new auto_map module names. Pair with an inventory check for trust_remote_code=True in your model-loading code.
- Load/Mine - Peakminer Execution: Pool Login Arguments, /tmp/.cch Binaries, memfd Execution and kworker Masquerade · unlock with TL Creds
- Load/Mine - Container Escape via LVM Activation and Host Disk Mount from Python (qa-whl-1021) · unlock with TL Creds
- Load/Mine - Reverse Shell, gsocket and Cloudflare Tunnel Backdoors with GPU Host Reconnaissance · unlock with TL Creds
- Load/Mine - Attacker SSH Key (qx-5090-op) Added to authorized_keys · unlock with TL Creds
- Load/Mine - Process Command Line Referencing Malicious Hugging Face Campaign Repositories · unlock with TL Creds
- Fake Solana Starter Kit - PowerShell One-Liner from [indicator] and NetSupport Manager RAT · unlock with TL Creds
- Load/Mine - Cron, Watchdog and Shell-Profile Persistence ([indicator], [indicator]) · unlock with TL Creds
- Load/Mine - Outbound Connections to Campaign C2, Exfil Collector and Pearl/Monero Mining Pools · unlock with TL Creds
Indicators of compromise
As of 2026-10-29, Threadlinqs Intelligence tracks 28 indicators of compromise for TL-2026-4776.
Sample indicators (3 of 28)
- IP address:
212.32.253[.]3 - Domain:
hz2006[.]aihzcc[.]top - File hash:
587e3c3be3c75eb6586d69b25adb4c4208c1cf7d39157946da543dd823117adc
Defanged, TLP:CLEAR. Full set of 28 indicators: unlock with TL Creds.
Technical analysis
A related fake Solana starter kit on GitHub delivers a NetSupport Manager RAT to Windows developers. Attributed to a financially motivated, Chinese-speaking operator.
Pluto Security's 'Load/Mine' report (published 2026-10-29) and BleepingComputer coverage describe a two-wave campaign distributed through fake small Qwen2 models on Hugging Face. Calling from_pretrained() with trust_remote_code=True imports a Python module named in the repository's config.json auto_map (for example modeling_evil.py, modeling_evil2.py, modeling_parasit.py), and its top-level code executes before the model class is even returned. The repositories carry a 42-byte decoy model.safetensors; the real payload is a packed binary (syscore.bin / sysx.bin) that is the 'peakminer' miner.
Wave one began on 2026-09-21 with a pure SSH-backdoor repository (qwen2-shell) and by 2026-09-22 had evolved into a fileless miner that runs from memory via memfd_create/fexecve, installed under /root/.xinference/cache and using C2 at 8.137.187.63 (Alibaba Cloud). Wave two, which reappeared within days of the first takedown, comprised 19 repositories across five accounts (MENXIANGYU alone had 13). The flagship MENXIANGYU/qwen2-tiny rose from 7,354 downloads on 2026-10-20 to 18,012 on 2026-10-25 and 28,412 by 2026-10-28; a copycat htt0118/qwen2-tiny was still live at publication. The report counts 29,818 campaign downloads (32,376 including 13 linked repositories).
The wave-two payload writes a watchdog (/tmp/.cch/svc.py) that relaunches the miner every 120 seconds and removes competing miners, appends launch hooks to /root/.bashrc, /root/.profile and user .bashrc files, installs cron persistence (/etc/cron.d/.sync-helper) and adds an ed25519 SSH key to authorized_keys in several locations including the xinference user's home. The miner process masquerades as the kernel thread [kworker/u20:1]; the packed binary's UPX markers were altered from 'UPX!' to 'PEK!' to hinder unpacking. A separate process connects a reverse shell to 212.32.253.3 on 443 or 9443 and retries after every disconnect; other components use a gsocket backdoor (212.132.98.170), a Cloudflare tunnel beacon, a gated stage served from 212.32.253.3:8898 (lf_py.py), and GPU/host metadata collection to 2.28.9.199:7000. Status reports to the operator are encoded as Xinference model-registry entries (qwen2-tiny-<base32>). A privileged container-escape script (qa-whl-1021) activates LVM volumes from inside a container, mounts candidate host disks and locates the host root or GPUStack's /var/lib/gpustack to gain root on the underlying host.
Payouts go to Pearl (PRL) wallets via Kryptex, LuckyPool and HeroMiners pools (Monero pools such as HashVault, MoneroOcean and c3pool also appear); the first-wave Pearl wallet had received about 2,276 PRL (~$5,000) across 716 transactions and mining continued after takedown. A shared pool login (krxXJ2PKQW.worker) appears across six analyzed wave-two builds. Nine machines of a research GPU cluster were observed mining simultaneously before jobs stopped about six minutes later, attributed to admin intervention. JFrog and Protect AI scanning did not flag the wave-two flagship, and JFrog noted it was 'not a machine-learning model'.
A related but distinct activity cluster: the GitHub repository SolanaUpdateTools/solana-starter-kit (created November 2025, 286 stars) tells developers to paste a PowerShell one-liner from the README that assembles a URL on developer-update.app and executes a script in memory, installing a NetSupport Manager RAT with C2 at maxwintodaybtc.com, persisting at login and showing a fake 'developer functionality temporarily paused' error. Air Security reported the kit; eSentire links the NetSupport operator to earlier fake TradingView 'AI signal' campaigns. The source does not state that the Solana kit and the Hugging Face miner share an operator.
Attribution is to a financially motivated, Chinese-speaking operator based on Simplified Chinese code comments, C2 on Alibaba Cloud and late-night China-timezone activity; no named actor or nation-state is asserted. No CVE is assigned: the abuse is of an intended-but-dangerous feature (trust_remote_code). Hosts that loaded these models should be treated as fully compromised because SSH-key and reverse-shell backdoors persist after miner removal. Severity HIGH is analyst-assigned. BeaconBeagle lookups for the C2 IPs returned no data (HTTP 404), so no C2 correlation is recorded.
MITRE ATT&CK / ATLAS techniques by tactic:
initial-access
AML.T0010.003 AI Supply Chain Compromise: Model
Defense Evasion
T1027.002 Software Packing; T1036.005 Match Legitimate Resource Name or Location; T1620 Reflective Code Loading
Persistence
T1053.003 Cron; T1098.004 SSH Authorized Keys; T1546.004 Unix Shell Configuration Modification
Execution
T1059.001 PowerShell; T1059.004 Unix Shell; T1059.006 Python; T1204.002 Malicious File
Discovery
T1082 System Information Discovery
Initial Access
T1195.001 Compromise Software Dependencies and Development Tools
Command and Control
T1219 Remote Access Tools; T1572 Protocol Tunneling
Impact
Resource Development
Privilege Escalation
Remediation
Immediate actions
- Treat any host that loaded MENXIANGYU, wjsbg, soumikmahato, r1r13, hhzz667, dsxk4mr8tq, wssb123e, MONIADF-2, htt0118 or related qwen2-* repositories as fully compromised and rebuild it
- Hunt for /tmp/.cch/, /tmp/.cch/svc.py, /etc/cron.d/.sync-helper and svc.py references in /root/.bashrc, /root/.profile and user .bashrc
- Audit authorized_keys (root, xinference user, all users) for the ssh-ed25519 key commented qx-5090-op
- Block egress to 212.32.253.3, 8.137.187.63, 2.28.9.199, 38.55.133.49 and 212.132.98.170 and to the listed Pearl/Monero mining pool endpoints
- Grep process arguments for the pool login krxXJ2PKQW and look for a process named [kworker/u20:1] that is not a real kernel thread
- Rotate all credentials, API keys and tokens present on affected hosts
Workarounds
- Set trust_remote_code=False (the default) and prefer safetensors weights without custom Python modules
- Remove or quarantine downloaded model snapshots that contain auto_map entries pointing to .py files from untrusted repositories
- For the Solana kit, do not run PowerShell one-liners from README files; remove SolanaUpdateTools/solana-starter-kit clones and hunt for NetSupport Manager (client32.exe) installs and persistence
Longer-term hardening
- Require authentication on the Xinference API and limit its network reachability
- Review custom model code and pin the reviewed revision before loading any model with trust_remote_code
- Run untrusted model code with limited privileges, restricted network access and no production secrets
- Do not run model-serving containers privileged or with host disks/volumes mounted; isolate GPU inference hosts from production networks
- Mirror and allowlist approved models internally rather than pulling arbitrary repositories from Hugging Face or hf-mirror.com
- Monitor GPU utilization and outbound connections to mining pools on inference hosts
Affected and fixed versions
- Hugging Face — Hugging Face Hub model repositories / transformers trust_remote_code loading
Vulnerable versions: Any deployment loading untrusted repositories with trust_remote_code=True - Xorbits — Xinference
Vulnerable versions: Self-hosted servers that load malicious models; unauthenticated API exposure increases risk - GPUStack — GPUStack
Vulnerable versions: Self-hosted servers that load malicious models; container-to-host escape targeted /var/lib/gpustack - Microsoft — Windows (developer workstations targeted by fake Solana starter kit)
Vulnerable versions: Windows hosts running the README PowerShell one-liner
Timeline
- GitHub repository SolanaUpdateTools/solana-starter-kit created (November 2025; exact day not reported); it later accumulates 286 stars and delivers a NetSupport Manager RAT via a README PowerShell one-liner.
- First wave begins with a pure SSH-backdoor repository (qwen2-shell) on Hugging Face.
- Wave-one payload evolves into a fileless peakminer cryptominer running via memfd_create, with C2 at locked-ioc-21 (Alibaba Cloud).
- Six malicious repositories created within 2.5 hours, per Security Boulevard's summary of the Pluto report.
- Wave-two flagship MENXIANGYU/qwen2-tiny stands at 7,354 downloads; downloads climb rapidly within hours.
- MENXIANGYU/qwen2-tiny reaches 18,012 downloads; copycat htt0118/qwen2-tiny is uploaded.
- MENXIANGYU/qwen2-tiny reaches 28,412 downloads; second-wave repositories remain live despite reporting.
- Pluto Security publishes the 'Load/Mine' report and IOC guides; BleepingComputer reports the campaign, noting htt0118/qwen2-tiny and the Solana kit still live.
Sources cited
- Pluto Security: Hugging Face malware campaign 'Load/Mine' (primary report) pluto.security · Research · 2026-10-29
- Pluto Security Publishes a Full IOC Field Guide for the Hugging Face Qwen2 Miner Campaign finanzwire.com · Research · 2026-10-29
- Pluto Security Maps the Mining Engine and Backdoor Arsenal Behind the Hugging Face Campaign finanzwire.com · Research · 2026-10-29
- Hugging Face malware campaign returns to hijack GPUs for crypto mining (BleepingComputer, Ax Sharma) BleepingComputer · News · 2026-10-29
- Pluto Security Traces a File Named 'modeling_evil.py' to a Full Hugging Face Mining Campaign (Security Boulevard) securityboulevard.com · News · 2026-10-29
- Pluto Security Details Load/Mine Cryptomining Campaign on Hugging Face (Unite.AI) unite.ai · News · 2026-10-29
- Pluto Security details how a trust_remote_code download turns into malware (The Next Web) thenextweb.com · News · 2026-10-29
Previous and next in supply chain
Further reading
Drafted by the Threadlinqs research pipeline from 7 sources; published ; last updated —.