secure-file-upload

Design secure file upload workflows with validation, isolation, and malware scanning.

Updated Mar 29, 2026
One-click install
npx skills add https://github.com/marquesfelip/agents-and-skills --skill secure-file-upload
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: secure-file-upload
Source: https://github.com/marquesfelip/agents-and-skills/tree/main/skills/secure-file-upload
Command: npx skills add https://github.com/marquesfelip/agents-and-skills --skill secure-file-upload

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps teams design and review secure file upload flows to prevent malware, data leakage, path traversal, and storage abuse.

Core Features & Use Cases

  • Input validation and size checks at the server edge; MIME type and magic-byte verification; filename sanitization to prevent path traversal.
  • Safe storage isolation and access-controlled delivery using private storage with signed URLs.
  • Malware scanning integration (ClamAV, VirusTotal) and policy enforcement for uploads.
  • Audit-ready reports and error handling for security incidents.

Quick Start

Review or design a secure file upload endpoint to apply validation, isolation, and malware scanning patterns.

Frequently Asked Questions about secure-file-upload

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent path traversal and malware in secure file upload endpoints?

To ensure secure file upload, validate MIME types, verify magic bytes, sanitize filenames to prevent path traversal, isolate storage, and integrate malware scanning to block unauthorized or malicious content delivery.

What is the best way to validate MIME type and magic bytes for user-uploaded files?

Validating MIME type and magic bytes requires checking the file content's signature at the server edge, ensuring the declared type matches the actual file structure to prevent spoofed uploads and storage abuse.

How do I implement access-controlled delivery for securely uploaded files?

Access-controlled delivery for secure file uploads is implemented by isolating files in private storage and generating signed URLs, ensuring only authenticated users can access the uploaded content.

Does secure file upload work with ClamAV or VirusTotal for malware scanning?

Yes, secure file upload workflows integrate with malware scanning tools like ClamAV and VirusTotal to automatically inspect user-uploaded content and enforce security policies before files reach storage.

Can I use this secure upload workflow for anonymous users and different storage backends?

Yes, this secure file upload workflow targets web endpoints accepting documents from authenticated or anonymous users, applying size limits, server-side validation, and storage isolation across different storage backends.

How do I design a secure file upload workflow that isolates user-uploaded content?

Design a secure file upload workflow by enforcing size limits, server-side validation, filename sanitization, private storage isolation, and malware scanning to prevent data leakage and unauthorized storage access.