Repository navigation
RepoBeagle v1.201.0
Model-weight metadata without downloading the weights
RepoBeagle now reads model headers instead of treating multi-GB weight files as opaque LFS pointers. Tensor payloads are never fetched.
What is inspected
- GGUF: the metadata KV section, including
tokenizer.chat_template. A template that injects a system message or makes the model print a shell command isgguf-chat-template-command(critical); hidden Unicode, prompt-injection wording and remote URLs are reported too. - safetensors: the length-prefixed JSON header, tensor count and every free-form
__metadata__string (same command/injection/invisible-Unicode rules). - ONNX:
producer_name,producer_version,domainanddoc_stringfrom the protobuf prefix. - Chat templates beside the weights:
tokenizer_config.json,chat_template.json,chat_template.jinja,*.j2are audited aschat-template-*. - Other weight containers:
.pt/.pth,.h5/.keras,.tflite,.mlmodel,.ckpt,.ot,.npz,.plan,.engine,.ggmlget a bounded header sample for format identification. - LFS range fetch: pointers are resolved through the Git LFS batch API and only a bounded prefix is read (
BEAGLE_MODEL_HEADER_MAX_BYTES, default 32 MiB;BEAGLE_MODEL_HEADER_MAX_FILES, default 8). An unreadable, truncated or unmaterialized header is a medium finding, never a silent pass.
Install interceptor
repobeagle run now gates the Hugging Face CLI:
repobeagle run -- hf download owner/model
repobeagle run -- hf download owner/data --repo-type dataset --revision v1.2
repobeagle run -- huggingface-cli download owner/modelModels, datasets and spaces are scanned directly; --revision becomes the scan ref. Docker-mode scans run the static header/template check on the host, so the pinned image reports the new findings immediately.
Verification
tests/run_tests.sh --offline— exit 0, 0 failures.- mypy and ruff — clean.
- Live GGUF and safetensors scans: headers parsed, tensor payloads not downloaded.
- The original finding:
Mir2k/Inkling-2-Mini-Uncensored-GGUF→ RED,gguf-chat-template-commandat 11,925,271 header bytes.