mimirwiki.com/wiki/gguf
rev 3594c28dUpdated 2026-11-29EN · KO · JA · ZH · ES · DE · FR · PT · RU · IT · HI · AR
Concept/Technology and AI

GGUF (GGML Universal File)

Single-file binary model format storing quantized tensors and inference metadata for GGML-based runtimes such as llama.cpp

Expert review pending
Written automatically from public sources7 sources
View the page in the format AI receives
Summary

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

01

How GGUF file structure differs from model distributor trust

Government and public records Academic and news Official sites

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

Security LayerWhat It CoversLimitations & Risks
File format (GGUF vs. Pickle)GGUF stores tensors and structured metadata without Python pickle bytecode executionMetadata fields such as tokenizer.chat_template and unparsed trailing bytes after tensor data can still be abused167
Platform scanningHugging Face runs automated malware and pickle scanners across hosted repositoriesAutomated scans have defined detection scopes and cannot guarantee zero malicious uploads45
Distributor & runtime trustVerifying repository publisher identity, inspecting templates, and restricting agent/shell execution permissionsCopying generated shell commands or running unsandboxed coding agents can execute attacker-injected instructions47
02

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

03

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

04

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

05

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

Quotable sentences

Each sentence has a source, so you can quote it as it is.
  1. The GGML GGUF specification defines a single binary file containing a header, key-value metadata, tensor descriptors, and tensor data for local inference.12
  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
  3. 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
  4. As of November 29, 2026, actual infection counts, full redistribution scope, and cross-runtime impact remain unconfirmed.37
07

Timeline

  1. Malspark publishes an investigation reporting five malicious GGUF repositories on Hugging Face with 2,428 combined downloads recorded at scan time.7
08

Sources

7 sources

Academic and news

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

  1. 1
    GGUF Format Specification (ggml-org/ggml) · GGML Project · checked 2026-11-29https://raw.githubusercontent.com/ggml-org/ggml/master/docs/gguf.md
  2. 2
    GGUF on the Hugging Face Hub · Hugging Face · checked 2026-11-29https://huggingface.co/docs/hub/gguf
  3. 3
    Models Download Stats · Hugging Face · checked 2026-11-29https://huggingface.co/docs/hub/models-download-stats
  4. 4
    Hub Security Overview · Hugging Face · checked 2026-11-29https://huggingface.co/docs/hub/security
  5. 5
    Malware Scanning on Hugging Face Hub · Hugging Face · checked 2026-11-29https://huggingface.co/docs/hub/security-malware
  6. 6
    Pickle Scanning on Hugging Face Hub · Hugging Face · checked 2026-11-29https://huggingface.co/docs/hub/security-pickle
09

Review and writing

review signature

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.

10

Version

SHA-256

3594c28dae3142d15b0322b299674e0fa7bd18590d05e601b7b40ec574108eff

Each edit gives the page a new version number.

Cite this page

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

Formats for AI
# 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.

Related pages