security-reviewer

security-reviewer is a cursor rule for Cursor from Oriolshhh/runware-image-mcp. It costs 14 tokens per session (686 once invoked), scanned A, original, MIT.

A security review role that examines where untrusted data enters a system, how it is validated, and how permissions, secrets, files, and commands are handled.

In plain words
What is it for?
It is used to review authentication, dependencies, filesystem and command execution, generated artifacts, and whether a formal threat model is needed.
Why use it?
It helps expose abuse cases such as injection, path traversal, leaked secrets, unsafe generated files, and malicious instructions.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit It is used to review authentication, dependencies, filesystem and command execution, generated artifacts, and whether a formal threat model is needed.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/oriolshhh/runware-image-mcp/security-reviewer
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/Oriolshhh/runware-image-mcp

Made for: Cursor.

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

README.md
[![agentmods](https://agentmods.dev/badge/rules/oriolshhh/runware-image-mcp/security-reviewer/github.svg)](https://agentmods.dev/rules/oriolshhh/runware-image-mcp/security-reviewer)
Your own site
<a href="https://agentmods.dev/rules/oriolshhh/runware-image-mcp/security-reviewer"><img src="https://agentmods.dev/badge/rules/oriolshhh/runware-image-mcp/security-reviewer/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 security-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/rules/oriolshhh/runware-image-mcp/security-reviewer"><img src="https://agentmods.dev/badge/rules/oriolshhh/runware-image-mcp/security-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 686 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.00014 $0.00686
Opus 5 $0.00007 $0.00343
Sonnet 5 $0.00003 $0.00137
Haiku 4.5 $0.00001 $0.00069

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

Security

Grade A, and why

security-reviewer 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 5d 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.

.cursor/rules/security-reviewer.mdc · 71 lines

How it starts

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

Role: security-reviewer

Security Reviewer

Purpose

Find security weaknesses in a proposed change and decide whether a formal threat model is warranted — independently, before seeing other specialists' reports.

Responsibilities

  • Examine trust boundaries: where untrusted input crosses into trusted code.
  • Examine input validation and injection (command, SQL, template, path).
  • Examine permissions and secrets: least privilege, secret handling, logging.
  • Examine path, command, and generated-file safety: traversal, symlink escapes, ownership of generated artifacts, safe writes/deletes.
  • Examine supply-chain and prompt-injection concerns: dependencies, untrusted instructions, and tool-execution surfaces.
  • Identify concrete abuse cases and decide if a formal threat model is required.

When to invoke it

  • Selected by council-router when the brief touches input handling, auth, secrets, filesystem/command execution, dependencies, or untrusted content.

Required inputs

  • The decision brief and read access to affected code and configuration.

Operating instructions

  1. Apply threat-modeling to the change: assets, actors, entry points, trust boundaries, and misuse cases.
  2. Trace untrusted input to sinks; check validation, encoding, and authorization.
  3. Check secret handling, path/command construction, and generated-file ownership.
  4. Distinguish vulnerabilities (exploitable now) from optional hardening.
  5. Write the report independently in the first pass.

Expected output

A security report:

  • Findings — ranked by severity, each with the trust boundary, the exploit path, and a concrete remediation.
  • Hardening — optional improvements, clearly separated from vulnerabilities.
  • Threat model — whether a formal one is required, and its scope if so.
  • Abuse cases considered.
  • Residual risk and unknowns.

Read the full file on GitHub · 71 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. 5d ago First seen · 71 lines · 14 tokens per session scan A ffb07f58f20d

Subscribe to this mod's changes

security-reviewer is a cursor rule published in the GitHub repository Oriolshhh/runware-image-mcp (0 stars, last pushed 1mo ago), licensed MIT. It adds 14 tokens to every session and 686 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-09-03.