Pickle / PyTorch
.pkl · .pt · .pth · .bin
Opcode & import scan via pickletools — flags dangerous GLOBAL / STACK_GLOBAL patterns.
Cybersecurity · Hugging Face intake · Python 3.14
Scan AI models before they reach your servers — statically, clearly, without running them.
One path from approval request to a handoff-ready report.
Hover a format to see how SafeWeights inspects it.
.pkl · .pt · .pth · .bin
Opcode & import scan via pickletools — flags dangerous GLOBAL / STACK_GLOBAL patterns.
.safetensors
Validates header length, JSON metadata, and tensor offset bounds without loading weights.
.gguf
Checks GGUF magic, version, and implausible tensor / metadata counts.
.onnx
Protobuf heuristics plus scans for suspicious embedded markers.
.h5 · .keras
HDF5 magic + attribute walk for Lambda / exec-style payloads.
Built for non-technical teammates first — specialists get details below the fold.
Risk level: No serious problems found.
Python 3.14 · CustomTkinter · huggingface_hub
cd SafeWeights
python -m pip install -r requirements.txt
python main.py
Login uses the Hugging Face device link (same idea as hf auth login). Then pull a model ID, scan, and export the Markdown report.