mcpbeat Sign in

Security Review Skill for Claude

AI-powered security vulnerability detection. Use PROACTIVELY after writing code that handles user input, authentication, API endpoints, payments, or sensitive data. Flags OWASP Top 10 issues with diff-aware scanning.

970 tokens
context cost
the whole folder, loaded on every use
1
files
instructions only
0
copies elsewhere
how many repositories repackaged it
112
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/selmakcby/claude-agents-skills --skill security-review

The instruction itself

18 sections, as written by the author

<!--

Source: anthropics/claude-code-security-review (official)

File: https://github.com/anthropics/claude-code-security-review/blob/main/.claude/commands/security-review.md

Used by: reviewer agent

-->

Security Review

When to trigger

  • After writing code touching auth, payments, API endpoints, file I/O, or user input
  • Before commit on security-sensitive changes
  • When user asks /security-review

Scanning mode

Diff-aware: only analyze changed files in the current PR/commit.

Focus on real vulnerabilities — filter out false positives aggressively.

What to check (OWASP Top 10 mapping)

1. Injection

  • SQL injection → parameterized queries?
  • NoSQL injection → $where clauses, user-controlled operators?
  • Command injection → exec() with user input?
  • Prompt injection (AI-specific) → user input flowing into system prompts?

2. Broken authentication

  • Missing auth checks on protected routes
  • Weak password hashing (bcrypt/argon2 required)
  • JWT misuse — missing signature verification, weak secrets, none algorithm accepted
  • Session fixation, missing session rotation on login

3. Sensitive data exposure

  • Hardcoded secrets in code
  • API keys in client bundles (import in "use client" components)
  • PII in logs
  • Missing HTTPS enforcement
  • Secrets in error messages

4. XML/XXE

  • XML parsers with external entity processing enabled

5. Broken access control

  • Missing authorization (authenticated but not authorized)
  • IDOR (accessing other users' data by changing an ID)
  • Privilege escalation paths

6. Security misconfiguration

  • Default credentials
  • Debug endpoints exposed in prod
  • Missing security headers (CSP, HSTS, X-Frame-Options)

7. XSS

  • dangerouslySetInnerHTML with user input
  • Rendering LLM output without sanitization
  • URL parameters reflected without escaping

8. Insecure deserialization

  • JSON.parse with user-controlled content (usually fine in JS, but watch for prototype pollution)

9. Using components with known vulnerabilities

  • Run npm audit mentally — are any flagged deps in critical paths?

10. Insufficient logging

  • Security events unlogged (failed logins, permission denials)
  • Overlogging (logging PII, tokens, passwords)

AI-specific checks

  • Webhooks: signature verification present? (Stripe, GitHub, etc.)
  • Rate limiting: on public endpoints? On AI endpoints especially?
  • Input length: max length on LLM inputs?
  • Output validation: Zod schema on LLM responses before rendering?
  • CORS / CSRF: properly configured for auth endpoints?

Severity (same as code-review)

  • CRITICAL — exposed secret, missing auth, unverified webhook, SQL injection, missing rate limit on AI endpoint
  • HIGH — missing input validation, weak crypto
  • MEDIUM — logging gaps, overly verbose errors
  • LOW — defense-in-depth suggestions

Output format

## CRITICAL
- [`<file>:<line>`] <vulnerability> (OWASP: <category>)
  - Impact: <what an attacker could do>
  - Fix: <specific mitigation>

## HIGH / MEDIUM / LOW
- ...

## Verdict
PASS | BLOCK (CRITICAL count: N)

Rules

  • Never hand-wave. "This might be a risk" is not enough — say if it is or isn't, with evidence.
  • Every finding: severity, OWASP category, file + line, attacker scenario, specific fix.
  • Rotate suspected exposed secrets immediately and flag at top of report.
  • False positives are worse than no review — if you're not sure, don't flag it.
  • AI endpoints get extra scrutiny — token limits, output sanitization, rate limits.

Other skills for the same job

different authors, same section of the catalogue
Backend Security Coder
by ComeOnOliver
×2

Expert in secure backend coding practices specializing in input validation, authentication, and API security. Use PROACTIVELY for backend security implementations or security code reviews.

5k tokens
Cloud Penetration Testing
by ComeOnOliver
×2

This skill should be used when the user asks to "perform cloud penetration testing", "assess Azure or AWS or GCP security", "enumerate cloud resources", "exploit cloud misconfigurations", "test O365 security", "extract secrets from cloud environments", or "audit cloud infrastructure". It provides comprehensive techniques for security assessment across major cloud platforms.

16k tokens
Codebase Cleanup Deps Audit
by ComeOnOliver
×2

You are a dependency security expert specializing in vulnerability scanning, license compliance, and supply chain security. Analyze project dependencies for known vulnerabilities, licensing issues, outdated packages, and provide actionable remediation strategies.

10k tokens
Flow Nexus Platform
by ComeOnOliver
×2

Comprehensive Flow Nexus platform management - authentication, sandboxes, app deployment, payments, and challenges

14k tokens
Linux Privilege Escalation
by ComeOnOliver
×2

This skill should be used when the user asks to "escalate privileges on Linux", "find privesc vectors on Linux systems", "exploit sudo misconfigurations", "abuse SUID binaries", "exploit cron jobs for root access", "enumerate Linux systems for privilege escalation", or "gain root access from low-privilege shell". It provides comprehensive techniques for identifying and exploiting privilege escalation paths on Linux systems.

8k tokens
Malware Analyst
by ComeOnOliver
×2

Expert malware analyst specializing in defensive malware research, threat intelligence, and incident response. Masters sandbox analysis, behavioral analysis, and malware family identification. Handles static/dynamic analysis, unpacking, and IOC extraction. Use PROACTIVELY for malware triage, threat hunting, incident response, or security research.

4k tokens
Metasploit Framework
by ComeOnOliver
×2

This skill should be used when the user asks to "use Metasploit for penetration testing", "exploit vulnerabilities with msfconsole", "create payloads with msfvenom", "perform post-exploitation", "use auxiliary modules for scanning", or "develop custom exploits". It provides comprehensive guidance for leveraging the Metasploit Framework in security assessments.

7k tokens
Mobile Security Coder
by ComeOnOliver
×2

Expert in secure mobile coding practices specializing in input validation, WebView security, and mobile-specific security patterns. Use PROACTIVELY for mobile security implementations or mobile security code reviews.

6k tokens

How to use it

Copy the folder

Take selmakcby/security-review from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.