Model signature verification

From RedHatProductSecurity/prodsec-skills · View interactive version

Model signature verification is an AI agent skill from the GitHub repository RedHatProductSecurity/prodsec-skills. 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.

How to use this skill

Skill file

Model Signature Verification in Inference Engines

Security Recommendation

Before the inference engine loads and serves a model, it SHOULD verify the model's integrity by checking its cryptographic signature. This ensures the model has not been tampered with and comes from a trusted source.

What Signature Verification Provides

| Property | Description |

|---|---|

| Integrity | Confirms the model files have not been modified since signing |

| Provenance | Confirms the model was published by a trusted entity |

| Tamper detection | Detects unauthorized modifications to model weights or configuration |

| Supply chain security | Protects against compromised model distribution channels |

Verification Flow

1. Model is signed by the publisher using a private key
2. Signature and public key/certificate are distributed alongside the model
3. Before loading, inference engine:
   a. Retrieves the model's signature
   b. Retrieves the trusted public key or certificate
   c. Verifies the signature against the model files
   d. If verification fails: REFUSE to load the model and log a security event
   e. If verification succeeds: proceed to load

Implementation Checklist

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.