A software security skill that integrates with Project CodeGuard to help AI coding agents write secure code and prevent common vulnerabilities. Use this skill when writing, reviewing, or modifying code to ensure secure-by-default practices are followed.
rule_id: codeguard-0-file-handling-and-uploads
This rule advises on secure file upload practices to prevent malicious file attacks and protect system integrity:
Extension Validation
.jpg.php) and null byte injection (e.g., .php%00.jpg).Content Type and File Signature Validation
Filename Security
File Content Validation
Storage Security
Access Control and Authentication
Upload and Download Limits
Additional Security Measures
Summary:
Implement defense-in-depth for file uploads through multi-layered validation, secure storage practices, proper access controls, and comprehensive monitoring. Never rely on single validation methods and always generate safe filenames to prevent attacks.
tessl i cisco/software-security@1.2.2evals
scenario-11
scenario-12
scenario-13
scenario-14
scenario-15
rules