Scan a Model
Check a Hugging Face model repo (GGUF, safetensors, PyTorch, Keras) before you run it. We read the file headers and tails, and the pickle streams inside checkpoints, by range request, plus the chat-template and Python files, never the whole weights, and report what we find. Nothing is downloaded to your device and nothing in the repo is changed.
Repo to scan
What is checked
- Bytes after the tensor data. A GGUF ends where its last tensor ends, padded to the file's alignment. Anything past that point is not part of the model. In November 2026 an infostealer was found appended there in public repos.
- A ZIP archive inside the file. A ZIP end-of-central-directory record in the tail means the file is also a valid archive.
- Padding and layout. Padding between tensors must be zero bytes, no data region may belong to no tensor, and no two tensors may overlap. A safetensors data buffer must be contiguous and end at the end of the file.
- The chat template. A GGUF carries a Jinja chat template that runs every time you chat. We look for trigger phrases that switch on the text of your message, injected system turns, download-and-run shell commands, "run this fix" text, instructions aimed at a coding agent, URLs and encoded text.
- Pickle checkpoints. PyTorch
.bin,.pt,.pth,.ckpt, plus.pkland joblib files, run code when loaded. We walk the pickle stream without running it and list every import: one that runs commands or evaluates code (os.system,exec,runpy,webbrowser…) is hard evidence, while a hidden import, a stream that breaks before its end, or a checkpoint that is really a program or a 7z archive needs review. - Keras models and remote code. Lambda layers and dangerous
moduleentries in a.kerasor.h5config, and Python files (trust_remote_code) that shell out, evaluate decoded or downloaded code, or open raw sockets. - Drift from the base model. When the model card names a base model, we compare each template with the base model's own template and report what was added.
- Uploader signals. A personal account created in the last 30 days, a repo created in the last 14 days, a repo edited long after upload, an account holding several empty repos named after models, a README that tells you not to change the chat template, programs, scripts or archives shipped in the repo, and files Hugging Face's own scanners mark unsafe.
What is not checked
- The tensor values. Weights are numbers, and there is no static test for what a model has been trained to say. A repo with no findings can still hold a model trained to misbehave.
- ONNX graphs, TensorFlow SavedModels, and the contents of archives in the repo.
- A joblib file past its first array: joblib writes raw array bytes into the stream, so the walk stops there.
- Files past the first eight model files, and past the first eight pickle, Keras or Python files. Scan those one at a time with the file field.
What the verdicts mean
- No findings in what we checked
- Nothing above was found. It does not vouch for the model.
- Needs review
- Something unusual that has innocent explanations, such as a URL in the template, a few stray bytes after the model, a template that reacts to certain message text, or a brand-new account. Read the findings before you run it.
- Dangerous
- The same evidence that puts a model on the flagged list: bytes hidden after the model, a ZIP inside it, or a template that runs a command, adds such a step compared with its base model, or answers certain questions with a fake system instruction to run something. Do not run it.
This tool only reports. It never removes or rewrites anything in a model, and a cleaned copy would not be the file its author published.
Public repos where the scanner found hidden bytes or a command-running template are listed, as automated findings, on Flagged models.