A report published on the Malspark security blog describes a campaign that exploited the GGUF format, widely used to distribute quantized language models, to conceal malicious code. According to the authors, several files uploaded to Hugging Face were manipulated to execute unwanted instructions when the model was loaded, reportedly affecting around 2,400 users before the issue was identified.
GGUF, designed to efficiently store model weights and enable local inference through tools such as llama.cpp, is not natively built to run arbitrary code. The investigation suggests attackers likely exploited metadata or accompanying scripts bundled with model repositories, rather than a flaw in the format itself, to trigger malicious behavior during loading or inference.
The incident revives concerns about supply-chain security within the open-source model ecosystem. Hugging Face hosts hundreds of thousands of models, frequently downloaded and run locally with limited verification, echoing well-known risks already seen in traditional software package managers, where compromised libraries have periodically circulated before being caught.
The report calls for stronger verification mechanisms for model repositories, whether through automated scanning, cryptographic signing, or more rigorous community auditing. Without official confirmation from Hugging Face at this stage, the full scope of the incident and the exact nature of the payload remain unclear, but the case highlights a growing risk as model sharing becomes more embedded in production workflows.