{"status":"success","data":{"id":486,"name":"ModelScan","slug":"modelscan","tagline":"Open-source ML model serialization scanner detecting unsafe deserialization and embedded code across PyTorch, Pickle, and Keras artifacts","tool_type":"tool","pricing_model":"open_source","license":"Apache-2.0","status":"active","maintenance_status":"active","platforms":["linux","macos","windows","docker"],"mitre_tactics":["TA0002: Execution","TA0001: Initial Access"],"github":{"stars":1650,"forks":145,"latest_release":"v0.8.4"},"rating":{"average":4.7,"count":28},"avg_rating":4.7,"rating_count":28,"view_count":2847,"categories":["Security Hardening","Malware Analysis","Offensive AI & LLM Security"],"tags":["Modelscan","Ml Security","Pickle Security","Ai Supply Chain","Safetensors"],"api_capabilities":{"json_metadata":true,"terminal_install":true,"ineligible_reason":null,"available_methods":["Python (pip)"],"endpoints":{"json":"https:\/\/toolwar.com\/api\/v1\/tools\/modelscan","install":"https:\/\/toolwar.com\/api\/v1\/tools\/modelscan\/install"}},"canonical_url":"https:\/\/toolwar.com\/tools\/modelscan","description":"## Overview & Engineering Philosophy\n\n**ModelScan** by Protect AI is a specialized supply-chain security scanner built to inspect serialized machine learning model files before loading them into inference or training runtimes. Formats such as Python `pickle`, PyTorch `.pt`\/`.bin`, TensorFlow `SavedModel`, and Keras `.h5` frequently permit arbitrary code evaluation during deserialization, creating supply-chain risk when organizations pull community checkpoints.\n\n---\n\n## Key Capabilities & Technical Highlights\n\n- **Multi-Format Coverage**: Inspects PyTorch, Pickle, TensorFlow SavedModel, Keras H5, and compressed model archives.\n- **Zero-Execution Static Inspection**: Analyzes bytecodes and unsafe operator imports (`os.system`, `eval`, `posix.system`) without actually loading or running the weights.\n- **CI\/CD & Registry Gates**: Emits structured JSON exit codes ready for GitHub Actions, GitLab CI, and MLOps model promotion pipelines.\n- **Custom Policy Exceptions**: Configurable TOML settings letting teams pin audited modules while blocking unexpected deserialization sinks.\n\n---\n\n## Defensive Architecture & Operational Deployment\n\nWhen integrating **ModelScan** across enterprise environments, DevSecOps pipelines, or security auditing workflows, engineering teams should establish robust operational guardrails:\n- **Principle of Least Privilege**: Execute all assessment tasks using dedicated service accounts or ephemeral execution tokens configured with the minimum necessary read and write permissions.\n- **Automated CI\/CD Quality Gates**: Pin tool versions and container digest hashes within continuous integration pipelines to prevent supply-chain drift and ensure reliable, deterministic compliance checks.\n- **Centralized Telemetry & Log Ingestion**: Stream structured scanner outputs, policy violations, and execution telemetry into unified SIEM dashboards and ticketing systems for rapid remediation tracking.\n- **Strict Scope Boundary Validation**: Enforce automated target verification filters to prevent accidental evaluation of third-party dependencies or external endpoints outside authorized audit scopes.\n\n---\n\n## Practical CLI Usage Examples\n\n```bash\nmodelscan -p .\/models\/candidate-checkpoint.pt\nmodelscan -p .\/model-registry\/ -r json -o modelscan-report.json\n```\n\n> Operate strictly on repositories, networks, and environments where you hold explicit written authorization.","official_url":"https:\/\/protectai.com\/modelscan","source_url":"https:\/\/github.com\/protectai\/modelscan","download_url":"https:\/\/github.com\/protectai\/modelscan\/releases","docs_url":"https:\/\/github.com\/protectai\/modelscan#readme","version":"v0.8.4","installation":{"Python (pip)":"pip install modelscan","Isolated Venv":"python3 -m venv venv-modelscan && source venv-modelscan\/bin\/activate && pip install modelscan"},"category_objects":[{"name":"Security Hardening","slug":"security-hardening"},{"name":"Malware Analysis","slug":"malware-analysis"},{"name":"Offensive AI & LLM Security","slug":"offensive-ai-llm-security"}],"collections":[{"name":"The AI Security Toolkit","slug":"the-ai-security-toolkit","url":"https:\/\/toolwar.com\/collections\/the-ai-security-toolkit"}],"last_verified_at":"2026-11-27T13:05:44+00:00"}}