---
title: "GGUF (GGML Universal File)"
subtitle: "Single-file binary model format storing quantized tensors and inference metadata for GGML-based runtimes such as llama.cpp"
canonical_url: https://mimirwiki.com/wiki/gguf
language: en
page_class: concept
revision_sha256: 3594c28dae3142d15b0322b299674e0fa7bd18590d05e601b7b40ec574108eff
date_modified: 2026-11-29
provenance: "auto-written from public primary sources; not yet reviewed by a credentialed expert"
source_count: 7
alternates:
  md: https://mimirwiki.com/wiki/gguf.md
  txt: https://mimirwiki.com/wiki/gguf.txt
  json: https://mimirwiki.com/wiki/gguf.json
  jsonld: https://mimirwiki.com/wiki/gguf.jsonld
translations:
  ko: https://mimirwiki.com/ko/wiki/gguf
  ja: https://mimirwiki.com/ja/wiki/gguf
  zh: https://mimirwiki.com/zh/wiki/gguf
  es: https://mimirwiki.com/es/wiki/gguf
  de: https://mimirwiki.com/de/wiki/gguf
  fr: https://mimirwiki.com/fr/wiki/gguf
  pt: https://mimirwiki.com/pt/wiki/gguf
  ru: https://mimirwiki.com/ru/wiki/gguf
  it: https://mimirwiki.com/it/wiki/gguf
  hi: https://mimirwiki.com/hi/wiki/gguf
  ar: https://mimirwiki.com/ar/wiki/gguf
---

# GGUF (GGML Universal File)

> 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.

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 모델 파일 형식

## Key facts

- **Format structure:** Single binary file containing header, extensible key-value metadata, tensor info, and tensor data (as of 2026-11-29) [1]
- **Primary ecosystem use:** Local quantized LLM inference (e.g., llama.cpp) and Hugging Face Hub GGUF model metadata display (as of 2026-11-29) [2]
- **November 27, 2026 Malspark scan report:** 5 malicious GGUF repositories on Hugging Face with 2,428 combined downloads at report time (as of 2026-11-27) [7]
- **Download counter caveat:** Hugging Face download counts can double-count when multiple GGUF files are fetched together; actual infections unconfirmed (as of 2026-11-29) [3]

## Basic facts

- **Full name:** GGML Universal File (GGUF) [1]
- **Origin / Maintainer:** GGML project (ggml-org) [1]
- **File type:** Self-contained binary model and metadata format [1]
- **Core sections:** Header, key-value metadata (including chat templates), tensor info, tensor data [1]
- **Distribution platforms:** Hugging Face Hub and local model repositories [2]
- **Security context (Nov 2026):** Malspark reported 5 malicious repos (2,428 downloads at scan time); actual infection count unverified [7]

## 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.[4][6][7]

| 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 abused[1][6][7] |
| Platform scanning | Hugging Face runs automated malware and pickle scanners across hosted repositories | Automated scans have defined detection scopes and cannot guarantee zero malicious uploads[4][5] |
| 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 instructions[4][7] |

## 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.[3][7] 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]

## 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.[4][5][6] 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.[4][7]

## 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.[3][7]

## 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. [1][2]

### 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. [4][6][7]

### 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. [3][7]

### What security scans does Hugging Face document for hosted models?

Hugging Face documents Hub security practices including malware scanning and pickle scanning, alongside guidance for users to verify repository provenance and runtime permissions. [4][5][6]

## 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. [1][2]
- On 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. [7]
- Hugging 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. [3]
- As of November 29, 2026, actual infection counts, full redistribution scope, and cross-runtime impact remain unconfirmed. [3][7]

## Timeline

- 2026-11-27: Malspark publishes an investigation reporting five malicious GGUF repositories on Hugging Face with 2,428 combined downloads recorded at scan time. [7]

## Sources

1. GGUF Format Specification (ggml-org/ggml). GGML Project. https://raw.githubusercontent.com/ggml-org/ggml/master/docs/gguf.md (checked 2026-11-29; tier 3: official site)
2. GGUF on the Hugging Face Hub. Hugging Face. https://huggingface.co/docs/hub/gguf (checked 2026-11-29; tier 3: official site)
3. Models Download Stats. Hugging Face. https://huggingface.co/docs/hub/models-download-stats (checked 2026-11-29; tier 3: official site)
4. Hub Security Overview. Hugging Face. https://huggingface.co/docs/hub/security (checked 2026-11-29; tier 3: official site)
5. Malware Scanning on Hugging Face Hub. Hugging Face. https://huggingface.co/docs/hub/security-malware (checked 2026-11-29; tier 3: official site)
6. Pickle Scanning on Hugging Face Hub. Hugging Face. https://huggingface.co/docs/hub/security-pickle (checked 2026-11-29; tier 3: official site)
7. GGUF LLM Models with Hidden Malware on Hugging Face Reached 2400+ Victims. Malspark. published 2026-11-27. https://malspark.com/blog/malicious-gguf-models-hugging-face/ (checked 2026-11-29; tier 2: academic or news)

## Cite this page

Mimirwiki. "GGUF (GGML Universal File)." Version 3594c28d, 2026-11-29. https://mimirwiki.com/wiki/gguf
