Hong Kong Data Breaches, Local AI Privacy, and Malicious GGUF Models: How to Verify Open Weights

After 330 Hong Kong data breaches in 2026 pushed developers toward local AI, malicious Hugging Face GGUF models showed offline weights need auditing too. Five 2024 to 2026 attacks, a 6-step checklist, and our live audit of 15 Koelony Cantonese ASR GGUFs.

Between October and November 2026, a wave of third-party portal and vendor breaches swept across Hong Kong ticketing platforms, retail chains, healthcare and insurance portals, and public-sector apps. According to figures reported by RTHK on 27 November 2026 (Chinese report), Hong Kong's Office of the Privacy Commissioner for Personal Data (PCPD) received 330 personal data-breach notifications through 25 November 2026 (up nearly 50% from 223 a year earlier, with 113, or 34%, arriving after October alone and 156 hacking cases, 47%, more than double the 75 recorded a year earlier). Over the same stretch, HKCERT logged 8,358 security incidents in H1 2026, 4,404 in Q3 2026 (up roughly 15% from 3,839 a year earlier), and more than 14,000 incidents across the first ten months of 2026.

For many Hong Kong engineers and privacy-conscious users, the natural response to repeated third-party cloud leaks is moving sensitive workflows offline: local LLMs, on-device notes, and offline Cantonese voice typing instead of sending raw speech and client text to external SaaS APIs. Yet on the exact same day (27 November 2026), Malspark published a full-Hub scan showing live Hugging Face GGUF models carrying an 11.47 MB Windows infostealer and remote access trojan hidden past the end of tensor data and armed days after upload through a rewritten tokenizer.chat_template. Sheng Liao's practical write-up (original Chinese version here) framed the dilemma sharply: running AI locally closes the cloud-leak hole, but pulling an unverified model from Hugging Face can trade a vendor breach for malware running directly inside your own workstation.

This post shares our engineering perspective as a team that pulls open models from Hugging Face almost every day, maps the five real-world AI supply-chain failure modes documented between 2024 and late November 2026, gives a concrete six-step pre-flight checklist with static commands you can paste straight into a terminal, and turns the same microscope onto our own public Cantonese ASR repositories so you do not have to take our word on trust.

1. Why local AI privacy needs supply-chain verification

Building Hong Kong Cantonese speech and language models means downloading third-party artifacts constantly. In our first ASR engineering post and our browser WebGPU post, every release depended on upstream base checkpoints, tokenizers, acoustic encoders, quantization tools, and reference baselines pulled from Hugging Face.

Two dangerous shortcuts show up whenever local AI privacy gains momentum after a wave of cloud breaches:

  1. Assuming "offline" equals "safe": Keeping audio and documents off third-party servers stops cloud vendor leaks, which matters enormously when third-party supply chains are being hit across Hong Kong. Still, downloading an unaudited GGUF from a random Hugging Face account brings untrusted binary data and prompt-formatting code straight onto the machine holding your browser profiles, SSH keys, and source code.
  2. Treating file format as a binary safety switch: Many ML engineers assume "Pickle .bin and .pt files run arbitrary Python on load, so as long as I stick to .safetensors or .gguf, it is just inert weights."

That second rule of thumb was already shaky in 2024 and is now plainly obsolete. Modern model files are not bare floating-point arrays. They ship executable Jinja2 formatting programs (tokenizer.chat_template, chat_template.jinja, tokenizer_config.json), binary headers parsed by native C/C++ engines, optional custom modeling scripts (auto_map), and trailing byte regions that loaders silently ignore, all sitting behind a mutable Git branch (main) that a publisher can rewrite days after you reviewed the repo.

2. Five real-world ways open models bite back (2024 to 2026)

Every attack class below is grounded in a documented incident or CVE from 2024 through November 2026. Together they show why relying on a single format check or a one-time browse of a model card misses real threats.

Monochrome diagram of an on-disk GGUF binary layout (Header and KV Metadata containing tokenizer.chat_template, Tensor Info Table, Aligned Tensor Data, Zero Padding, and an unread Attacker EOF Overlay) paired with four documented supply-chain attack paths from 2024 to 2026
Anatomy of a GGUF file and four documented open-model supply-chain attack paths (2024 to 2026). Loaders only read the tensor byte ranges declared in the header and ignore appended EOF bytes, while embedded chat templates run before every prompt.
DateIncident / CVESurface abusedImpactVerified primary source
Feb 2024JFrog Hub scan (~100 models)PyTorch / Keras Pickle (.bin, .pt)Arbitrary Python / reverse shell on torch.load()JFrog Security Research
May 2024CVE-2024-34359 (llama-cpp-python < 0.2.72)GGUF tokenizer.chat_templateUnsandboxed Jinja2 SSTI leading to host RCE (CVSS 9.6)NVD, GHSA-56xg-wfcc-g829
Feb 2025ReversingLabs NullifAI7z-packed broken Pickle streamsBypassed Picklescan while still executing reverse shellReversingLabs
Mar 2026CVE-2026-33298 (llama.cpp < b7824)Crafted GGUF tensor dimensionsInteger overflow in ggml_nbytes, heap overflow (CVSS 7.8)NVD, GHSA-96jg-mvhq-q7q7
Apr 2026CVE-2026-5760 (SGLang /v1/rerank)Model tokenizer.chat_templateUnsandboxed Jinja2 SSTI leading to host RCE (CVSS 9.8)NVD, CERT VU#915947
Nov 2026Malspark scan (Mir2k, timdedid)GGUF EOF overlay + poisoned chat_templateEmbedded 11.47 MB Windows RAT + agentic shell hijackMalspark, gguf-radar

2.1 Nov 2026: GGUF EOF overlays and conditional agentic template hijacks (Malspark + gguf-radar)

On 26 November 2026, Malspark scanned all 3,273,389 public model repositories on Hugging Face (226,310 GGUF repositories totaling 2.56 PB of weights) and statically parsed 572,184 chat templates via HTTP Range requests without executing a single model. After filtering out test repos and research samples, five active malicious GGUF repositories remained across two accounts (Mir2k and timdedid), all subsequently disabled by Hugging Face:

  • Mir2k (plant first, arm days later): On 22 and 24 November, Mir2k uploaded two GGUF models with normal, benign chat templates, but with an 11.47 MB Windows x64 remote access trojan (ollie) already appended past the end of the aligned tensor section (plain with trailing filler in the first model, raw-Deflate compressed in the second to erase PE magic signatures). According to Malspark's static analysis, ollie bundles Tor and a Monero miner and specifically targets saved passwords in Chrome, Edge, and Brave plus Phantom and MetaMask wallet extensions, turning a privacy-motivated local model download into a direct credential theft vector. Standard GGUF loaders read only the tensor byte ranges declared in the header and never warn about trailing bytes. Two to four days later, on 26 November, the account rewrote tokenizer.chat_template twice within nine hours so the model prepended a PowerShell one-liner instructing the user to carve the hidden tail bytes out of the local .gguf file and launch d.exe from %TEMP%.
  • timdedid (conditional agentic tool hijacking): On 21 and 22 November, timdedid uploaded three identical Qwen3 1.7B GGUF repos whose template kept the official Qwen3 layout except for one conditional branch: whenever the user's latest message contained 'What is', the template injected a hidden [SYSTEM DIRECTIVE] ordering a tool-enabled coding agent to call its powershell tool, download value.ps1 into the Windows temporary directory, and run it in a hidden window. The model card explicitly advised users not to replace the embedded template.

This attack class did not come out of nowhere. Pillar Security demonstrated inference-level chat-template backdoors in July 2025, Fogel et al. evaluated trigger-gated agentic template backdoors across 18 models in February 2026, and Splunk's February 2026 "Trust at Inference Time" security audit similarly warned defenders that GGUF metadata templates execute on every inference turn.

One nuance worth keeping straight when reading headlines about "2,400+ victims": Malspark reported 2,428 combined downloads across the five repos as of 27 November, and noted that downloads are not unique people. As Hugging Face's download statistics documentation explains (and as Sheng's analysis highlights), every HTTP GET or HEAD request to a query file (and to every .gguf file) increments the Hub counter, including repeated pulls, mirrors, and automated HTTP Range scanners. Moreover, downloads of Mir2k's repos before 26 November fetched the dormant binary without the armed template. Even so, even a handful of real developer workstations running an untrusted one-liner or granting shell tools to a poisoned local agent is a severe supply-chain breach.

2.2 2024 to 2026: Unsandboxed Jinja2 template injection RCE (CVE-2024-34359 & CVE-2026-5760)

Poisoned tokenizer.chat_template metadata does not only rely on social engineering a user or tricking an agent. When a Python serving stack renders a model's Jinja2 template through an unsandboxed jinja2.Environment() instead of ImmutableSandboxedEnvironment, a crafted template achieves direct host remote code execution via Server-Side Template Injection (SSTI):

  • CVE-2024-34359 (May 2024, CVSS 9.6): In llama-cpp-python before 0.2.72, Jinja2ChatFormatter parsed GGUF tokenizer.chat_template with an unsandboxed jinja2.Environment, giving arbitrary command execution on prompt formatting (NVD, GHSA-56xg-wfcc-g829).
  • CVE-2026-5760 (April 2026, CVSS 9.8): Nearly two years later, the exact same vulnerability class reappeared in SGLang's /v1/rerank endpoint when rendering a malicious tokenizer.chat_template in an unsandboxed jinja2.Environment() (NVD, SGLang PR #23660, CERT VU#915947).

C++ runtimes like llama.cpp use a restricted template renderer with no Python runtime behind it, so Python SSTI gadgets fail there, while prompt/directive injection (Mir2k, timdedid) still works. Python wrappers and serving frameworks face both risks at once.

2.3 Mar 2026: Native GGUF parser memory corruption (CVE-2026-33298 in llama.cpp)

Even if you inspect templates and reject Pickle completely, GGUF is still a binary format parsed by C/C++ code. In March 2026, CVE-2026-33298 (CVSS 7.8, GHSA-96jg-mvhq-q7q7) disclosed an integer overflow in llama.cpp's ggml_nbytes calculation prior to release b7824. Crafting extreme tensor dimensions in a GGUF header wrapped the byte-size calculation to a tiny allocation (for example, a few megabytes instead of exabytes), causing a heap-based buffer overflow during loading. Safe formats reduce your attack surface dramatically, but they never replace keeping inference runtimes patched.

2.4 2024 to 2025: Pickle deserialization and scanner evasion (JFrog & ReversingLabs NullifAI)

Legacy PyTorch checkpoints (.bin, .pt, .pth, .pkl) serialize objects with Python's pickle VM, which executes arbitrary callables during torch.load(). In 2024, JFrog Security Research identified around 100 malicious models on Hugging Face containing real backdoor and reverse-shell payloads.

Relying purely on Hub-side automated scanning is not enough either. In February 2025, ReversingLabs disclosed the NullifAI technique: attackers compressed PyTorch archives with 7z instead of standard ZIP and placed a reverse-shell payload at the start of an intentionally broken Pickle stream. Automated Picklescan checks failed to flag the broken archive, yet the malicious code still executed before deserialization errored out.

2.5 Custom Python code (trust_remote_code=True) and unpinned mutable main revisions

Finally, two Hub mechanics undermine casual audits even when weight tensors are clean Safetensors:

  • Custom modeling code (trust_remote_code=True): Repositories that declare auto_map in config.json ship .py files (modeling_*.py, configuration_*.py, tokenization_*.py) executed locally when you pass trust_remote_code=True (Hugging Face custom models docs). That flag is effectively curl | python.
  • Mutable main branches: Every Hugging Face repository is a Git repo. Pulling main means your code accepts whatever commit happens to sit at HEAD today. As Mir2k proved across 22 to 26 November, an attacker can upload clean files on Day 1 to earn early downloads and trust, then hot-swap a chat template or Python file on Day 4. One-time review without commit pinning leaves a wide window open.

3. What we actually do before loading any external model (6-step checklist)

When we evaluate a new base model, teacher checkpoint, or community quantization at Koelony, we treat it like an untrusted binary dependency. The workflow below takes under a minute on most repos and works for both individual developers and CI pipelines.

Five-gate monochrome verification workflow before loading any Hugging Face model: Gate 1 Pin 40-char Commit SHA and run offline, Gate 2 Format and Code Gate, Gate 3 Static Header, EOF and chat_template Inspection, Gate 4 SHA-256 Verification, and Gate 5 Least-Privilege Runtime, followed by fail-closed rejection triggers and Koelony's live 2026-11-29 public repo audit summary
Our five-gate pre-flight verification flow for external open-weight models, plus fail-closed rejection triggers and our live 2026-11-29 audit summary across all five public Koelony ASR repositories.

Step 1: Pin exact 40-character commit SHAs and run offline after audit

Never let a script, Dockerfile, or local server pull a floating main branch from Hugging Face. Resolve the commit hash once, inspect that exact revision, pin --revision <40-char-sha> in your download call (Hugging Face download guide), and set HF_HUB_OFFLINE=1 at runtime so a later upstream edit can never silently enter your environment:

# Download a pinned immutable revision (never floating main)
huggingface-cli download owner/repo-name \
  --revision 0123456789abcdef0123456789abcdef01234567 \
  --local-dir ./models/repo-pinned

# Lock runtime inference to local cache only
HF_HUB_OFFLINE=1 TRANSFORMERS_OFFLINE=1 python serve.py

Step 2: Reject Pickle weight files and avoid trust_remote_code=True

Before downloading gigabytes of weights, list the repository tree via the public Hub API and reject .bin (when used as PyTorch Pickle weights), .pt, .pth, and .pkl whenever .safetensors, .gguf, or .onnx exist. Also inspect config.json for auto_map and check for .py files:

# List all files in a pinned revision without downloading weights
REPO="koelony/Qwen3-ASR-1.7B-Cantonese-HK"
REV="b83cfbf24bc6a983dc1e58e51bdb01f10d3c30a1"
curl -sS "https://huggingface.co/api/models/${REPO}/tree/${REV}?recursive=true" \
  | python3 -c "import json,sys; print('\n'.join(f['path'] for f in json.load(sys.stdin) if f.get('type')=='file'))"

Keep trust_remote_code=False (the default). If a brand-new architecture genuinely requires trust_remote_code=True, read every .py file at the pinned SHA line by line before executing it, exactly as you would audit an unreviewed third-party package.

Step 3: Check GGUF EOF trailing bytes, padding, and tokenizer.chat_template statically

You do not need to load a GGUF model into a runtime to verify its structure. The minimal Python script below uses gguf.GGUFReader (pip install gguf or uv run --with gguf) to parse the header statically, compute tensor_data_end, check alignment padding up to aligned_end, flag any extra_after_padding > 0, and dump tokenizer.chat_template as plain text without rendering it:

import math
import os
import sys
import gguf

path = sys.argv[1]
reader = gguf.GGUFReader(path)
file_size = os.path.getsize(path)

align_field = reader.get_field("general.alignment")
alignment = int(align_field.contents()) if align_field is not None else 32

# In gguf.GGUFReader, each ReaderTensor.data_offset is already an absolute file offset.
tensor_data_end = max(
    (int(t.data_offset) + int(t.n_bytes) for t in reader.tensors),
    default=reader.data_offset,
)
aligned_end = math.ceil(tensor_data_end / alignment) * alignment
extra_after_padding = max(0, file_size - aligned_end)

with open(path, "rb") as f:
    f.seek(tensor_data_end)
    tail_padding = f.read(max(0, min(file_size, aligned_end) - tensor_data_end))
padding_all_zero = all(b == 0 for b in tail_padding)

tmpl_field = reader.get_field("tokenizer.chat_template")
chat_template = tmpl_field.contents() if tmpl_field is not None else None

print(f"file_size           : {file_size:,} B")
print(f"tensor_data_end     : {tensor_data_end:,} B (alignment={alignment} B)")
print(f"padding_all_zero    : {padding_all_zero}")
print(f"extra_after_padding : {extra_after_padding:,} B")
print(f"chat_template_chars : {len(chat_template) if chat_template else 0}")
if chat_template:
    print("--- tokenizer.chat_template (raw, unrendered) ---")
    print(chat_template)

For faster scanning across local directories or remote Hugging Face links (using HTTP Range requests so you do not even download multi-GB weights first), the MIT-licensed Root0ne/gguf-radar tool performs static Jinja AST analysis, checks EOF overlays, non-zero alignment slack, zero-scale quantization blocks, and duplicate metadata keys, and can rebuild a clean weight-identical GGUF file:

# Scan a remote Hugging Face repo via HTTP Range (no full download)
uvx --from git+https://github.com/Root0ne/gguf-radar gguf-radar scan owner/model-gguf

# Compare an embedded GGUF template against the upstream base model
gguf-radar compare-template ./model.gguf --base Qwen/Qwen3-1.7B

# Rebuild a clean copy with weights unchanged and a trusted chat template
gguf-radar sanitize suspicious.gguf -o clean.gguf --replace-template verified.jinja

Step 4: Diff and override tokenizer.chat_template (for .safetensors too)

Never let an untrusted checkpoint supply prompt formatting logic at inference time. In llama.cpp, override the embedded template explicitly with a local file you reviewed; in Ollama, declare an explicit TEMPLATE block in your Modelfile:

# llama.cpp: ignore the GGUF's embedded template and pin a reviewed local file
llama-server \
  -m ./model.gguf \
  --chat-template-file ./verified_template.jinja \
  --host 127.0.0.1 --port 8080

Crucially, switching from GGUF to .safetensors does not eliminate chat-template poisoning. While safetensors rejects trailing EOF bytes by design, .safetensors repositories still ship chat_template.jinja and tokenizer_config.json. Diff those files against the upstream base model before serving them too.

Step 5: Keep inference runtimes patched

Treat llama.cpp, llama-cpp-python, SGLang, vLLM, and transformers like network-facing parsers, not passive math libraries. At minimum, ensure you are past the patched baselines for the bugs above (llama.cpp >= b7824 for CVE-2026-33298, llama-cpp-python >= 0.2.72 for CVE-2024-34359, and SGLang releases containing PR #23660 for CVE-2026-5760).

Step 6: Apply least privilege to local agents

Both Mir2k and timdedid only achieve code execution at the last mile: either a human pastes a suggested PowerShell command into a terminal, or a coding agent obeys a hidden [SYSTEM DIRECTIVE] because it holds an unrestricted shell tool. Never connect an unverified local model to arbitrary shell, PowerShell, filesystem-write, or browser-cookie tools. When testing unfamiliar checkpoints, run the inference server inside a credential-free, network-egress-restricted container and bind it only to 127.0.0.1.

4. Offline privacy plus verifiable open weights: auditing Koelony and Munia

Real local AI privacy requires both layers working together. First, keep sensitive audio and text strictly on-device so nothing crosses a third-party cloud vendor (which is why Munia, our offline Cantonese voice-typing app for macOS and Windows, runs speech recognition locally with zero audio upload). Second, make the open-weight files themselves boringly verifiable so users never have to take a publisher's badge on faith.

On 29 November 2026, we ran two independent static checks against all five of our public Hugging Face repositories using the unauthenticated public API: (1) our own byte-level GGUF header, alignment-padding, and EOF parser across all 15 published .gguf files, and (2) Root0ne/gguf-radar (commit 609765d54a2d) across all five repositories. Here are the exact observed numbers:

Public Koelony repo (pinned SHA on 2026-11-29)Weight formatPickle / .py / auto_mapStatic GGUF EOF & padding auditEmbedded / repo chat templategguf-radar verdict
Qwen3-ASR-1.7B-Cantonese-HK (b83cfbf24bc6)BF16 .safetensors0 / 0 / NoneN/A (safetensors)chat_template.jinja (1,434 B), chat_template.json (1,161 B)CLEAN
Qwen3-ASR-1.7B-Cantonese-HK-GGUF (425716566492)8 .gguf files (incl. Q6_K_H, mmproj, transcribe-cpp)0 / 0 / None8/8 files: 0 B EOF overlay, 100% zeroed padding, 0 dup keys199 ch minimal ChatML (4 LLMs), none (mmproj), 1,099 ch upstream ASR (3 transcribe-cpp)CLEAN (8/8)
Qwen3-ASR-0.6B-Cantonese-HK (7b61dee14efa)BF16 .safetensors0 / 0 / NoneN/A (safetensors)chat_template.json (1,161 B)CLEAN
Qwen3-ASR-0.6B-Cantonese-HK-GGUF (d4cec6ac6e3c)7 .gguf files (incl. mmproj, transcribe-cpp)0 / 0 / None7/7 files: 0 B EOF overlay, 100% zeroed padding, 0 dup keys199 ch minimal ChatML (3 LLMs), none (mmproj), 1,099 ch upstream ASR (3 transcribe-cpp)CLEAN (7/7)
Qwen3-ASR-0.6B-Cantonese-HK-ONNX (bb80c3410aab)INT8 .onnx + split raw weight chunks0 / 0 / None (raw float DSP/embed .bin, not Pickle)N/A (ONNX)None (browser worker formats tokens in pure TS)CLEAN

A few concrete details from that audit explain how we keep our public releases straightforward to inspect:

  1. Zero Pickle weights and zero custom Python execution: Across all five public repositories, there are 0 PyTorch Pickle weight files (.pt, .pth, .pkl, pytorch_model.bin), 0 .py files, and auto_map: None in every config.json. For full transparency on the browser ONNX repo (Qwen3-ASR-0.6B-Cantonese-HK-ONNX), its mel_filters.bin (102,912 bytes = 128 x 201 raw IEEE-754 float32 Whisper mel filterbank matrix) and embed_tokens.bin.part0 through part12 (raw FP16 embedding rows) are flat numeric buffers consumed by our pure-TypeScript Web Worker, not Python Pickle archives.
  2. Exact GGUF byte alignment with zero EOF overlay bytes: On all 15/15 public .gguf files, file_size == tensor_data_end (extra_after_padding = 0 B, tail_pad = 0 B), and every header alignment pad byte is 0x00 (header_pad_zero = True). For example, our recommended Qwen3-ASR-1.7B-Cantonese-HK.Q6_K_H.gguf (why we recommend it over standard Q6_K; 1,507,332,032 bytes, GGUF v3, arch=qwen3vl, 310 tensors, alignment=32 B, data_offset=5,947,328, header_pad=3 B all zero) ends at byte 1,507,332,032 with 0 trailing bytes, and its SHA-256 (efb725897337513064008e52b9c3fe75aaaafa7c05967c462b28fe2c5b93318e) matches both Hugging Face's immutable LFS oid and our published model card. All six single-file transcribe-cpp GGUFs (three 1.7B, three 0.6B) likewise match transcribe-cpp/SHA256SUMS.txt byte-for-byte against Hugging Face LFS.
  3. Minimal, readable chat templates and open tooling: All seven llama.cpp LLM GGUFs embed a plain 199-character ChatML loop ({% for message in messages %}...), both mmproj-Q8_0.gguf audio projectors carry no chat template at all, and all six transcribe-cpp GGUFs embed the exact 1,099-character upstream Qwen3-ASR audio-placeholder template matching chat_template.json in the safetensors repos. There are zero user-prompt conditionals, zero shell commands, and zero external URLs. All conversion, benchmark, and app code stays inspectable on GitHub in koelony/qwen3-asr-cantonese-hk and koelony/munia (see koelony.com/asr/ and koelony.com/munia/).

Verify Koelony's weights yourself in 3 commands

Before loading Qwen3-ASR-1.7B-Cantonese-HK.Q6_K_H.gguf into llama-server or Munia, you can verify it independently without trusting anything written above:

# 1. Scan the public repo statically over HTTP Range before downloading weights
uvx --from git+https://github.com/Root0ne/gguf-radar gguf-radar scan koelony/Qwen3-ASR-1.7B-Cantonese-HK-GGUF

# 2. Pull the pinned commit SHA (not floating main)
huggingface-cli download koelony/Qwen3-ASR-1.7B-Cantonese-HK-GGUF \
  Qwen3-ASR-1.7B-Cantonese-HK.Q6_K_H.gguf \
  --revision 425716566492f110ab46ad000239794419dad6a2 --local-dir ./koelony-asr

# 3. Verify the exact SHA-256 against the immutable LFS digest (macOS: shasum -a 256)
echo "efb725897337513064008e52b9c3fe75aaaafa7c05967c462b28fe2c5b93318e  ./koelony-asr/Qwen3-ASR-1.7B-Cantonese-HK.Q6_K_H.gguf" | sha256sum -c -

For the single-file transcribe-cpp builds, you can verify directly against the published transcribe-cpp/SHA256SUMS.txt at the same pinned commit SHA (sha256sum -c SHA256SUMS.txt on Linux or shasum -a 256 -c SHA256SUMS.txt on macOS).

5. Quick answers

Are GGUF and .safetensors models automatically safe compared to Pickle .bin/.pt files? No. Avoiding Pickle eliminates Python deserialization RCE, and .safetensors rejects trailing EOF bytes, but both GGUF and .safetensors repositories can still carry poisoned chat templates (tokenizer.chat_template or chat_template.jinja). GGUF files can also hide arbitrary trailing payloads past aligned tensor data, and native parsers still require timely patching (llama.cpp >= b7824).

How do I check a Hugging Face GGUF model before running it locally? Pin an exact 40-character --revision commit SHA instead of main, check the Hub file list for Pickle weights or auto_map .py scripts, run gguf-radar scan over HTTP Range (or inspect extra_after_padding == 0 and read tokenizer.chat_template statically), verify the SHA-256 digest against Hugging Face LFS, and pass a reviewed --chat-template-file without exposing shell tools to untrusted models.

How do Munia and Koelony protect local Cantonese voice typing privacy and verify model weights? Munia runs Hong Kong Cantonese speech recognition 100% locally on macOS and Windows so your microphone audio never leaves your device. On the supply-chain side, all five public Koelony Hugging Face repositories ship zero Pickle weight files and zero custom Python execution hooks, pass 15/15 static GGUF EOF/padding audits and 5/5 gguf-radar scans, and publish immutable commit SHAs plus SHA-256 checksums that anyone can verify before loading.

6. References