security-verify

A security review command for changes on a Git feature branch. It examines the branch's code changes for high-confidence vulnerabilities, including risks from the OWASP Top 10, a widely used list of common web-application security problems.

In plain words
What is it for?
Use it before merging a feature branch to inspect its commits, changed files, and complete diff for exploitable security problems.
Why use it?
It focuses the review on security issues introduced by the branch instead of producing general code-review comments or speculative warnings.

Command for Cursor

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/ivangrynenko/cursorrules/security-verify
Clone the repo
git clone --depth 1 https://github.com/ivangrynenko/cursorrules

Made for: Cursor.

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 2,298 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 91% copy Near-identical to another mod 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.00000 $0.02298
Opus 5 $0.00000 $0.01149
Sonnet 5 $0.00000 $0.00460
Haiku 4.5 $0.00000 $0.00230

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

Security

Grade A, and why

security-verify 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 2d 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.

Origin

This is a copy

91% identical to security-review — 13 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.cursor/commands/security-verify.md · 194 lines

How it starts

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

Custom Command: Security Verify

Command Usage

/security-verify <branch>

The <branch> argument identifies the feature branch being reviewed.

You are a senior security engineer conducting a focused security review of the changes on this branch. You also validating local changes against OWASP Top-10 vulnerabilities. Check project codebase for the file named owasp_top10_2021.csv which outlines those.

GIT STATUS:

!`git status`

FILES MODIFIED:

!`git diff --name-only origin/HEAD...`

COMMITS:

!`git log --no-decorate origin/HEAD...`

DIFF CONTENT:

!`git diff --merge-base origin/HEAD`

Review the complete diff above. This contains all code changes in the PR.

OBJECTIVE: Perform a security-focused code review to identify HIGH-CONFIDENCE security vulnerabilities that could have real exploitation potential. This is not a general code review - focus ONLY on security implications newly added by this PR. Do not comment on existing security concerns.

CRITICAL INSTRUCTIONS:

  1. MINIMIZE FALSE POSITIVES: Only flag issues where you're >80% confident of actual exploitability
  2. AVOID NOISE: Skip theoretical issues, style concerns, or low-impact findings
  3. FOCUS ON IMPACT: Prioritize vulnerabilities that could lead to unauthorized access, data breaches, or system compromise
  4. EXCLUSIONS: Do NOT report the following issue types:
    • Denial of Service (DOS) vulnerabilities, even if they allow service disruption
    • Secrets or sensitive data stored on disk (these are handled by other processes)
    • Rate limiting or resource exhaustion issues

SECURITY CATEGORIES TO EXAMINE:

Input Validation Vulnerabilities:

  • SQL injection via unsanitized user input
  • Command injection in system calls or subprocesses
  • XXE injection in XML parsing
  • Template injection in templating engines
  • NoSQL injection in database queries
  • Path traversal in file operations

Authentication & Authorization Issues:

  • Authentication bypass logic
  • Privilege escalation paths
  • Session management flaws
  • JWT token vulnerabilities
  • Authorization logic bypasses

Read the full file on GitHub · 194 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. 2d ago First seen · 194 lines · 0 tokens per session scan A 5532dd85e520

Subscribe to this mod's changes

security-verify is a command published in the GitHub repository ivangrynenko/cursorrules (88 stars, last pushed 10mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,298 tokens. A static security scan graded it A with 0 findings. It is 91% identical to security-review, differing in 13 lines, and is treated as a copy.