A security analysis has revealed that GGUF files, commonly used for local LLMs, can contain hidden malware. Researchers from Malspark discovered that malicious code can be embedded within the chat template or appended after the tensor data in these files. These attacks, which do not affect the model's weights or performance, were found in several models on Hugging Face, with some downloaded thousands of times. A Python script has been developed to scan GGUF files for these vulnerabilities before they are loaded by local LLM applications like Ollama or llama.cpp. AI
IMPACT Local LLM users must now scan GGUF files for embedded malware to prevent potential system compromise.
RANK_REASON Security vulnerability discovered in a common file format for local LLMs.
- GGUF
- Hugging Face
- llama.cpp
- LM Studio
- Malspark
- Microsoft Windows
- Ollama
- Python
- Qwen3 1.7B
- safetensors
AI-generated summary · Google Gemini · from 1 sources. How we write summaries →