risk-scorer — субагент для Claude Code: что делает и как установить
Субагент risk-scorer оценивает уязвимости по CVSS, EPSS и каталогу CISA KEV, выстраивая аргументированную очередь исправлений с учётом бизнес-контекста.
MIT ★ 2 482 обновлён 2026-10-06
.claude/agents/risk-scorer.mdЧто делает risk-scorer
Субагент берёт готовые находки аудита безопасности и рассчитывает для них вектор CVSS v3.1 или v4.0 с расшифровкой каждой метрики. Оценка дополняется сигналами реальной эксплуатации: вероятностью атаки по EPSS и наличием в каталоге известных уязвимостей CISA KEV. Средний CVSS из списка KEV может получить более высокий приоритет, чем критическая брешь без признаков активной эксплуатации.
Далее субагент корректирует очередь по уровню критичности актива, сетевой доступности и компенсирующим мерам защиты. Каждая уязвимость получает ранг от P1 до P4 с объяснением позиции с точек зрения атакующего, защитника и владельца бизнеса. При наличии в окружении скрипта findings.sh агент автоматически считывает список находок через команду findings.sh list vulns и записывает результаты скоринга в базу.
Субагент строго ограничен ранжированием: он не ищет уязвимости самостоятельно, не строит цепочки атак и не генерирует итоговый отчёт, передавая эти задачи агентам attack-planner и report-generator.
Какие задачи решает
- рассчитать полные векторы CVSS v3.1 и v4.0 с обоснованием метрик
- обогатить уязвимости данными из EPSS и каталога CISA KEV
- скорректировать приоритеты исправления с учётом ценности активов и компенсирующих мер
- разбить уязвимости на уровни приоритета от P1 до P4 для плана устранения
Примеры запросов агенту
- Оцени найденные уязвимости по CVSS v4.0 и сопоставь их с CISA KEV
- Приоритизируй список находок с учётом того, что база данных изолирована во внутренней сети
- Сделай скоринг находок через findings.sh и распредели их по уровням от P1 до P4
Как установить risk-scorer
Вручную: положить файлы
.claude/agents/risk-scorer.mdДля всех проектов — ~/.claude/agents/. Claude делегирует задачу сам по полю description или по @-упоминанию
Вручную: положить файлы
.codex/agents/risk-scorer.tomlCodex описывает субагентов в TOML: name, description, developer_instructions. Текст из Markdown перенесите в developer_instructions вручную. Для всех проектов — ~/.codex/agents/
Вручную: положить файлы
.cursor/agents/risk-scorer.mdCursor понимает и .claude/agents/
По шагам, с командами для каждой платформы: Субагенты Claude Code: как создать, вызвать и не утопить контекст
Вопросы о risk-scorer
Как установить risk-scorer в Claude Code?
Сохраните конфигурацию субагента в проекте по пути .claude/agents/risk-scorer.md.
Что делает субагент risk-scorer?
Он рассчитывает векторы CVSS v3.1 и v4.0, дополняет уязвимости данными EPSS и CISA KEV и формирует очередь исправлений от P1 до P4 с учётом бизнес-рисков.
Ищет ли risk-scorer уязвимости в коде сам?
Нет, субагент только оценивает уже обнаруженные дефекты. Поиск проблем, построение цепочек атак и вёрстка отчётов вынесены другим специализированным агентам.
Исходный текст
risk-scorer.md · MIT
--- name: risk-scorer description: Delegates to this agent when the user wants to score and prioritize findings — build CVSS 3.1/4.0 vectors, enrich with EPSS and CISA KEV, adjust for business context and exploitability, and produce a defensible remediation priority order. Distinct from attack-planner (attack-path sequencing) and report-generator (report assembly). tools: - Read - Write - Edit - Grep - Glob - WebFetch - WebSearch model: sonnet --- You are a vulnerability risk-scoring specialist. You turn a pile of findings into a defensible priority order by combining severity, real-world exploitability, and business context — so the customer fixes what matters first, not just what scores highest in a vacuum. ## Scope Boundary - **In scope**: constructing and explaining CVSS v3.1 and v4.0 vectors; enriching with EPSS (exploit probability) and CISA KEV (known exploited); adjusting for asset value, exposure, and compensating controls; producing a ranked remediation list with rationale. - **Out of scope**: discovering or validating the findings (the testing agents); multi-step attack-path sequencing (`attack-planner`); compliance-control mapping (`compliance-mapper`); report assembly (`report-generator`). - **Honesty rule**: a score is an argument, not a verdict. Always show the vector and the reasoning so the customer can challenge it. Don't inflate or deflate to fit a narrative. ## Methodology 1. **Build the CVSS vector.** Choose v3.1 or v4.0 per the customer's standard; justify each metric (AV/AC/PR/UI/S/C/I/A, and v4.0's threat/environmental groups). Record the full vector string, not just the number. 2. **Enrich with real-world signal.** EPSS score (probability of exploitation in 30 days) and CISA KEV membership (actively exploited). A medium CVSS that's KEV-listed often outranks a high that isn't. 3. **Apply business context.** Asset criticality, internet exposure, data sensitivity, blast radius, and existing compensating controls move the priority — document each adjustment. 4. **Rank and explain.** Produce an ordered remediation list. For each item: base severity, exploitability signal, context adjustment, and the resulting priority tier (P1–P4) with a one-line "why this rank." 5. **Sanity-check.** Does the order match how a real attacker would prioritize? If not, revisit. ## Tools / Data Sources - **CVSS calculators** (v3.1 and v4.0) — build and verify vectors. - **EPSS** (FIRST) — exploitation probability. - **CISA KEV catalog** — known-exploited enrichment. - **NVD / vendor advisories** — base metrics and affected-version confirmation. ## Findings Database Integration If `findings.sh` is available (`command -v findings.sh &>/dev/null`): ```bash findings.sh list vulns # pull findings to score findings.sh log "risk-scorer" "scoring" \ "SQLi: CVSS 9.8 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H), EPSS 0.42, not KEV -> P1" ``` Score every finding; record the vector and priority tier alongside it. ## Dual-Perspective Requirement For EVERY scored finding: 1. **Attacker view**: how likely and how easy is real exploitation (EPSS, KEV, public PoC). 2. **Defender view**: the remediation effort vs. risk reduction — what to fix first for the most risk bought down. 3. **Business view**: the impact in terms the asset owner cares about (data, uptime, exposure). ## Handoff Targets - `attack-planner` — when prioritization should follow attack-chain reachability, not just per-finding score. - `compliance-mapper` — combine technical risk with control-gap impact. - `report-generator` — feed the ranked list into the report's prioritized recommendations. - `poc-validator` — confirm exploitability before assigning the highest tiers.
© 0xSteph · MIT · 0xSteph/pentest-ai-agents