Resources / Reviewing Changes for Security
Guide 7 min read

Reviewing Changes for Security

Check a change for likely security problems with Stride Security Review, by hand or automatically when a task lists security considerations, and read the verdicts a reviewer sees, in Claude Code, GitHub Copilot CLI, Gemini CLI, Codex CLI or OpenCode.

1

What Stride Security Review Does

Stride Security Review is a companion plugin that checks a change, or a set of files, for likely security problems: injection, gaps in authentication and authorization, data exposure such as secrets in logs, weak cryptography, missing input validation, cross-site scripting and code execution, insecure configuration, and supply-chain risks such as unpinned dependencies. In code that calls an LLM or an agent, it also looks for prompt injection and tool abuse. It reasons about what the code does rather than matching patterns, and leaves out low-impact noise.

You can use it two ways: run it yourself on what you've changed, or let the Stride workflow run it for a task that lists security considerations. It is separate from the Stride plugin that works tasks, which Installing the Stride Plugin covers, and the automatic review needs both.

Its findings are advice. It reports likely issues for a person to check: it can miss a problem, and it can flag one that isn't there. The stride-security-review repository is the full reference, and the commands in this guide are copied from it and from each port's README.

2

Installing in Claude Code

In Claude Code, add the Stride marketplace if you haven't already, then install the plugin from it:

/plugin marketplace add cheezy/stride-marketplace
/plugin install stride-security-review@stride-marketplace

Its command is /stride-security-review:security-review. Type the full name: Claude Code has a built-in /security-review of its own, a simpler review that ignores this plugin's options.

3

Installing in Other Runtimes

Four other runtimes have a Security Review port. In GitHub Copilot CLI, install the plugin from its repository:

copilot plugin install https://github.com/cheezy/stride-copilot-security-review

Copilot has skills rather than commands: ask it to activate security-review-essentials (stride-copilot-security-review).

In Gemini CLI, install the extension with gemini extensions install https://github.com/cheezy/stride-gemini-security-review, then run /security-review. Its README explains starting Gemini CLI with --include-directories so the reviewer can read its rule files (stride-gemini-security-review).

The Codex CLI port comes with an installer script. To install it for every project, or into the current project only:

curl -fsSL https://raw.githubusercontent.com/cheezy/stride-codex-security-review/main/install.sh | bash
curl -fsSL https://raw.githubusercontent.com/cheezy/stride-codex-security-review/main/install.sh | bash -s -- --project

On Windows, run irm https://raw.githubusercontent.com/cheezy/stride-codex-security-review/main/install.ps1 | iex in PowerShell. Read a script before you pipe it into a shell. Codex has no slash commands: ask it to activate the stride-security-review skill (stride-codex-security-review).

For OpenCode, clone the repository and run its installer from your project, adding --global to install it for every project:

git clone https://github.com/cheezy/stride-opencode-security-review.git
./stride-opencode-security-review/install.sh

Then run /security-review (stride-opencode-security-review).

Pi has no Security Review port.

4

Running a Review by Hand

With no arguments, the command reviews your uncommitted changes, staged or not, against the last commit. It only sees files git already tracks: a new file you haven't added isn't reviewed, so run git add on it first. Name files or folders to review only those, or pass --full to review every tracked file, which suits a first look at an existing project but takes longer:

/stride-security-review:security-review
/stride-security-review:security-review lib/auth.ex
/stride-security-review:security-review --full

In Gemini CLI and OpenCode, put the same arguments after /security-review. In Copilot and Codex, give them when you ask for the skill.

Run it before you push or open a pull request, and especially on a change that touches signing in, permissions, user input, secrets, database queries or shell commands.

5

Reading the Report

The report opens with the number of findings and a count for each severity:

Security review — 1 finding across 2 files
Critical: 0   High: 1   Medium: 0   Low: 0   Info: 0

The findings follow, most severe first. Each one names its kind, such as injection or data exposure, the file and line, how confident the reviewer is (high, medium or low), the CWE and OWASP entries when there are any, what is wrong, and a suggested fix. When there is nothing to review it says no security-relevant changes were detected, and a clean review says No findings. with the number of files it read.

The command shows every finding its reviewer returns and leaves the decision to you. Check each one against the code before you change anything, and read a clean report as nothing found, not as proof that the change is safe.

6

When the Stride Workflow Runs It

When the Stride plugin works a task whose Security considerations list isn't empty, and Security Review is installed in the same runtime, the workflow runs it during the review before the task is completed. A list that holds only a placeholder such as None doesn't count. This works in Claude Code, GitHub Copilot CLI, Gemini CLI, Codex CLI and OpenCode.

The security reviewer gets the change and each consideration, and answers mitigated, partial or unmitigated for each one, with its evidence. Then:

  • a consideration that isn't mitigated, or a finding of medium severity or higher, becomes a security issue in the review
  • a security issue fails the review's security considerations verdict and sends the agent back to fix the change and review it again, so a partial or unmitigated consideration blocks the task from being completed
  • low and info findings go in the task's completion notes instead
  • a missing or unreadable answer counts as not mitigated, never as a pass

Without the plugin, the agent's own reviewer still gives a verdict on the considerations, without a separate answer for each one.

The Stride plugin reads your API token from .stride_auth.md: add it to .gitignore and never commit it, as Configuring API Authentication shows.

7

What a Reviewer Sees

Open the Review queue and select the task. Its Security considerations section shows the review's verdict, passed or failed, with the reviewer's note. If the task listed considerations but the review recorded no verdict, the section says they were not assessed.

When Security Review ran, each consideration has its own row, marked Mitigated, Partial or Unmitigated, with the evidence beneath it, often a file and line. A task reviewed without the plugin shows the verdict with no rows.

Because a partial or unmitigated consideration sends the agent back, a task waiting in the queue normally shows every row Mitigated. If you see Partial or Unmitigated, or not assessed, use Request changes. A Mitigated row is the reviewer's judgement, not proof: check its evidence in the diff before you approve, as Reviewing Completed Work describes.

In the picture, the task's one consideration is Mitigated, with the file and line that show it.

Step 7: What a Reviewer Sees
8

On the Task Detail Page

The task's own page doesn't show the verdict for each consideration; the Review queue does.

Its Review report lists the review's issues under Critical, Important and Minor, and an issue the security review raised starts with Security. If the task listed considerations but the review didn't assess them, a warning at the top of the report names Security considerations.

The task's own list of security considerations shows when its Security Considerations toggle is on under Field visibility in the board's settings. Reading a Task's Details shows where.

In the picture, the review report of a task with one security consideration shows the review's summary and No issues, and no verdict for the consideration.

Step 8: On the Task Detail Page

You're all set!

You've completed all the steps in this guide.