catalog / Cybersecurity / ModelScan — ML Model Serialization Scanner
GuardrailCybersecurityFree

ModelScan — ML Model Serialization Scanner

ProtectAI's scanner that detects malicious payloads hidden inside pickle, PyTorch, TF, and Keras model files.

インストール数19k
⟳ upstream v0.8.8 · updated 6mo ago
ソースリポジトリ
! Grade B · 88/100 · ReviewSecurity assessment
No compromise signals14capabilities surfaced1known CVE7of 20 OWASP controls clear
Broad capability surfaceBroad capability surfaceVulnerable dependenciesExternal endpoints declared · expected
scanned 2mo agoosv · gitleaks · opengrep · picklescan + heuristicsfull breakdown in the Security tab ↓

ModelScan — ML Model Serialization Scanner

ModelScan, maintained by ProtectAI, scans ML model files for serialization attacks — one of the most underappreciated supply-chain risks in AI. A malicious .pkl, .pt, or .h5 file can execute arbitrary code on torch.load(). ModelScan flags these before they reach production.

Key features

  • Supports pickle, PyTorch (.pt/.pth), TensorFlow SavedModel, Keras .h5, NumPy, and more
  • CI/CD ready: exit code 1 on findings, JSON/text output
  • Zero false-positive safe-model passes (no benign ops blocked)
  • GitHub Action available
  • Integrates with Hugging Face Hub via the huggingface-hub audit CLI

Quick start

pip install modelscan
modelscan scan -p ./my_model.pkl
# Scan an HF model directly
modelscan scan --huggingface bert-base-uncased
npx ai-supply add modelscan-serialization-security

Curated mirror of the open-source ModelScan (Apache-2.0). Get it from the source.

More from @ai-supply

View profile →
Agent
MetaGPT
Multi-agent framework that assigns GPT roles (PM, engineer, QA) to solve complex software tasks end-to-end.
1.0M
Connector
vLLM
High-throughput, memory-efficient LLM inference engine with PagedAttention and continuous batching.
892k
Connector
Meilisearch
Lightning-fast open-source search engine with typo-tolerance, semantic hybrid search, and sub-50ms response times.
811k
Eval
Weights & Biases (wandb)
ML experiment tracking and visualization — log metrics, hyperparameters, models, and media in real time.
784k