Skip to content

RepoBeagle v1.201.0

Choose a tag to compare

@javierbits javierbits released this 28 Nov 14:56
· 12 commits to main since this release
v1.201.0
cf86783

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 is gguf-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, domain and doc_string from the protobuf prefix.
  • Chat templates beside the weights: tokenizer_config.json, chat_template.json, chat_template.jinja, *.j2 are audited as chat-template-*.
  • Other weight containers: .pt/.pth, .h5/.keras, .tflite, .mlmodel, .ckpt, .ot, .npz, .plan, .engine, .ggml get 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/model

Models, 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-command at 11,925,271 header bytes.