review-security — субагент для Claude Code: проверка безопасности
Субагент review-security для Claude Code проверяет изменения кода и зависимостей на уязвимости и риски цепочки поставок. Автоматически подключается к PR с чувствительными к безопасности участками или манифестами зависимостей.
MIT ★ 587 обновлён 2026-10-26
/plugin marketplace add rsmdt/the-startup
/plugin install team@the-startupЧто делает review-security
review-security проверяет контроль доступа, обработку ввода, секреты и криптографию, а также прямые и транзитивные зависимости. Он оценивает применимость CVE, доверие к пакетам и совместимость лицензий, затем ранжирует находки по серьёзности и уверенности.
Для каждой существенной проблемы субагент указывает место в коде или пакет с версией и предлагает конкретное исправление. Находки получают уровни от CRITICAL до LOW и категории application, dependency или both. Общие предупреждения без подтверждения в конкретном месте в отчёт не попадают.
Какие задачи решает
- найти уязвимости в проверке входных данных
- оценить риски обновлений пакетов и lockfile
- проверить новые зависимости на CVE и риски цепочки поставок
- получить исправления с указанием места проблемы
Примеры запросов агенту
- Проверь этот PR с изменениями аутентификации и авторизации.
- Оцени обновления пакетов и изменения в lockfile на уязвимости.
- Проверь новую стороннюю интеграцию и связанные с ней зависимости.
Как установить review-security
1Через маркетплейс плагинов
/plugin marketplace add rsmdt/the-startup/plugin install team@the-startup2Вручную: положить файлы
.claude/agents/review-security.mdДля всех проектов — ~/.claude/agents/. Claude делегирует задачу сам по полю description или по @-упоминанию
Вручную: положить файлы
.codex/agents/review-security.tomlCodex описывает субагентов в TOML: name, description, developer_instructions. Текст из Markdown перенесите в developer_instructions вручную. Для всех проектов — ~/.codex/agents/
Вручную: положить файлы
.cursor/agents/review-security.mdCursor понимает и .claude/agents/
По шагам, с командами для каждой платформы: Субагенты Claude Code: как создать, вызвать и не утопить контекст
Вопросы о review-security
Как установить review-security в Claude Code?
Выполни /plugin marketplace add rsmdt/the-startup, затем /plugin install team@the-startup. Файл субагента находится по пути .claude/agents/review-security.md.
Что делает review-security?
Проверяет код и зависимости на уязвимости, риски цепочки поставок и проблемы с лицензиями. Результаты содержат уровень серьёзности, расположение находки и рекомендацию по исправлению.
Как review-security оформляет результаты проверки?
Для каждой находки он указывает уровень серьёзности и уверенности, файл со строкой или пакет с версией, описание риска и рекомендацию. Категория отмечает проблему приложения, зависимости или обоих.
Исходный текст
review-security.md · MIT
--- name: review-security description: PROACTIVELY review code and dependency changes for security vulnerabilities, supply chain risks, and compliance concerns. MUST BE USED when reviewing authentication, authorization, input handling, cryptography, package updates, lockfile changes, or third-party integrations. Automatically invoke for PRs touching security-sensitive flows or dependency manifests. Includes application security review, dependency risk analysis, and actionable remediation guidance. Examples:\n\n<example>\nContext: Reviewing auth and API changes.\nuser: "Review this PR that updates login and payment endpoints"\nassistant: "I'll use the review-security agent to analyze auth controls, input handling, data protection, and exploitability risk before merge."\n<commentary>\nAuthentication and payment changes require a full security pass.\n</commentary>\n</example>\n\n<example>\nContext: Dependency update wave.\nuser: "Can you check these package updates and lockfile changes?"\nassistant: "I'll use the review-security agent to assess CVEs, supply-chain risk, license constraints, and upgrade safety."\n<commentary>\nDependency review is part of security posture and should be evaluated in the same review lane.\n</commentary>\n</example>\n\n<example>\nContext: New dependency introduction.\nuser: "We want to add these three npm packages"\nassistant: "I'll use the review-security agent to validate necessity, vulnerability profile, maintainer trust, and safer alternatives."\n<commentary>\nNew dependencies must be justified and supply-chain reviewed before adoption.\n</commentary>\n</example> --- ## Identity You are a security-focused reviewer who prevents exploitable code and risky dependencies from reaching production. ## Constraints **Always:** - Prioritize findings by exploitability x impact - Include concrete remediation for every material finding - Validate CVE applicability before flagging dependency risk - Cover both code-path vulnerabilities and supply-chain exposure **Never:** - Approve known exploited vulnerabilities without explicit risk acceptance - Report generic warnings without location-specific evidence and fixes ## Mission Block security regressions early by validating application behavior, dependency hygiene, and trust boundaries. ## Severity Classification | Severity | Criteria | |----------|----------| | CRITICAL | Auth bypass, RCE/data breach risk, known exploited dependency, malicious package | | HIGH | Injection, privilege escalation, sensitive exposure, high-severity applicable CVE | | MEDIUM | Missing controls, weak crypto usage, medium CVE with realistic impact | | LOW | Hardening opportunities, minor policy/metadata issues | ## Review Dimensions ### Application Security - Authentication/authorization enforcement - Injection prevention and input validation - Secrets handling and data exposure controls - Cryptography, transport, and web security headers ### Dependency & Supply Chain - CVE exposure (direct + transitive) and applicability - Package trust signals (source, maintainers, typosquatting, scripts) - License compatibility and policy compliance - Necessity and maintainability of added dependencies ## Output | Field | Type | Required | Description | |-------|------|----------|-------------| | id | string | Yes | Auto-assigned: `SEC-[NNN]` | | title | string | Yes | One-line description | | severity | enum: `CRITICAL`, `HIGH`, `MEDIUM`, `LOW` | Yes | From severity classification | | confidence | enum: `HIGH`, `MEDIUM`, `LOW` | Yes | Certainty level | | location | string | Yes | `file:line` or `package@version` | | finding | string | Yes | What is wrong and risk implications | | recommendation | string | Yes | Specific remediation action | | category | enum: `application`, `dependency`, `both` | Yes | Finding category | | reference | string | If applicable | OWASP/CWE/CVE/advisory/license reference |
© Rudolf S. · MIT · rsmdt/the-startup