Skip to main content
MalwarePublished

GGUF LLM Models with Hidden Malware on Hugging Face Reached 2400+ Victims

Source AlienVault OTX General

0

Description

Malicious GGUF model files containing hidden malware were discovered in Hugging Face repositories, downloaded over 2,400 times. These attacks use chat template poisoning by injecting malicious instructions into Jinja2 templates and appending executables after model tensors. The Mir2k campaign deployed Windows remote access trojans named ollie with capabilities including Tor integration, credential theft, cryptocurrency mining, anti-VM detection, and persistence. The timdedid campaign targeted security users with models designed to hijack coding agents via hidden system directives. Detection requires specialized tools as traditional antivirus and pickle scanners fail to detect these threats.

Indicators of compromise

Hashes 14

  • fafd6dd22e1375e6613a3038c1a4a8c1b554544c1d423cfc570a81192865c841
  • da22856f95ee24f8ace4ad1ab04acbd818fd6c3042bc3cf8f1d7cc3fa3edcb2b
  • c7170a39c92b3dca10bcb23b81014cfc4a1c1429be83b427ba6b23a4ecdf09a1
  • c3d72696afe76e0dedf4adf10ef7ea09634d23416c9601b0462ce528fb4a89ab
  • ba5158d7065e581de821c44ac29df0b815ec40b89c11008917a627cba072632b
  • a95f9e00a5062b2f55a7d089696833965643765f40b2eae3b962d5952492f221
  • 9d88149b7777a1ca0210e8dc6b2e5a0d9bb7b5971d305025f5b2731cf8a39cf9
  • 90bbb476eadf0edb28f7042204cbf90065b1112f4152e4f335e85dd76788bf68
  • 6037244a718f2afc2e9eabf6ab253f53fe7b9552792b3533956d63e43e4ac058
  • 5f605529d4dcf7fda106313a54f350a07015678457cd6021b1a8922a60e40b9c

Yara 4

  • 24e283c96e44c2eab071ee94c7db8716f2887cb8Detects covert code-poisoning directives or classic Python Jinja2 SSTI RCE gadgets inside GGUF or tokenizer_config.json
  • 2efbda5f5e9c328ff809c908438fbc50a555f6fbDetects GGUF files containing the timdedid agentic chat_template PowerShell Stage-2 downloader
  • 8e3249f5cf6193329e2eef9dead0d7233665e56dDetects GGUF files embedding a self-extracting PowerShell chat_template reading trailing overlay bytes
  • 3ec8dab64356d7a842f34e52fe0fee76b4a6bf49Detects the Mir2k / ollie Windows x64 RAT, RandomX miner, and bundled Tor implant carved from weaponized GGUF EOF overlays

Community reviews

Loading reviews…