| title | Security Best Practices |
|---|---|
| inclusion | always |
- Never hardcode secrets, API keys, or passwords
- Use environment variables for configuration
- Validate all user inputs
- Use parameterized queries to prevent SQL injection
- Implement proper authentication and authorization
- Keep dependencies updated
- Use dependency scanning tools
- Review third-party packages before adding
- Use lock files (package-lock.json, poetry.lock)
- Remove unused dependencies
- Encrypt sensitive data at rest and in transit
- Use HTTPS for all web communications
- Implement proper session management
- Use secure headers (HSTS, CSP, etc.)
- Follow OWASP guidelines
- Use least privilege principle for IAM
- Enable logging and monitoring
- Use network segmentation
- Implement proper backup strategies
- Regular security audits and penetration testing
- Use static code analysis tools
- Implement security testing in CI/CD
- Code reviews for security issues
- Security training for developers
- Incident response procedures