Rechercher

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 Étoiles du dépôt0 Forks du dépôt

Installation

Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.

Voir la source ↗Guides

Instructions

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.

Exemples

Consultez les exemples du dépôt source.

Voir la source ↗

Historique source

Date d’indexation
2026-01-20
Mise à jour de l’index
2026-01-26
Branch
main

Les dates concernent ce répertoire. Consultez le dépôt pour l’historique du code.

GitHub ↗

chat Comments (0)

chat_bubble_outline

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