返回 Skill 列表
extension
分类: 开发与工程无需 API Key

security-lens

在代码审查和实现过程中应用安全意识。无需进行全面的安全审计即可发现常见漏洞。

person作者: jakexiaohubgithub

Security Awareness Lens

When reviewing or writing code, check for:

Input Handling

  • [ ] User input validated before use
  • [ ] SQL uses parameterized queries (never string concat)
  • [ ] HTML output escaped to prevent XSS
  • [ ] File paths validated (no path traversal)

Authentication/Authorization

  • [ ] Auth checks at controller level, not just UI
  • [ ] Sensitive operations re-verify permissions
  • [ ] Session tokens are httpOnly, secure, sameSite

Data Exposure

  • [ ] Logs don't contain secrets, tokens, PII
  • [ ] Error messages don't leak internal details
  • [ ] API responses don't include unnecessary fields

Secrets

  • [ ] No hardcoded credentials
  • [ ] Secrets from environment/vault, not config files
  • [ ] .gitignore covers .env, credentials

See @owasp-quick-ref.md for detailed vulnerability patterns.