GGUF (GGML Universal File)
Single-file binary model format storing quantized tensors and inference metadata for GGML-based runtimes such as llama.cpp
GGUF (GGML Universal File) is a single-file binary format storing model tensors and inference metadata for GGML-based runtimes such as llama.cpp. On November 27, 2026, Malspark reported five malicious GGUF repositories on Hugging Face totaling 2,428 recorded downloads at the time of scanning, though platform download counts can duplicate multi-file fetches and actual infection counts remain unconfirmed.
- Format structure
- Single binary file containing header, extensible key-value metadata, tensor info, and tensor data1as of 2026-11-29
- Primary ecosystem use
- Local quantized LLM inference (e.g., llama.cpp) and Hugging Face Hub GGUF model metadata display2as of 2026-11-29
- November 27, 2026 Malspark scan report
- 5 malicious GGUF repositories on Hugging Face with 2,428 combined downloads at report time7as of 2026-11-27
- Download counter caveat
- Hugging Face download counts can double-count when multiple GGUF files are fetched together; actual infections unconfirmed3as of 2026-11-29
GGUF (GGML Universal File) is a single-file binary format developed by the GGML project to store neural network model tensors alongside all key-value metadata required for local inference in runtimes such as llama.cpp. Replacing earlier GGML formats with an extensible header, metadata section, and aligned tensor data layout, GGUF is widely distributed on platforms such as Hugging Face Hub. On November 27, 2026, security researcher platform Malspark reported scanning Hugging Face and identifying five malicious GGUF repositories totaling 2,428 recorded downloads as of that report, highlighting the distinction between file-format safety and distributor trust.
Also known as GGUF, GGML Universal File, GGUF 모델 파일 형식
How GGUF file structure differs from model distributor trust
The GGML specification defines GGUF as a self-contained binary layout composed of a file header, key-value metadata pairs (including tokenizer definitions and chat templates), tensor descriptors, and raw tensor data.1 Hugging Face Hub parses and displays this metadata natively for GGUF repositories.2 Because GGUF does not rely on Python's arbitrary-code pickle deserialization, users sometimes assume GGUF files are automatically safe, yet file-format properties and uploader trustworthiness are distinct security layers.467
- 1GGUF Format Specification (ggml-org/ggml)GGML Project
- 2GGUF on the Hugging Face HubHugging Face
- 4Hub Security OverviewHugging Face
- 6Pickle Scanning on Hugging Face HubHugging Face
- 7GGUF LLM Models with Hidden Malware on Hugging Face Reached 2400+ VictimsMalspark
| Security Layer | What It Covers | Limitations & Risks |
|---|---|---|
| File format (GGUF vs. Pickle) | GGUF stores tensors and structured metadata without Python pickle bytecode execution | Metadata fields such as tokenizer.chat_template and unparsed trailing bytes after tensor data can still be abused167 |
| Platform scanning | Hugging Face runs automated malware and pickle scanners across hosted repositories | Automated scans have defined detection scopes and cannot guarantee zero malicious uploads45 |
| Distributor & runtime trust | Verifying repository publisher identity, inspecting templates, and restricting agent/shell execution permissions | Copying generated shell commands or running unsandboxed coding agents can execute attacker-injected instructions47 |
- 1GGUF Format Specification (ggml-org/ggml)GGML Project
- 6Pickle Scanning on Hugging Face HubHugging Face
- 7GGUF LLM Models with Hidden Malware on Hugging Face Reached 2400+ VictimsMalspark
- 4Hub Security OverviewHugging Face
- 5Malware Scanning on Hugging Face HubHugging Face
November 27, 2026 Malspark investigation and download count limits
On November 27, 2026, security researcher platform Malspark published findings from a scan of Hugging Face GGUF repositories, reporting five malicious repositories linked to two accounts that had accumulated 2,428 combined downloads as of the report date.7 According to the report, the repositories combined poisoned Jinja2 tokenizer.chat_template metadata (steering model output or coding-agent tool calls toward shell commands) with extra payloads appended past the final tensor boundary ignored by standard runtimes.7
Crucially, the 2,428 figure is a platform download tally recorded at the time of the investigation rather than a verified count of compromised machines.37 Hugging Face's official download statistics documentation explicitly notes that fetching multiple GGUF files from a repository can result in per-file counting and over-counting relative to unique users.3
- 3Models Download StatsHugging Face
- 7GGUF LLM Models with Hidden Malware on Hugging Face Reached 2400+ VictimsMalspark
Platform scanning scope and user verification practices
Hugging Face documents separate security layers including malware scanning and pickle scanning across its Hub, while emphasizing that users should still evaluate model provenance, check publisher accounts, and understand execution privileges in their local runtime.456 Reviewing embedded chat templates and isolating local agent shell permissions reduces exposure even when a model file uses a non-pickle binary format like GGUF.47
- 4Hub Security OverviewHugging Face
- 5Malware Scanning on Hugging Face HubHugging Face
- 6Pickle Scanning on Hugging Face HubHugging Face
- 7GGUF LLM Models with Hidden Malware on Hugging Face Reached 2400+ VictimsMalspark
Unverified infection scale as of November 2026
As of November 29, 2026, the actual number of infected devices, the full scope of third-party redistribution or mirrors of the five reported repositories, and exact behavioral impact across different local inference clients remain unconfirmed.37
- 3Models Download StatsHugging Face
- 7GGUF LLM Models with Hidden Malware on Hugging Face Reached 2400+ VictimsMalspark
Frequently asked questions
- What is the GGUF file format?
- GGUF (GGML Universal File) is a single-file binary format defined by the GGML project that packages model weights (tensors) together with inference metadata such as tokenizers and chat templates for runtimes like llama.cpp.12
- Why does the GGUF format not automatically guarantee a model is safe?
- Although GGUF avoids Python pickle deserialization, untrusted uploaders can still abuse metadata fields like chat templates or append hidden payloads past tensor boundaries, making publisher trust and runtime execution permissions essential.467
- Does the 2,428 download figure in the November 2026 Malspark report mean 2,428 infected users?
- No. The 2,428 figure is the combined repository download tally at the time of Malspark's November 27, 2026 report; Hugging Face documentation notes multi-file GGUF downloads can duplicate counts, and actual infection numbers remain unconfirmed.37
Quotable sentences
The GGML GGUF specification defines a single binary file containing a header, key-value metadata, tensor descriptors, and tensor data for local inference.
12On November 27, 2026, Malspark reported five malicious GGUF repositories on Hugging Face with 2,428 combined downloads at the time of the report, abusing chat-template metadata and trailing data past tensor bounds.
7Hugging Face's download statistics documentation explains that downloading multiple GGUF files can produce duplicated per-file counts, so download tallies do not equal unique infected users.
3As of November 29, 2026, actual infection counts, full redistribution scope, and cross-runtime impact remain unconfirmed.
37
Timeline
- Malspark publishes an investigation reporting five malicious GGUF repositories on Hugging Face with 2,428 combined downloads recorded at scan time.7
Sources
Academic and news
- 7GGUF LLM Models with Hidden Malware on Hugging Face Reached 2400+ Victims · Malspark · published 2026-11-27 · checked 2026-11-29https://malspark.com/blog/malicious-gguf-models-hugging-face/
Official sites
- 1GGUF Format Specification (ggml-org/ggml) · GGML Project · checked 2026-11-29https://raw.githubusercontent.com/ggml-org/ggml/master/docs/gguf.md
- 2GGUF on the Hugging Face Hub · Hugging Face · checked 2026-11-29https://huggingface.co/docs/hub/gguf
- 3Models Download Stats · Hugging Face · checked 2026-11-29https://huggingface.co/docs/hub/models-download-stats
- 4Hub Security Overview · Hugging Face · checked 2026-11-29https://huggingface.co/docs/hub/security
- 5Malware Scanning on Hugging Face Hub · Hugging Face · checked 2026-11-29https://huggingface.co/docs/hub/security-malware
- 6Pickle Scanning on Hugging Face Hub · Hugging Face · checked 2026-11-29https://huggingface.co/docs/hub/security-pickle
Review and writing
Expert review pending
When a credentialed expert reviews this page, the reviewer's name and the review date appear here. (Current version 3594c28d)
How this page was written
Written automatically from the public information in the sources above.
Version
3594c28dae3142d15b0322b299674e0fa7bd18590d05e601b7b40ec574108eff
Each edit gives the page a new version number.
Mimirwiki. "GGUF (GGML Universal File)." Version 3594c28d, 2026-11-29. https://mimirwiki.com/wiki/gguf
# Markdown curl https://mimirwiki.com/wiki/gguf.md # JSON-LD, by content negotiation curl -H "Accept: application/ld+json" \ https://mimirwiki.com/wiki/gguf
Add an extension to the address to get the same content in that format.