ModelAudit is a static security scanner for model artifacts. It analyzes files and metadata without loading models into serving runtimes or executing embedded model code.
- Unsafe deserialization patterns in high-risk formats (for example pickle- and PyTorch-based artifacts)
- Suspicious code and command execution indicators in model payloads and metadata
- Archive abuse patterns (path traversal, symlink abuse, decompression abuse)
- Known malicious patterns and CVE-related indicators covered by existing scanner rules
- It does not prove a model is safe. A clean scan means "no known indicators were found," not "risk is zero."
- It does not execute model behavior, so runtime-only backdoors and environment-triggered logic may not be visible.
- It does not replace environment hardening (sandboxing, network controls, least privilege, egress controls).
- Coverage depends on file format support and installed optional dependencies.
- Artifacts may be untrusted, so scans should run in isolated CI runners or dedicated analysis environments.
- Security decisions should combine scan output with provenance checks (source trust, signatures, checksums, release process).
- High-risk findings should block promotion until reviewed and resolved.
modelaudit metadatadefaults to non-deserializing extraction for untrusted inputs.--trust-loadersmay deserialize model content and should only be used on trusted artifacts in isolated environments.
CRITICAL: High-confidence risk indicator. Block release/use by default.WARNING: Potential risk. Require manual review.INFO: Context signal. Useful for triage and audit trails.
Exit codes:
0: No issues found1: Issues found2: Scan error
- Scan artifacts before loading or serving them.
- Treat
CRITICALfindings as release blockers. - Keep scanner dependencies current (
modelaudit[all]for broadest coverage). - Pair scanning with provenance and runtime controls.
If you find a false negative or a false positive, report it with a reproducible sample as described in CONTRIBUTING.md.
For sensitive bypass details, use the private reporting flow in SECURITY.md.