security-reviewer

security-reviewer is an agent for Claude Code from xu-xiang/everything-claude-code-zh. It costs 78 tokens per session (1,580 once invoked), scanned A, original, MIT.

A security code reviewer that checks applications for common weaknesses, exposed secrets, unsafe input handling, and authentication or access-control problems.

In plain words
What is it for?
Reviewing web application code, especially authentication, APIs, database queries, file uploads, payments, webhooks, dependencies, and sensitive configuration.
Why use it?
It helps find security issues before user input, login code, API endpoints, or sensitive data handling reach production.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the everything-claude-code-zh plugin — 17 skills, 26 commands, 13 agents shipped together

Good fit Reviewing web application code, especially authentication, APIs, database queries, file uploads, payments, webhooks, dependencies, and sensitive configuration.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/xu-xiang/everything-claude-code-zh/security-reviewer
About the project

everything-claude-code-zh is a Chinese translation of a collection of configurations for Claude Code and other AI coding agents. It provides agents, skills, hooks, commands, rules, and MCP configurations intended to support development workflows such as memory persistence, security scanning, evaluation, and research-first work. The catalogue includes commands, skills, agents, instructions, and a plugin from this configuration set.

xu-xiang/everything-claude-code-zh · 1,933 stars · on GitHub · oneskill.one

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/xu-xiang/everything-claude-code-zh

Made for: Claude Code.

Or install everything-claude-code-zh, the plugin that ships this one along with the rest of its 17 skills, 26 commands, 13 agents.

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/agents/xu-xiang/everything-claude-code-zh/security-reviewer.svg)](https://agentmods.dev/agents/xu-xiang/everything-claude-code-zh/security-reviewer)
Your own site
<a href="https://agentmods.dev/agents/xu-xiang/everything-claude-code-zh/security-reviewer"><img src="https://agentmods.dev/badge/agents/xu-xiang/everything-claude-code-zh/security-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 78 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,580 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00078 $0.01580
Opus 5 $0.00039 $0.00790
Sonnet 5 $0.00016 $0.00316
Haiku 4.5 $0.00008 $0.00158

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

Security

Grade A, and why

security-reviewer scanned grade A with 1 finding 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 8d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

| `fetch(userProvidedUrl)` | 高 (HIGH) | 建立允许域名的白名单 |
agents/security-reviewer.md · 109 lines

How it starts

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

安全审查员 (Security Reviewer)

你是一位专注于识别和修复 Web 应用程序漏洞的资深安全专家。你的使命是在安全问题进入生产环境之前将其拦截并消除。

核心职责 (Core Responsibilities)

  1. 漏洞检测 (Vulnerability Detection) — 识别 OWASP Top 10 和常见的安全问题。
  2. 敏感信息检测 (Secrets Detection) — 查找硬编码的 API 密钥、密码和令牌(Tokens)。
  3. 输入验证 (Input Validation) — 确保所有用户输入都经过了适当的清洗和过滤(Sanitized)。
  4. 身份认证与授权 (Authentication/Authorization) — 验证访问控制逻辑是否严密。
  5. 依赖项安全 (Dependency Security) — 检查是否存在有漏洞的 npm 软件包。
  6. 安全最佳实践 (Security Best Practices) — 强制执行安全的编码模式。

分析命令

npm audit --audit-level=high
npx eslint . --plugin security

审查工作流 (Review Workflow)

1. 初始扫描

  • 运行 npm auditeslint-plugin-security,并搜索硬编码的敏感信息(Secrets)。
  • 重点审查高风险区域:认证逻辑、API 端点、数据库查询、文件上传、支付环节及 Webhooks。

2. OWASP Top 10 检查

  1. 注入 (Injection) — 查询是否参数化?用户输入是否清洗?ORM 使用是否安全?
  2. 失效的身份认证 (Broken Auth) — 密码是否使用哈希加密(bcrypt/argon2)?JWT 是否验证?Session 是否安全?
  3. 敏感数据泄露 (Sensitive Data) — 是否强制使用 HTTPS?敏感信息是否存储在环境变量中?PII(个人身份信息)是否加密?日志是否已脱敏?
  4. XML 外部实体 (XXE) — XML 解析器配置是否安全?是否禁用了外部实体?
  5. 失效的访问控制 (Broken Access) — 是否在每个路由上都进行了权限检查?CORS 配置是否正确?
  6. 安全配置错误 (Misconfiguration) — 默认凭据是否已更改?生产环境下是否关闭了调试模式?安全头(Security headers)是否已设置?
  7. 跨站脚本 (XSS) — 输出内容是否转义?是否设置了 CSP(内容安全策略)?框架是否开启了自动转义?
  8. 不安全的反序列化 (Insecure Deserialization) — 用户输入反序列化过程是否安全?
  9. 使用含有已知漏洞的组件 (Known Vulnerabilities) — 依赖项是否为最新版本?npm audit 是否干净?
  10. 日志记录和监控不足 (Insufficient Logging) — 安全事件是否记录?是否配置了告警?

3. 代码模式审查 (Code Pattern Review)

若发现以下模式,应立即标记:

模式 严重程度 修复方案
硬编码敏感信息(Secrets) 严重 (CRITICAL) 使用 process.env
包含用户输入的 Shell 命令 严重 (CRITICAL) 使用安全的 API 或 execFile
字符串拼接的 SQL 严重 (CRITICAL) 使用参数化查询
innerHTML = userInput 高 (HIGH) 使用 textContent 或 DOMPurify
fetch(userProvidedUrl) 高 (HIGH) 建立允许域名的白名单
明文密码对比 严重 (CRITICAL) 使用 bcrypt.compare()
路由未进行权限检查 严重 (CRITICAL) 添加身份认证中间件
无锁的余额检查 严重 (CRITICAL) 在事务中使用 FOR UPDATE
未限制请求速率 高 (HIGH) 添加 express-rate-limit
在日志中记录密码/敏感信息 中 (MEDIUM) 对日志输出进行脱敏处理

Read the full file on GitHub · 109 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. 8d ago First seen · 109 lines · 78 tokens per session scan A c297fea380fb

Subscribe to this mod's changes

security-reviewer is an agent published in the GitHub repository xu-xiang/everything-claude-code-zh (1,933 stars, last pushed 6mo ago), licensed MIT. It adds 78 tokens to every session and 1,580 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). 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

flutter-reviewer

Flutter and Dart code reviewer. Reviews Flutter code for widget best practices, state management patterns, Dart idioms, performance pitfalls, accessibility, and clean architecture violations. Library-agnostic — works with any state management solution and tooling.

affaan-m/ECC · 50 tokens

vue-reviewer

Expert Vue.js code reviewer specializing in Composition API correctness, reactivity pitfalls, component architecture, template security, and Vue-specific performance. Use for any change touching .vue, .ts/.js files with Vue imports, or Vue ecosystem code (Pinia, Vue Router, Nuxt). MUST BE USED for Vue projects.

affaan-m/ECC · 68 tokens

harmonyos-app-resolver

HarmonyOS application development expert specializing in ArkTS and ArkUI. Reviews code for V2 state management compliance, Navigation routing patterns, API usage, and performance best practices. Use for HarmonyOS/OpenHarmony projects.

affaan-m/ECC · 49 tokens

csharp-reviewer

Expert C# code reviewer specializing in .NET conventions, async patterns, security, nullable reference types, and performance. Use for all C# code changes. MUST BE USED for C# projects.

affaan-m/ECC · 44 tokens

php-reviewer

Expert PHP code reviewer specializing in PSR-12 compliance, PHP type system, Eloquent ORM patterns, security, and performance. Use for all PHP code changes. MUST BE USED for PHP projects.

affaan-m/ECC · 44 tokens

healthcare-reviewer

Reviews healthcare application code for clinical safety, CDSS accuracy, PHI compliance, and medical data integrity. Specialized for EMR/EHR, clinical decision support, and health information systems.

affaan-m/ECC · 42 tokens