HardenKitDocs
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:

CheckSeverityWhat it finds
model-code-executionCriticalPickle-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-secretHighAPI keys and tokens written into MCP configs (env, headers, arguments, URLs) instead of referenced from the environment
mcp-insecure-transportHighRemote MCP servers over plain http://
mcp-unsafe-containerHighMCP servers run with --privileged, host networking, the Docker socket or the host root mounted
mcp-remote-scriptHighMCP servers started with curl ... | sh
code-dangerous-deserializationHighallow_dangerous_deserialization=True (LangChain)
model-keras-lambdaHigh / MediumKeras models with Lambda layers, which run embedded Python
mcp-unpinned-packageMediumMCP servers run through npx, uvx, pipx or docker without a pinned version, or with @latest
code-trust-remote-codeMediumtrust_remote_code=True (Hugging Face Transformers)
code-unsafe-torch-loadMediumtorch.load(..., weights_only=False)
model-unverifiedMediumPickle model files that couldn't be fully parsed
model-pickle-formatLowOther 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.