Skip to content
Skills Library
Security · Review & audit

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.

Licence
Apache-2.0
Last repository change
15.07.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 15.07.2026, without references to retired models or APIs.

Licence

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

  1. Security Recommendation
  2. Threats Detected by Scanning
  3. Unsafe Weight Formats
  4. Implementation Checklist
Original SKILL.md headings · 38 lines, 277 words
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".

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.