secure-review

secure-review is a command for Claude Code from HermeticOrmus/LibreSecOps-Claude-Code. It costs 24 tokens per session (815 once invoked), scanned A, original, MIT.

A command for reviewing supplied code specifically for security vulnerabilities. It reports the risky code alongside a corrected version and can focus on a vulnerability type such as injection, authentication, or access control.

In plain words
What is it for?
Use it for pull requests, pre-deployment checks, existing-code audits, security fixes, or learning secure coding patterns from examples.
Why use it?
A normal code review may miss security problems that only appear at trust boundaries or in framework-specific behavior. This review makes those risks the central focus.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the secure-coding-practices plugin — 2 skills, 2 commands, 2 agents shipped together

Good fit Use it for pull requests, pre-deployment checks, existing-code audits, security fixes, or learning secure coding patterns from examples.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/hermeticormus/libresecops-claude-code/secure-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/HermeticOrmus/LibreSecOps-Claude-Code

Made for: Claude Code.

Or install secure-coding-practices, the plugin that ships this one along with the rest of its 2 skills, 2 commands, 2 agents.

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-review

README.md
[![agentmods](https://agentmods.dev/badge/commands/hermeticormus/libresecops-claude-code/secure-review/github.svg)](https://agentmods.dev/commands/hermeticormus/libresecops-claude-code/secure-review)
Your own site
<a href="https://agentmods.dev/commands/hermeticormus/libresecops-claude-code/secure-review"><img src="https://agentmods.dev/badge/commands/hermeticormus/libresecops-claude-code/secure-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-review

Your own site · 80×15
<a href="https://agentmods.dev/commands/hermeticormus/libresecops-claude-code/secure-review"><img src="https://agentmods.dev/badge/commands/hermeticormus/libresecops-claude-code/secure-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 815 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.00024 $0.00815
Opus 5.5 $0.00010 $0.00326
Sonnet 5.5 $0.00005 $0.00163
Haiku 4.5 $0.00002 $0.00081

Measured 12d ago against content hash 85405385b82e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

secure-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 12d 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-coding-practices/commands/secure-review.md · 110 lines

How it starts

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

/secure-review

Run a security-focused code review on provided code, identifying vulnerability patterns and producing findings with vulnerable and fixed code side by side.

Trigger

Use when reviewing code for security vulnerabilities. Appropriate for:

  • Pull request security review
  • Pre-deployment security checks
  • Security audit of existing code
  • Learning secure coding patterns by reviewing examples
  • Validating that a security fix is correct and complete

Input

  • Code to review: Source code files, snippets, or file paths. Can be a single function, a complete file, or multiple related files
  • Language/Framework: Auto-detected from code, but specify if ambiguous
  • Focus area (optional): Specific vulnerability class to focus on (e.g., "injection," "authentication," "access control"). If not specified, performs comprehensive review
  • Context (optional): Application purpose, deployment environment, data sensitivity level

Process

  1. Language and framework identification -- Determine the language, framework, and relevant security model (e.g., Django's built-in protections, Spring Security's filter chain)

  2. Trust boundary mapping -- Identify all points where untrusted data enters the code:

    • HTTP request parameters, headers, body, cookies
    • Database query results (may contain attacker-controlled data)
    • File contents, environment variables
    • Third-party API responses
    • Message queue payloads
  3. Sink analysis -- Identify security-sensitive operations:

    • Database queries (SQL/NoSQL injection)
    • HTML/template rendering (XSS)
    • Command execution (command injection)
    • File operations (path traversal, arbitrary file access)
    • Deserialization (RCE)
    • Cryptographic operations (weak crypto)
    • Authentication and authorization checks (bypass)
  4. Data flow tracing -- For each source-sink pair, trace the data flow and check for:

    • Proper validation at the trust boundary
    • Correct encoding/escaping for the output context
    • Parameterization for structured data contexts (SQL, LDAP)
    • Authorization checks before sensitive operations

Read the full file on GitHub · 110 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. 12d ago Changed · +5 lines · +24 tokens per session 85405385b82e
  2. 1mo ago First seen · 105 lines · 0 tokens per session scan A f36f0d8f1e81

Subscribe to this mod's changes

secure-review is a command published in the GitHub repository HermeticOrmus/LibreSecOps-Claude-Code (4 stars, last pushed 9d ago), licensed MIT. It adds 24 tokens to every session and 815 once invoked, about $0.0001 per session on Opus 5.5. 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-09-03.