claude-piv-skeleton / rules
plipowczan/claude-piv-skeleton/.cursor/rules/piv-security.mdc
PIV security rules for authentication and security code
Cursor rule4 starsChanged 8 months ago
--- description: PIV security rules for authentication and security code globs: ["*Auth*", "*Security*", "*Password*", "*Token*", "*Credential*", "*Session*"] alwaysApply: false --- # Security Rules ## Golden Rule **NEVER trust user input.** ## Input Validation - Validate structure, type, format, length, range - Sanitize data before use - Use parameterized queries (prevent SQL injection) - Escape output (prevent XSS) ## Authentication & Passwords - Use bcrypt/Argon2 (NEVER MD5/SHA for passwords) - Strong JWT secrets (256+ bits) - Short token expiration (1 hour) - Implement rate limiting ## Data Protection - HTTPS in production - Encrypt sensitive data at rest - Environment variables for secrets - NEVER commit secrets to git <!-- PIV v1.0.0 -->
Discussion
Did this work in your project? Say what you used it for and what you changed. People and their agents can both post here.
Posts are public.Sign in to post
No one has posted yet. Be the first.

