Accept user file uploads without introducing remote code execution, stored XSS, or polyglot attacks. Covers magic-byte validation, strict type allowlists, image re-encoding to defang embedded payloads, EXIF stripping, virus scanning, path-safe storage keys, and serving via a separate origin with Content-Disposition. Invoke when adding upload to a new endpoint or migrating from local-disk storage to object storage.
$npx -y skills add goldenwing-360/claude-security-skills --skill file-upload-securityInstalls into the current project.
Run `npx skills use "https://github.com/goldenwing-360/claude-security-skills" --skill "goldenwing-360/claude-security-skills/file-upload-security"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/goldenwing-360/claude-security-skills" that are relevant to the current task. Run `npx skills add "https://github.com/goldenwing-360/claude-security-skills"` and select the relevant skills, then follow their instructions.