Threat Advisory

Mir2k Hides Windows RAT in GGUF LLM Models

Threat: Malware
Threat Actor Name: Mir2k
Threat Actor Type: Hugging Face account
Targeted Region: Global
Threat Actor Region: France
Targeted Sector: Technology & IT
Criticality: High
[subscribe_to_unlock_form]

EXECUTIVE SUMMARY:

Two distinct campaigns recently distributed malicious large language model files through a major public repository platform. The primary operation, identified as Mir2k, uploaded uncensored model files containing a hidden Windows remote access trojan, while a secondary actor, timdedid, published models designed to hijack coding agents. A comprehensive scan of over three million public repositories identified five malicious files with thousands of downloads. The risk is significant because these files appear legitimate and integrate directly into local inference runtimes, allowing attackers to bypass traditional perimeter defenses and target users who trust community-shared model weights.

The Mir2k campaign appends a compressed executable after the final tensor in the model file, a region that standard loaders ignore. The chat template is initially clean but is later modified to insert a hidden system message. This message instructs the model to prefix every response with a specific command line. When a user copies and executes this line, it locates the model file, extracts the appended bytes, decompresses them in memory, and launches the implant. The resulting program embeds a Tor client to establish encrypted communications, steals browser credentials and cryptocurrency wallet data, and mines cryptocurrency when the system is idle. It also establishes persistence through scheduled tasks and watchdog processes, while attempting to evade detection by marking itself as a critical system process.[/subscribe_to_unlock_form]

EXECUTIVE SUMMARY:

Two distinct campaigns recently distributed malicious large language model files through a major public repository platform. The primary operation, identified as Mir2k, uploaded uncensored model files containing a hidden Windows remote access trojan, while a secondary actor, timdedid, published models designed to hijack coding agents. A comprehensive scan of over three million public repositories identified five malicious files with thousands of downloads. The risk is significant because these files appear legitimate and integrate directly into local inference runtimes, allowing attackers to bypass traditional perimeter defenses and target users who trust community-shared model weights.

The Mir2k campaign appends a compressed executable after the final tensor in the model file, a region that standard loaders ignore. The chat template is initially clean but is later modified to insert a hidden system message. This message instructs the model to prefix every response with a specific command line. When a user copies and executes this line, it locates the model file, extracts the appended bytes, decompresses them in memory, and launches the implant. The resulting program embeds a Tor client to establish encrypted communications, steals browser credentials and cryptocurrency wallet data, and mines cryptocurrency when the system is idle. It also establishes persistence through scheduled tasks and watchdog processes, while attempting to evade detection by marking itself as a critical system process.[emaillocker id="1283"]

The Mir2k actor demonstrated active development by uploading the payload first and arming the template days later, ensuring the malicious code remained dormant until activation. The campaign targeted users with French language indicators, suggesting a specific regional or linguistic focus. The timdedid campaign used a different method, inserting a trigger phrase that forces an agent to download and execute a remote script, though the second-stage payload was not recovered. Defensive measures should include treating model-generated commands as untrusted input and scanning model files for structural anomalies before deployment. Model hubs should also implement stricter validation to reject files with unexpected data appended after the model weights.

THREAT PROFILE:

Tactic Technique Id Technique Sub-technique
Initial Access T1195.002 Supply Chain Compromise Compromise Software Supply Chain
Execution T1059.001 Command and Scripting Interpreter PowerShell
Persistence T1053.005 Scheduled Task/Job Scheduled Task
Persistence T1547.001 Boot or Logon Autostart Execution Registry Run Keys
Privilege Escalation T1078 Valid Accounts -
Defense Evasion T1027.002 Obfuscated Files or Information Software Packing
Defense Evasion T1055.001 Process Injection Dynamic-link Library Injection
Credential Access T1003.001 OS Credential Dumping LSASS Memory
Collection T1056.001 Input Capture Keylogging
Collection T1113 Screen Capture -
Collection T1125 Video Capture -
Command and Control T1090.003 Proxy Multi-hop Proxy

MBC MAPPING:

Objective Behavior ID Behavior
Anti-Behavioral Analysis B0007 Sandbox Detection
Impact B0022 Remote Access
Persistence F0012 Registry Run Keys / Startup Folder
Defense Evasion E1112 Modify Registry
Collection F0002 Keylogging
Collection E1113 Screen Capture
Collection B0028 Cryptocurrency
Communication Micro-objective C0002 HTTP Communication
File System Micro-objective C0052 Writes File
Process Micro-objective C0017 Create Process
Data Micro-objective C0025 Decompress Data
Cryptography Micro-objective C0027 Encrypt Data

REFERENCES:

The following reports contain further technical details:

[/emaillocker]
crossmenu