Model Scanner
MCP server that scans ML model files (PyTorch, pickle, joblib, dill, NumPy, safetensors, Keras, ONNX, GGUF, TensorFlow) and Hugging Face repos for supply-chain risks — malicious pickle gadgets, disguised or malformed headers, Keras Lambda-layer RCE, GGUF chat-template injection, and graph ops that touch files

@guardbee/mcp-model-scanner scans the model artifact itself — not the code that loads it. A .pt/.pkl checkpoint is a pickle stream; torch.load() can run arbitrary Python the moment it opens the file.
What does it do?
It walks a real pickle opcode disassembler (protocols 0–5), extracts only data.pkl from PyTorch zip containers, and applies safetensors structural checks plus Keras Lambda RCE and ONNX external_data path-traversal heuristics.
Who is it for?
- ML teams pulling checkpoints from Hugging Face or registries
- DevSecOps scanning model artifacts in CI
- Developers who want this check inside Claude or Cursor
What it is not
- Dynamic runtime analysis by executing the model
- A full HDF5/protobuf structural parser
- A formal safety proof (findings are heuristic)
Features
| Feature | Description |
|---|---|
| 31 dangerous-global rules | code-execution, process, network, filesystem, reflection, deserialization |
| PyTorch zip + Zip64 | Scan data.pkl without loading the full checkpoint |
| safetensors / Keras / ONNX | Disguised extensions, Lambda RCE, path traversal |
| SARIF 2.1.0 | GitHub Code Scanning / CI gates |
| guardbee.yml | fail-on, max-files, exclude |
MCP tools
| Tool | Description |
|---|---|
scan_file | Scan a single model file |
scan_directory | Recursively scan a models directory |
list_patterns | List the dangerous-global catalog |
Install with npm
Global install (handy for Claude Desktop / Cursor):
<code class="language-bash">npm install -g @guardbee/mcp-model-scanner</code>or via npx (recommended with -y in config):
<code class="language-bash">npx -y @guardbee/mcp-model-scanner</code>npm: @guardbee/mcp-model-scanner
<code class="language-bash">npx @guardbee/mcp-model-scanner scan ./models --fail-on=high --format=sarif > results.sarif</code>Opt out of telemetry with GUARDBEE_TELEMETRY=0.
Claude Desktop configuration
Config file paths:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
Merge this block, then restart Claude Desktop:
<code class="language-json">{
"mcpServers": {
"guardbee-model-scanner": {
"command": "npx",
"args": [
"-y",
"@guardbee/mcp-model-scanner"
]
}
}
}</code>Cursor and other MCP clients
In Cursor, add the same command / args / env under Settings → MCP. stdio MCP servers use the same contract as Claude Desktop.
Example prompts in Claude
- “Scan this models folder for supply-chain risks: ./models”
- “Does this .pt file contain dangerous pickle globals?”
- “Which dangerous-global patterns do you support?”
Frequently asked questions
Vs picklescan?+
MCP + Claude/Cursor integration, safetensors/Keras/ONNX checks, and SARIF in one package.
Will huge files OOM?+
No — bounded reads (pickle prefix, zip entry, header caps) by design.
API key?+
No — fully local filesystem scanning.
More in this category
@guardbee/mcp-llm-redteam
LLM Red Team
MCP server that red-teams a live LLM endpoint or chatbot with canary-based jailbreak/extraction/obfuscation probes to test whether known bypass techniques defeat its guardrails
Learn more@guardbee/mcp-prompt-injection-scanner
Prompt Injection Scanner
Prompt injection scanner for documents, web pages and RAG content: instruction overrides, spoofed chat roles, hidden text and data-exfiltration attempts, as a CLI and an MCP server
Learn more@guardbee/mcp-prompt-leak-scanner
Prompt Leak Scanner
PII and secret leak scanner for LLM prompts: catches API keys, TC Kimlik No, cards and IBANs in outbound prompts before they leave your app; MCP server and reverse proxy
Learn more@guardbee/mcp-unbounded-consumption-auditor
Unbounded Consumption Auditor
MCP server that scans LLM/agent application code for Unbounded Consumption ("denial of wallet") anti-patterns from OWASP LLM Top 10 2025's LLM10 category: missing output token limits, missing timeouts on hand-rolled LLM HTTP calls, unbounded agent tool-calling/retry loops, explicitly disabled framework safety limits, and MCP tool handlers with no visible rate limiting
Learn more@guardbee/mcp-vector-store-scanner
Vector Store Scanner
MCP server that probes vector-database endpoints (Weaviate, Qdrant, Chroma, Elasticsearch/OpenSearch, Redis, Postgres/pgvector) for unauthenticated exposure of embeddings and RAG data
Learn more
See your security posture in minutes
Add your domain, run a read-only scan and get a prioritised list of fixes. No installation required.