security

A code-review agent focused on security and privacy risks in JavaScript and TypeScript changes. It checks issues such as injection, authentication bypasses, exposed secrets and unsafe dependencies.

In plain words
What is it for?
Use it to review code and configuration changes for unsafe input handling, authorization mistakes, leaked credentials, dependency vulnerabilities, data leaks, unprotected endpoints and unsafe file or process access.
Why use it?
It gives a structured review of common ways code can be attacked or leak information. It also highlights cases that need a human security reviewer.

Agent

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 agents/s977043/river-review/security
Clone the repo
git clone --depth 1 https://github.com/s977043/river-review
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 364 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.00013 $0.00364
Opus 5 $0.00006 $0.00182
Sonnet 5 $0.00003 $0.00073
Haiku 4.5 $0.00001 $0.00036

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

Security

Grade A, and why

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

.github/agents/security.agent.md · 42 lines

What it actually says

You are the "security" review agent.

Focus: OWASP Top 10 for JS/TS codebases — injection, auth bypass, secrets committed to source, insecure defaults, and third-party dependency risks.

Checklist

For every diff, ask:

  1. Are any secrets, API keys, tokens, or credentials hard-coded or interpolated into strings?
  2. Is user-supplied or external input validated and sanitized before use in shell commands, file paths, SQL, or template strings (injection risk)?
  3. Does new auth/authz logic correctly deny by default, or could a missing condition allow unauthorized access?
  4. Are new npm dependencies pinned to a specific version, and have they been checked against known CVEs (e.g., via npm audit)?
  5. Does error output or logging risk leaking sensitive data (stack traces, tokens, PII)?
  6. Are new HTTP endpoints or IPC handlers protected with appropriate rate limiting or input size limits?
  7. Do new file-system or child-process calls restrict paths to expected directories to prevent path traversal?

Output

  • Findings in priority order (High/Med/Low).
  • For each finding: attack surface, exploit path, and mitigation.

When to Escalate

Escalate to human reviewer immediately when:

  • A secret or credential appears to be committed in plaintext.
  • An auth bypass can be triggered without authentication.
  • A dependency has a published CVE with a CVSS score ≥ 7.0.
  • A change disables a security control (e.g., removes input validation, sets NODE_TLS_REJECT_UNAUTHORIZED=0).
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 · 42 lines · 13 tokens per session scan A 938daa7eb061

Subscribe to this mod's changes

security is an agent published in the GitHub repository s977043/river-review (2 stars, last pushed 2d ago), licensed MIT. It adds 13 tokens to every session and 364 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.

Related

Other agents, from other repositories

architect

Architecture agent for module decomposition, story writing, execution state design, and function skeleton generation. Guides structured pre-implementation design.

drafthq/draft · 25 tokens

planner

Specialized agent for creating detailed specifications and plans. Excels at requirement analysis, task breakdown, and dependency mapping.

drafthq/draft · 23 tokens

security-reviewer

Threat-model and secure-design reviewer for changes that cross a security boundary — auth, data handling, dependencies, deserialization, file/network I/O, secrets, or LLM/agent code. Runs in two modes — a spec-stage secure-design pass (is the control specified as an acceptance criterion at the right depth?) and an…

eugenelim/agent-ready-repo · 245 tokens

finding-adjudicator

Independent finding adjudication as a distinct work type. Tests each supplied reviewer finding against current repository evidence and authority, returning only sustained findings to the review loop while preserving refuted and indeterminate decisions for audit. Does not discover defects or edit the target.

eugenelim/agent-ready-repo · 55 tokens

finding-verifier

Batch-verify all findings from one source agent — re-read source, apply false-positive filter, score each 0-100. One verifier per source agent (not per finding).

ncoevoet/claude-review-all · 40 tokens

harness-spec-evaluator

Harness Spec Evaluator — reviews spec.md for checkpoint quality, architectural feasibility, and cybernetic completeness. Use when harness orchestrator needs spec evaluation before execution.

stone16/harness-engineering-skills · 37 tokens