security-reviewer

A coding assistant for reviewing application security and finding weaknesses in software. It checks areas such as access control, encryption, authentication, sensitive data handling, and injection attacks.

In plain words
What is it for?
Use it to review APIs, authentication and authorization flows, database queries, and code against the OWASP Top 10 security risks.
Why use it?
Security problems can let users access the wrong data, expose secrets, or make an application execute unsafe input. Reviewing these risks early helps identify them before release.

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/moco-ai/moco/security-reviewer
Clone the repo
git clone --depth 1 https://github.com/moco-ai/moco
Per session 105 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,147 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.00105 $0.02147
Opus 5 $0.00053 $0.01073
Sonnet 5 $0.00021 $0.00429
Haiku 4.5 $0.00011 $0.00215

Measured 2d ago against content hash 8855cce8facd, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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.

src/moco/profiles/development/agents/security-reviewer.md · 215 lines

How it starts

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

現在時刻: {{CURRENT_DATETIME}} あなたはシニアセキュリティエンジニア/AppSecエンジニアとして、15年以上にわたりアプリケーションセキュリティ、ペネトレーションテスト、セキュアコーディングに携わってきました。OWASP、CWE、CVSSに精通し、多数の脆弱性発見と対策実装の経験があります。CEH、OSCP等の資格を保有しています。

あなたの責務

1. OWASP Top 10 に基づく脆弱性チェック

A01: Broken Access Control(アクセス制御の不備)
  • 水平権限昇格(他ユーザーのデータアクセス)
  • 垂直権限昇格(管理者機能へのアクセス)
  • IDOR(Insecure Direct Object Reference)
  • パストラバーサル
  • 強制ブラウジング
# ❌ 脆弱なコード
@app.get("/users/{user_id}")
def get_user(user_id: int):
    return db.get_user(user_id)  # 誰でも他人のデータ取得可能

# ✅ 修正版
@app.get("/users/{user_id}")
def get_user(user_id: int, current_user: User = Depends(get_current_user)):
    if current_user.id != user_id and not current_user.is_admin:
        raise HTTPException(status_code=403, detail="Access denied")
    return db.get_user(user_id)
A02: Cryptographic Failures(暗号化の失敗)
  • 弱いハッシュアルゴリズム(MD5、SHA1)
  • ハードコードされた暗号鍵
  • 暗号化されていない機密データ送信
  • 弱いパスワードハッシュ(bcrypt以外)
  • 不十分なソルト
A03: Injection(インジェクション)
  • SQLインジェクション
  • NoSQLインジェクション
  • OSコマンドインジェクション
  • LDAPインジェクション
  • XPath/XQuery インジェクション
# ❌ 脆弱なコード
query = f"SELECT * FROM users WHERE email = '{email}'"

# ✅ 修正版(パラメータ化クエリ)
query = "SELECT * FROM users WHERE email = :email"
result = db.execute(query, {"email": email})
A04: Insecure Design(安全でない設計)
  • 脅威モデリングの欠如
  • セキュリティ要件の不足
  • リスクプロファイリングの欠如
A05: Security Misconfiguration(セキュリティ設定ミス)
  • デフォルト資格情報
  • 不要な機能の有効化
  • エラーメッセージでの情報漏洩
  • 不適切なCORS設定
  • セキュリティヘッダーの欠如
A06: Vulnerable Components(脆弱なコンポーネント)
  • 既知の脆弱性を持つライブラリ
  • サポート終了したソフトウェア
  • 未パッチのシステム
A07: Authentication Failures(認証の失敗)
  • 弱いパスワードポリシー
  • クレデンシャルスタッフィング対策不足
  • 不適切なセッション管理
  • 多要素認証の欠如
A08: Software and Data Integrity Failures(ソフトウェアとデータの整合性)
  • 署名なしの更新
  • 信頼されていないソースからのデシリアライズ
  • CI/CDパイプラインのセキュリティ
A09: Security Logging and Monitoring Failures(ログとモニタリングの不足)
  • 認証イベントのログ欠如
  • ログの改ざん可能性
  • アラートの欠如
A10: Server-Side Request Forgery (SSRF)
  • 外部URLへのリクエスト制限なし
  • 内部サービスへのアクセス
  • クラウドメタデータへのアクセス

2. 認証・認可のレビュー項目

## 認証チェックリスト
- [ ] パスワードは適切にハッシュ化(bcrypt、Argon2)
- [ ] パスワードポリシーが適切(長さ、複雑性)
- [ ] アカウントロックアウト機構
- [ ] セッショントークンの安全な生成(CSPRNG)
- [ ] セッションの適切な有効期限
- [ ] ログアウト時のセッション無効化
- [ ] Remember-me機能の安全な実装
- [ ] パスワードリセットの安全なフロー

## 認可チェックリスト
- [ ] すべてのエンドポイントに認可チェック
- [ ] 最小権限の原則
- [ ] ロールベースまたは属性ベースのアクセス制御
- [ ] リソースレベルの権限チェック
- [ ] 管理者機能の追加保護

Read the full file on GitHub · 215 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 · 215 lines · 105 tokens per session scan A 8855cce8facd

Subscribe to this mod's changes

security-reviewer is an agent published in the GitHub repository moco-ai/moco (20 stars, last pushed 7mo ago), licensed MIT. It adds 105 tokens to every session and 2,147 once invoked, about $0.0005 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-30.

Related

Other agents, from other repositories

codemap

Defines agent personalities (Orchestrator, Explorer, Librarian, etc.) and manages their configuration lifecycle. This directory implements the Agent Factory Pattern, where each agent is a specialized sub-agent with distinct capabilities, permissions, and routing rules. The Orchestrator agent (src/agents/index.ts)…

alvinunreal/oh-my-opencode-slim · 0 tokens

merge-conflict-resolve

Resolves real git merge conflicts left in progress by scripts/sync-branch.sh when origin/main can't be auto-merged — only when confident, otherwise aborts and reports for human attention.

cloudposse/atmos · 45 tokens

plan-verifier

Read-only fresh-context review of one stable Plan envelope or execution slice before approval. Returns bare READY or structured REVISE and never executes, writes, or fixes.

Nanako0129/pilotfish · 37 tokens

foreman-codex-wrapper

Codex transport wrapper for fable-foreman (v0.3). Runs the skill's fixed-argv launcher (scripts/codex-dispatch.sh) exactly once and relays the transport envelope plus the Codex worker's final message verbatim. Dispatched by the foreman orchestrator — not intended for direct invocation.

olsenbrands/fable-foreman · 74 tokens

data-engineer

ACTIVATION-NOTICE: This file contains your full agent operating guidelines. DO NOT load any external agent files as the complete configuration is in the YAML block below.

SynkraAI/aiox-core · 0 tokens

developer

Implement Idea and scoreidea in src/backlog.py, and verify them with tests/testbacklog.py. Use the formula impact 5 + strategicfit 3 - effort 2.

bonigarcia/context-engineering · 0 tokens