model-security-scanning
/model-security-scanning
Scan AI models for malicious elements before loading in inference engines. Use when building or reviewing inference engines, model loading pipelines, or model distribution systems.
- Author
- redhatproductsecurity ↗
- Repository
- prodsec-skills ↗
- Licence
- Apache-2.0
- Last repository change
- 15.07.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 15.07.2026, without references to retired models or APIs.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
What it does and when to use it
Scan AI models for malicious elements before loading in inference engines. Use when building or reviewing inference engines, model loading pipelines, or model distribution systems.
Original author description
Scan AI models for malicious elements before loading in inference engines. Use when building or reviewing inference engines, model loading pipelines, or model distribution systems.
How it works
- Security Recommendation
- Threats Detected by Scanning
- Unsafe Weight Formats
- Implementation Checklist
SKILL.md preview
--- name: model-security-scanning description: Scan AI models for malicious elements before loading in inference engines. Use when building or reviewing inference engines, model loading pipelines, or model distribution systems. category: "secure_development" subcategory: "inference-engine" --- # Model Security Scanning in Inference Engines ## Security Recommendation Inference engines SHOULD scan models for malicious elements before loading them. This is a defense-in-depth control that complements signature verification. ## Threats Detected by Scanning | Threat | Description | |---|---| | **Malicious code in weights** | Some weight formats (e.g., Python pickle) can embed arbitrary executable code | | **Backdoored models** | Models with hidden behaviors triggered by specific inputs | | **Embedded scripts** | Configuration files or metadata containing executable payloads | | **Unsafe serialization formats** | Formats that execute code during deserialization | ## Unsafe Weight Formats The inference engine SHOULD advise against or refuse to load weight formats that can include malicious code: | Format | Risk Level | Recommendation | |---|---|---| | **Python pickle** (`.pkl`, `.pickle`) | High | Avoid; can execute arbitrary Python code on load | | **PyTorch legacy** (`.pt`, `.pth` using pickle) | High | Prefer SafeTensors format instead | | **SafeTensors** (`.safetensors`) | Low | Preferred; no code execution during deserialization | | **GGUF** | Low | Safe format for quantized models | | **ONNX** | Medium | Generally safe but verify custom operators | ## Implementation Checklist - [ ] Implement model scanning in the model loading pipeline - [ ] Detect and flag unsafe serialization formats (pickle-based weights) - [ ] Prefer SafeTensors or other safe formats; warn or block unsafe formats - [ ] Scan model metadata and configuration files for embedded scripts - [ ] Log scanning results as security events - [ ] Allow security teams to configure scanning policies (warn vs. block) - [ ] Integrate with model registry scanning if available
Versions
The database has no other skills named model-security-scanning.
Database snapshot: 13.11.2026 · package version 1d9c5120bb7d (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100model-signature-verification
Verify model signatures before loading in inference engines. Use when building, configuring, or reviewing inference engines that load AI models, or when designing model distribution pipelines. - 100model-registry-model-security-scanning
Scan models for malicious code in model registries. Use when building, configuring, or reviewing model registry security, model ingestion pipelines, or model validation workflows. - 100scanning-database-security
Process use when you need to work with security and compliance. This skill provides security scanning and vulnerability detection with comprehensive guidance and automation. Trigger with phrases like "scan for vulnerabilities", "implement security controls", or "audit security". - 100scanning-database-security
Process use when you need to work with security and compliance. This skill provides security scanning and vulnerability detection with comprehensive guidance and automation. Trigger with phrases like "scan for vulnerabilities", "implement security controls", or "audit security". - 100scanning-container-security
Execute use when you need to work with security and compliance. This skill provides security scanning and vulnerability detection with comprehensive guidance and automation. Trigger with phrases like "scan for vulnerabilities", "implement security controls", or "audit security". - 100scanning-container-security
Execute use when you need to work with security and compliance. This skill provides security scanning and vulnerability detection with comprehensive guidance and automation. Trigger with phrases like "scan for vulnerabilities", "implement security controls", or "audit security".