security-checklist

Zate 的头像作者 Zate

安全检查清单,涵盖OWASP十大安全风险、身份验证、授权、数据保护和安全编码实践。代码审查或安全评估期间使用。

📖 中文导读:安全检查清单,涵盖OWASP十大安全风险、身份验证、授权、数据保护和安全编码实践。代码审查或安全评估期间使用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: security-checklist description: This skill should be used for OWASP, security review, authentication, XSS, SQL injection prevention, CSRF, input validation, secure coding, vulnerability scanning whenToUse: Security review, auth security, vulnerability prevention, input validation, secure coding, OWASP Top 10, penetration testing prep, security audit whenNotToUse: Non-security code review, general code quality seeAlso:

  • skill: api-design when: securing API endpoints
  • skill: database-patterns when: SQL injection prevention

Security Checklist

Security review checklist based on OWASP Top 10.

Input Validation

  • Validate all user input
  • Use parameterized queries (no SQL concat)
  • Sanitize HTML output (prevent XSS)
  • Validate file uploads (type, size)

Authentication

  • Hash passwords (bcrypt, argon2)
  • Use secure session management
  • Implement rate limiting
  • Require strong passwords

Authorization

  • Check permissions on every request
  • Use principle of least privilege
  • Validate ownership of resources

Data Protection

  • Use HTTPS everywhere
  • Don't log sensitive data
  • Encrypt sensitive data at rest
  • No secrets in source code

Headers

Content-Security-Policy: default-src 'self'
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
Strict-Transport-Security: max-age=31536000

Common Vulnerabilities

Vuln Prevention
SQL Injection Parameterized queries
XSS Output encoding
CSRF CSRF tokens
Secrets Environment variables