搜索

PythonReactSEOPDF
GitHub Skill

security-review

This skill should be used when the user asks to "security review", "check for vulnerabilities", "audit security", "find security issues", "security scan", "check for injection", "find hardcoded secrets", "OWASP check", or mentions reviewing code specifically for security concerns.

JesseNaranjo☆ 1 仓库 Stars0 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Security Code Review Skill

Identify vulnerabilities, insecure coding patterns, and security misconfigurations through targeted security-focused code review.

Agent Configuration

Uses security-agent (Opus in thorough mode, Sonnet in gaps mode). See ${CLAUDE_PLUGIN_ROOT}/shared/review-workflow.md for authoritative model configuration.

Security Categories Checked

Injection Vulnerabilities (Critical):

  • SQL injection via string concatenation
  • Command injection through shell execution
  • XSS via unescaped HTML output
  • Template injection, LDAP injection

Authentication & Authorization (Critical):

  • Missing authentication on endpoints
  • Broken access control (IDOR)
  • Session management weaknesses
  • Missing CSRF protection

Sensitive Data Exposure (Critical):

  • Hardcoded secrets, API keys, passwords
  • Sensitive data in logs
  • Unencrypted data transmission
  • Excessive data exposure in APIs

Cryptographic Issues (Major):

  • Weak hashing (MD5, SHA1 for passwords)
  • Insecure random number generation
  • Missing encryption for sensitive data

Input Validation (Major):

  • Path traversal vulnerabilities
  • ReDoS (regex denial of service)
  • Unsafe deserialization
  • Missing input sanitization

Auto-Validated Patterns

High-confidence patterns that skip validation. For full definitions with regex patterns, see ${CLAUDE_PLUGIN_ROOT}/shared/validation-rules.md.

Security patterns: hardcoded_password, hardcoded_api_key, hardcoded_token, hardcoded_secret, hardcoded_credentials, sql_injection_concat, sql_injection_template, eval_untrusted, new_function_untrusted


Scope Prioritization

When reviewing directories, automatically prioritize:

  • Files with "auth", "login", "password", "api", "db" in names
  • Configuration files (config/*.ts, appsettings.json)
  • Environment handling (.env.example, environment loading code)
  • Middleware and interceptor definitions

False Positives

Apply all rules from ${CLAUDE_PLUGIN_ROOT}/shared/false-positives.md.

Security-specific additions - do NOT flag:

  • Placeholder values ("changeme", "TODO")
  • Vulnerabilities explicitly mitigated elsewhere (documented upstream protection)

OWASP Top 10 Quick Reference

For OWASP Top 10 reference, see references/owasp-reference.md.


Example Output

See examples/example-output.md for a sample showing:

  • SQL injection finding with diff fix
  • Hardcoded API key with prompt fix
  • Missing rate limiting with prompt fix

Related Components

See ${CLAUDE_PLUGIN_ROOT}/agents/security-agent.md for the agent definition.

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-01-26
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!