File handling uploads

From RedHatProductSecurity/prodsec-skills · View interactive version

File handling uploads is an AI agent skill from the GitHub repository RedHatProductSecurity/prodsec-skills. Apply when reviewing or writing code that accepts file uploads, processes user-supplied files, or serves stored files. Covers extension validation, content verification, filename security, storage isolation, and scanning.

How to use this skill

Skill file

File Upload Security

Implement defense-in-depth for file uploads through multi-layered validation, secure storage, proper access controls, and monitoring. Never rely on a single validation method.

Extension Validation

Content Type and File Signature Validation

Filename Security

File Content Validation

Storage Security

Access Control and Authentication

Upload and Download Limits

Additional Security Measures

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.