security-review

security-review is a command for coding agents from cheezy/stride-security-review. It costs 28 tokens per session (12,236 once invoked), scanned A, original, MIT.

A command that checks the current Git changes for security problems. Git is a tool that records code changes; the review checks issues such as unsafe input, access control mistakes, exposed data, and insecure settings.

In plain words
What is it for?
Use it to review changed files, or scan the whole codebase with full mode. It helps inspect authentication, database queries, file uploads, redirects, rendered responses, and other security-sensitive code.
Why use it?
It helps find security risks before code is merged. For projects using AI agents or tool protocols, it also checks several risks specific to those systems.

Command

Part of the stride-security-review plugin — 1 skill, 1 command, 1 agent shipped together

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.

agentmods
npx agentmods add commands/cheezy/stride-security-review/security-review
Clone the repo
git clone --depth 1 https://github.com/cheezy/stride-security-review

Or install stride-security-review, the plugin that ships this one along with the rest of its 1 skill, 1 command, 1 agent.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/cheezy/stride-security-review/security-review.svg)](https://agentmods.dev/commands/cheezy/stride-security-review/security-review)
Your own site
<a href="https://agentmods.dev/commands/cheezy/stride-security-review/security-review"><img src="https://agentmods.dev/badge/commands/cheezy/stride-security-review/security-review.svg" alt="Measured on agentmods" height="20"></a>
Per session 28 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 12,236 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00028 $0.12236
Opus 5 $0.00014 $0.06118
Sonnet 5 $0.00006 $0.02447
Haiku 4.5 $0.00003 $0.01224

Measured 4d ago against content hash c60ff02cab61, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

security-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 4d 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.

commands/security-review.md · 446 lines

How it starts

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

Run an AI-powered security review of code changes in this repository. Detects vulnerabilities across injection, authentication/authorization, data exposure, cryptography, input validation, race conditions, XSS/code execution, insecure configuration, and supply chain. For codebases that integrate LLMs, AI agents, or Model Context Protocol clients, five additional MAESTRO-derived classes activate when a file imports a recognized LLM/agent/MCP SDK: prompt injection, tool abuse, agent trust boundary, model output execution, and vector store poisoning. Filters out low-impact noise (denial-of-service, rate-limiting, memory-exhaustion).

What to do

Follow these steps in order. Do NOT skip steps. The command is a pipeline: parse args → gather input → dispatch agent → render output.

Step 1: Parse arguments

The user invoked you with the arguments $ARGUMENTS. Treat them as a space-separated list and walk the tokens in any order:

  • If --full appears anywhere in the list, set FULL_MODE=true and remove that token from the list. Otherwise FULL_MODE=false. This selects between the two scan modes documented in the plugin README: diff (default) reviews working-tree changes against HEAD; full reviews tracked files end-to-end.
  • If --json appears anywhere in the list, set JSON_MODE=true and remove that token from the list. Otherwise JSON_MODE=false.
  • If --sarif appears anywhere in the list, set SARIF_MODE=true and remove that token from the list. Otherwise SARIF_MODE=false. This activates SARIF v2.1.0 output (see Step 5). --sarif and --json are MUTUALLY EXCLUSIVE: their top-level JSON shapes are incompatible (one is the agent's native schema, the other is the SARIF document). If both flags are present, run a final exit 2 via Bash with one stderr line --sarif and --json are mutually exclusive — do NOT proceed and do NOT pick one silently. When both flags are absent, output is the human-readable report.
  • If --maestro appears anywhere in the list, set MAESTRO_MODE=true and remove that token from the list. Otherwise MAESTRO_MODE=false. This activates MAESTRO 7-layer classification — each finding's JSON gains a maestro_layer field, and the human-readable output adds a "By MAESTRO layer" subsection grouping findings by architectural layer. When MAESTRO_MODE=false, the maestro_layer field MUST NOT appear in the JSON document (preserves byte-identical output for callers that don't opt in). See Cloud Security Alliance's MAESTRO framework for the seven-layer model.
  • If --rci appears, look at the NEXT token. If it parses as an integer of at least 1, consume it and set RCI_PASSES to the minimum of that value and 3 — out-of-range values are silently clamped to the cap of 3 (which bounds cost), never rejected. If the next token is missing, is not an integer, or is an integer less than 1 (zero or negative), do NOT consume it — leave it in the token list for the other bullets (so a path immediately following bare --rci is never eaten as a pass count) — and default RCI_PASSES=1. If --rci is absent, RCI_PASSES=0 (no recursive criticism, single dispatch as today). RCI = Recursive Criticism & Improvement: after the standard dispatch produces a findings document, run RCI_PASSES additional critique-and-refine dispatches that receive both the prior pass's JSON AND the original input, and asks the agent to drop false positives and surface anything that was missed. OpenSSF documents this technique as reducing security weaknesses by up to an order of magnitude. Combining --rci with --full is supported but expensive — N=2 over a 41-batch full scan is 41+82 = 123 agent dispatches. See Step 4.5 below for the iteration loop. Worked examples — every input shape has exactly one result:

Read the full file on GitHub · 446 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. 4d ago First seen · 446 lines · 28 tokens per session scan A c60ff02cab61

Subscribe to this mod's changes

security-review is a command published in the GitHub repository cheezy/stride-security-review (5 stars, last pushed 14d ago), licensed MIT. It adds 28 tokens to every session and 12,236 once invoked, about $0.0001 per session on Opus 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-08-31.