File protection

From RedHatProductSecurity/prodsec-skills · View interactive version

File protection is an AI agent skill from the GitHub repository RedHatProductSecurity/prodsec-skills. Protect LLM model files against unauthorized access and modification. Use when designing, deploying, or reviewing storage and access controls for AI model files and weights.

How to use this skill

Skill file

LLM File Protection

Security Requirement

Large Language Models are composed of files (weights, configuration, tokenizer, etc.) loaded by the inference engine. These files MUST be protected against unauthorized access and modification.

Risks of Unprotected Model Files

| Risk | Impact |

|---|---|

| Unauthorized access | Model theft, intellectual property loss |

| Unauthorized modification | Backdoored or poisoned model served to users |

| Tampering | Modified weights producing biased, harmful, or incorrect outputs |

| Data extraction | Extracting sensitive training data embedded in model weights |

Required Controls

| Control | Description |

|---|---|

| Access control | Only authorized users and services can read model files |

| Write protection | Only authorized pipelines can modify model files |

| Integrity verification | Detect unauthorized modifications via checksums or signatures |

| Encryption at rest | Encrypt model files on disk to protect against storage-level access |

| Audit logging | Log all access to model files |

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.