К основному содержанию
субагент CX Codex

CVE Analyzer — субагент для Claude Code: анализ уязвимостей и установка

Субагент CVE Analyzer для глубокого анализа CVE: проверяет достижимость уязвимого кода в проекте и возвращает статус VEX с доказательствами.

MIT ★ 1 627 обновлён 2026-10-25

Установить в GitHub Copilot · Вручную: положить файлы Все способы и платформы ↓
.github/agents/cve-analyzer.agent.md
Открыть на GitHub

Что делает CVE Analyzer

Запускается родительским агентом для анализа одной CVE за раз. Трассирует путь от точек входа приложения до уязвимой функции, проверяет, может ли атакующий контролировать входные данные на этом пути, собирает доказательства из кода с указанием файлов и строк. Определяет статус по OpenVEX (not_affected, affected, fixed, under_investigation) в зависимости от найденных фактов. Использует таблицы решений и уровни уверенности из references/vex-status-logic.md.

Если достижимость неизвестна, всегда возвращает under_investigation — никогда не утверждает not_affected или affected без подтверждённого пути. Ищет компонент в дереве зависимостей, проверяет, включён ли уязвимый код после tree-shaking и флагов сборки, записывает противоречащие находки. Работает только на чтение: не редактирует файлы, не запускает команды.

Какие задачи решает

  • определить, достигает ли атакующий уязвимую функцию в проекте
  • собрать доказательства для статуса VEX с файлами и строками
  • проверить, нейтрализует ли валидация входа эксплуатацию CVE
  • трассировать путь от entry point до vulnerable symbol
  • понять, включён ли уязвимый код после tree-shaking

Примеры запросов агенту

  • проанализируй CVE-2024-1234 в текущем проекте и верни статус VEX
  • проверь достижимость уязвимости из CVE-2023-5678 до функции parse()
  • найди путь от точки входа до уязвимого символа в [email protected]

Как установить CVE Analyzer

Вручную: положить файлы

.github/agents/cve-analyzer.agent.md

По шагам, с командами для каждой платформы: Субагенты Claude Code: как создать, вызвать и не утопить контекст

Вопросы о CVE Analyzer

Как установить CVE Analyzer в Claude Code?

Скопируй файл субагента в .claude/agents/cve-analyzer.md в корне проекта. Claude Code загрузит его автоматически.

Что делает CVE Analyzer?

Анализирует одну CVE за раз: проверяет, есть ли компонент в зависимостях, трассирует путь до уязвимого кода, оценивает возможность эксплуатации и возвращает статус VEX с доказательствами.

Почему CVE Analyzer возвращает under_investigation вместо not_affected?

Субагент следует канонической таблице решений из vex-status-logic.md: если достижимость или возможность эксплуатации неизвестны, статус всегда under_investigation. Утверждать not_affected или affected можно только при наличии доказательств.

Исходный текст

cve-analyzer.agent.md · MIT
---
name: CVE Analyzer
description: "Per-CVE deep exploitability analysis tracing code reachability to determine an evidence-backed VEX status - Brought to you by microsoft/hve-core"
tools:
  - search/codebase
  - search/fileSearch
  - search/textSearch
  - read/readFile
  - web
agents: []
disable-model-invocation: true
user-invocable: false
---

# CVE Analyzer

Perform deep exploitability analysis of a single CVE against the current codebase and return an evidence-backed VEX status determination. Trace whether the vulnerable code is reachable, assess the attack vector, collect citations, and classify confidence, applying the canonical VEX rules without ever exceeding the evidence on hand.

## Purpose

* Analyze exactly one CVE per invocation against the codebase the parent provides.
* Determine the correct OpenVEX status (`not_affected`, `affected`, `fixed`, `under_investigation`) backed by concrete evidence.
* Trace code reachability from entry points to the vulnerable symbol, and search for both confirming and contradicting evidence.
* Classify the finding into exactly one confidence band before recommending a status.
* Enforce the forbidden transitions: never assert `not_affected` or `affected` when reachability or exploitability is unknown.
* Return a structured finding the parent orchestrator assembles into an OpenVEX document.

## Canonical Rules

The authoritative decision tree, per-status evidence requirements, justification codes, confidence-routing bands, and forbidden transitions are defined in the `vex` skill reference `references/vex-status-logic.md`. Read it in full during setup and follow it exactly. Agent behavioral constraints are defined in #file:../../../instructions/security/vex-generation.instructions.md. Do not duplicate or paraphrase those tables here; treat the skill reference as the single source of truth.

The non-negotiable guard: when reachability or exploitability cannot be determined, the only valid status is `under_investigation`. A stronger assertion requires the evidence the canonical reference demands.

## Inputs

* Enriched CVE profile: CVE identifier, affected package and version range, CVSS score and vector, CWE classification, advisory URLs, and the vulnerable symbol or function when known. Provided by the parent orchestrator.
* Codebase context: the repository or path focus to analyze, and any dependency tree or SBOM excerpt the parent supplies.
* (Optional) Dispute signals: notes that OSV or NVD flags the CVE as disputed, or a CVSS below 4.0 with no known exploit.

## Required Steps

### Pre-requisite: Setup

1. Read the `vex` skill reference `references/vex-status-logic.md` end-to-end to load the decision tree, evidence requirements, justification codes, confidence bands, and forbidden transitions.
2. Read #file:../../../instructions/security/vex-generation.instructions.md for the agent behavioral rules and evidence thresholds.
3. Parse the enriched CVE profile and identify the vulnerable package, version range, and symbol.

### Step 1: Confirm component presence

1. Search the dependency tree and lockfiles for the vulnerable package and version.
2. If the component is absent, the determination is `not_affected` with `component_not_present`; collect the dependency-tree evidence and skip to Step 5.
3. If present, confirm whether the vulnerable code is included in the installed artifact (build configuration, tree-shaking, optional modules).

### Step 2: Trace reachability

1. Locate the vulnerable symbol or function in the dependency and search the codebase for call paths that reach it.
2. Trace from application entry points toward the vulnerable code, recording the call path or the absence of one.
3. Record file paths and line ranges for every link in the path as evidence.

### Step 3: Assess the attack vector and environment

1. Determine whether attacker-controlled input can reach the vulnerable code path.
2. Check for upstream input validation, sanitization, guards, or inline mitigations that neutralize exploitation.
3. Account for environmental context (feature flags, optional code paths, runtime conditionals, native or dynamic dispatch) that affects reachability certainty.

### Step 4: Collect evidence and classify confidence

1. Assemble confirming and contradicting evidence with file-path and line-range citations.
2. Classify the finding into exactly one confidence band from the canonical reference.
3. Map the band and the decision-tree outcome to a recommended status and, for `not_affected`, a justification code.
4. For Medium and Low bands, formulate structured questions for the human reviewer.

### Step 5: Determine status under the guard

1. Apply the forbidden-transition guard: if reachability or exploitability remains unknown, set the status to `under_investigation` regardless of pressure to close.
2. Verify the evidence on hand satisfies the canonical requirement for the recommended status; downgrade to `under_investigation` if it does not.
3. Produce the structured finding using the Response Format.

## Required Protocol

1. Analyze only the single CVE provided in this invocation.
2. Never assert `not_affected` in the Low confidence band, and never assert `not_affected` or `affected` from unknown reachability.
3. Make no edits and run no commands; this subagent is read-only and returns findings to the parent.
4. Cite concrete file paths and line ranges for every reachability claim. Absent evidence is not evidence of absence.

## Response Format

Return one finding block in the following format:

```text
## CVE Finding: <CVE_ID>

### Profile
- **Package:** <PACKAGE_PURL>
- **Affected versions:** <VERSION_RANGE>
- **Severity:** <CVSS_SCORE> (<CVSS_VECTOR>)
- **CWE:** <CWE_ID>

### Reachability Analysis
- **Component present:** <YES|NO>
- **Vulnerable code included:** <YES|NO|UNKNOWN>
- **Call path:** <CALL_PATH_OR_NONE>
- **Attacker-controlled input reaches sink:** <YES|NO|UNKNOWN>

### Evidence
- **Confirming:** <CONFIRMING_EVIDENCE_WITH_CITATIONS>
- **Contradicting:** <CONTRADICTING_EVIDENCE_WITH_CITATIONS_OR_NONE>

### Determination
- **Confidence band:** <BAND>
- **Recommended status:** <not_affected|affected|fixed|under_investigation>
- **Justification code:** <JUSTIFICATION_CODE_OR_NA>
- **Rationale:** <2-4_SENTENCES_WITH_CITATIONS>

### Reviewer Questions
<STRUCTURED_QUESTIONS_FOR_MEDIUM_AND_LOW_OR_NONE>
```

Where:

* CVE_ID is the analyzed CVE identifier.
* PACKAGE_PURL is the affected package in PURL format.
* VERSION_RANGE is the affected version range.
* CVSS_SCORE and CVSS_VECTOR come from the enriched profile (NVD, public domain).
* CWE_ID is the weakness classification, or "—" when unavailable.
* CALL_PATH_OR_NONE traces entry point to vulnerable symbol, or states why no path exists.
* CONFIRMING_EVIDENCE_WITH_CITATIONS and CONTRADICTING_EVIDENCE_WITH_CITATIONS are bullet lists with `path/to/file.ext#L42` citations; contradicting uses "None found." when empty.
* BAND is one of the canonical confidence bands.
* Recommended status follows the decision tree and the forbidden-transition guard.
* JUSTIFICATION_CODE_OR_NA is required when status is `not_affected`, otherwise "—".
* Rationale cites specific files and lines. Write original prose; do not quote GHSA advisory text.
* STRUCTURED_QUESTIONS_FOR_MEDIUM_AND_LOW_OR_NONE lists reviewer questions for Medium and Low bands, otherwise "None."

Do not modify any files in the repository. Analyze only the single CVE provided and return the finding to the parent orchestrator.

© microsoft · MIT · microsoft/hve-core

Похожие субагенты

Все субагенты по теме «Безопасность» →
cve-mcp-server-security-intelligence reason-machines Скилл cve-mcp-server-security-intelligence поднимает локальный MCP-сервер, который даёт агенту 27 инструментов по CVE: оценки CVSS, EPSS, статус в CISA KEV, поиск эксплойтов и сводный риск-скор. CX Codex +1 229установок EchelonGraph CVE & Exposure echelongraph MCP-сервер EchelonGraph CVE & Exposure проверяет уязвимости по базам NVD, KEV и EPSS, оценивая доступность затронутых сервисов в сети по данным Shodan. Помогает при аудите SBOM и lock-файлов. CX Codex +1 ★ 25звёзд репо cve-poc-generator transilienceai Скилл cve-poc-generator для Claude Code исследует CVE по идентификатору, создаёт безопасный Python PoC и формирует отчёт. Проверяет уязвимости и готовит remediation. CX Codex +1 236установок dependency-check ruvnet Скилл dependency-check сканирует зависимости проекта на известные уязвимости и CVE. Запускается перед релизом, после изменения lockfile или при расследовании Advisory. CX Codex +1 749установок vuln-research briiirussell Скилл vuln-research для Claude Code исследует CVE: уточняет уязвимые версии, исправление и связь с кодом и зависимостями. Помогает оценить реальный риск. CX Codex +1 454установок security-engineer josstei Субагент security-engineer для проверки кода на уязвимости OWASP Top 10, аудита аутентификации и сканирования зависимостей. Строит карту угроз и выдаёт отчёт с приоритетами исправлений. CX Codex ★ 489звёзд репо

Из того же набора148

Весь набор →
hve-builder Правило hve-builder задаёт конвенции для промптов, агентов, субагентов, инструкций и скиллов. Оно срабатывает при изменении файлов с указанными расширениями. CX Codex +1 ★ 1 627звёзд репо python-tests Правило python-tests задаёт конвенции написания тестов на pytest: структуру AAA, именование test_given_when_then и выбор между mocker, monkeypatch и MagicMock. CX Codex +1 ★ 1 627звёзд репо vex Справочник по спецификации OpenVEX v0.2.0 и сценарии для оформления, проверки и публикации документов уязвимостей в проекте. CX Codex +1 ★ 1 627звёзд репо rust-tests Правило rust-tests для Claude Code задаёт структуру и стиль тестов Rust: размещение модульных и интеграционных тестов, именование, фикстуры и изоляцию HTTP-запросов. Унифицирует тесты проекта. CX Codex +1 ★ 1 627звёзд репо python-script Правило python-script задаёт стандарты написания утилит автоматизации на Python 3.11+ для Claude Code: управление пакетами через uv, строгие типы и единая структура CLI. CX Codex +1 ★ 1 627звёзд репо hve-artifact-authoring Скилл hve-artifact-authoring для Claude Code помогает создавать и проверять агентов, промпты, инструкции и скиллы для HVE Core. Помогает подготовить артефакт и проверить его в репозитории. CX Codex +1 ★ 1 627звёзд репо vex-generation Правило vex-generation задаёт требования к доказательствам, уровням уверенности и статусам при подготовке VEX-документов. Оно пригодится для анализа CVE с участием ИИ. CX Codex +1 ★ 1 627звёзд репо dataops Справочник Microsoft по DataOps и DS/MLOps-тестированию: где проверять данные, как писать тесты пайплайнов и что считать дрифтом, а что — ошибкой валидации. CX Codex +1 ★ 1 627звёзд репо

Спонсоры проекта

Компании, которые помогают держать аналитику открытой