secure-code-review

secure-code-review is a command for Claude Code from JoasASantos/ClaudeAdvancedPlugins. It costs 0 tokens per session (969 once invoked), scanned A, original, MIT.

A security-focused code review guide that checks application code for vulnerabilities, unsafe patterns, and missed security practices.

In plain words
What is it for?
Use it to review validation, password handling, sessions, permissions, API protection, file uploads, and other security-sensitive code.
Why use it?
It helps developers find problems such as weak input checks, unsafe authentication, and incorrect access controls before attackers can use them.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Good fit Use it to review validation, password handling, sessions, permissions, API protection, file uploads, and other security-sensitive code.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/joasasantos/claudeadvancedplugins/secure-code-review
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/JoasASantos/ClaudeAdvancedPlugins

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for secure-code-review

README.md
[![agentmods](https://agentmods.dev/badge/commands/joasasantos/claudeadvancedplugins/secure-code-review/github.svg)](https://agentmods.dev/commands/joasasantos/claudeadvancedplugins/secure-code-review)
Your own site
<a href="https://agentmods.dev/commands/joasasantos/claudeadvancedplugins/secure-code-review"><img src="https://agentmods.dev/badge/commands/joasasantos/claudeadvancedplugins/secure-code-review/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for secure-code-review

Your own site · 80×15
<a href="https://agentmods.dev/commands/joasasantos/claudeadvancedplugins/secure-code-review"><img src="https://agentmods.dev/badge/commands/joasasantos/claudeadvancedplugins/secure-code-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 969 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00969
Opus 5.5 $0.00000 $0.00388
Sonnet 5.5 $0.00000 $0.00194
Haiku 4.5 $0.00000 $0.00097

Measured 3mo ago against content hash c9026ab0619e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

secure-code-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/secure-code-review/commands/secure-code-review.md · 119 lines

How it starts

The opening of the file, as written. The whole thing — 119 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Secure Code Review Plugin

You are an expert application security engineer performing a thorough security-focused code review. Analyze code for vulnerabilities, insecure patterns, and security best practice violations.

Review Methodology

1. Input Validation & Sanitization

  • All user inputs validated on server side
  • Input length limits enforced
  • Input type checking and coercion
  • Allowlist validation preferred over denylist
  • File upload validation (type, size, content)
  • Path traversal prevention
  • Unicode and encoding attack prevention

2. Authentication & Session Management

  • Passwords hashed with bcrypt/scrypt/Argon2 (not MD5/SHA1)
  • Session tokens cryptographically random
  • Session timeout and invalidation
  • Multi-factor authentication implementation
  • Account lockout after failed attempts
  • Secure password reset flow
  • JWT implementation security (algorithm, expiration, signing)

3. Authorization & Access Control

  • Principle of least privilege applied
  • IDOR protection on all endpoints
  • Horizontal and vertical access control checks
  • Role-based or attribute-based access control
  • API endpoint authorization
  • File/resource access controls

4. Injection Prevention

  • Parameterized queries / prepared statements (SQL injection)
  • Output encoding for XSS prevention
  • Command injection prevention (avoid shell exec with user input)
  • LDAP injection prevention
  • Template injection prevention
  • Header injection prevention

5. Cryptography

  • Strong algorithms (AES-256, RSA-2048+, ECDSA)
  • No hardcoded keys or secrets
  • Proper key management and rotation
  • TLS 1.2+ enforced
  • Secure random number generation
  • No custom cryptography implementations

6. Error Handling & Logging

  • No sensitive data in error messages
  • No stack traces exposed to users
  • Security events logged (auth failures, access violations)
  • No sensitive data in logs (passwords, tokens, PII)
  • Log injection prevention
  • Proper exception handling (no catch-all swallowing)

Read the full file on GitHub · 119 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 119 lines · 0 tokens per session scan A c9026ab0619e

Subscribe to this mod's changes

secure-code-review is a command published in the GitHub repository JoasASantos/ClaudeAdvancedPlugins (162 stars, last pushed 9mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 969 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

secure-code-review compared with commands from other repositories

secure-code-review next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
secure-code-reviewJoasASantos/ClaudeAdvancedPluginsCommand1629mo agoMITA0Claude Code
review-branchdamusix/atomic-claudeCommand117yesterdayMITA35Claude Code
diff-reviewcoco-research/cocoCommand3232d agoApache-2.0A11Claude Code
spec-trace-requirementsrjmurillo/ai-agentsCommand50todayApache-2.0A0GitHub Copilot
merge-conflict-analysisrjmurillo/ai-agentsCommand50todayApache-2.0A0GitHub Copilot
initazrtydxb/procoderCommand21221d agoApache-2.0A16Claude Code
refactorRchGrav/claudeboxCommand1.2k2mo agoMITA9Claude Code