Guides
AI stack
What the scan checks in MCP configs, model files and model-loading code.
The scan lists the AI parts of the project (LLM APIs, agent frameworks, vector databases, ML frameworks, MCP SDKs, MCP servers and model files) and flags:
| Check | Severity | What it finds |
|---|---|---|
model-code-execution | Critical | Pickle-based model files (.pkl, .pt, .pth, .bin, .ckpt, .joblib) that import os, subprocess, eval and similar, so loading them runs code. Files are parsed, never loaded. |
mcp-hardcoded-secret | High | API keys and tokens written into MCP configs (env, headers, arguments, URLs) instead of referenced from the environment |
mcp-insecure-transport | High | Remote MCP servers over plain http:// |
mcp-unsafe-container | High | MCP servers run with --privileged, host networking, the Docker socket or the host root mounted |
mcp-remote-script | High | MCP servers started with curl ... | sh |
code-dangerous-deserialization | High | allow_dangerous_deserialization=True (LangChain) |
model-keras-lambda | High / Medium | Keras models with Lambda layers, which run embedded Python |
mcp-unpinned-package | Medium | MCP servers run through npx, uvx, pipx or docker without a pinned version, or with @latest |
code-trust-remote-code | Medium | trust_remote_code=True (Hugging Face Transformers) |
code-unsafe-torch-load | Medium | torch.load(..., weights_only=False) |
model-unverified | Medium | Pickle model files that couldn't be fully parsed |
model-pickle-format | Low | Other pickle-based model files; safetensors can't run code |
MCP configs are read from .mcp.json (Claude Code), .cursor/mcp.json, .vscode/mcp.json, mcp_config.json (Windsurf), claude_desktop_config.json and .gemini/settings.json. Secrets are never printed. Config, model and code checks run on directories and files; for container images only the package inventory is reported.
Skip these checks with --no-ai.