Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

analyze-cve-repos

БесплатноБез исполняемых скриптовНе проверен

Analyze CVE reachability against downstream repository forks at version-specific release branches

openshift-engот openshift-eng★ 123 звезды на GitHub

Об этом скилле

When to Use

Use this skill when Phase 2 of the node-cve:triage command needs to determine whether a CVE's vulnerable code path is actually reachable in a Node team repository. Each CVE is analyzed against the release branch (or, for upstream-only components, the shipped tag) that corresponds to the OCP version selected in Phase 1, one agent per CVE and repository. If the fork, branch or tag is not found, the CVE is classified as Uncertain for that repository.

Prerequisites

  • Repository already cloned or refreshed at .work/node-cve/repos/<owner>-<repo-name>-<branch>/ (the triage command does this before spawning parallel analysis agents)
  • Network access to GitHub (for CVE data)
  • The node-team plugin (shared component and version data)

Locating shared data and the helper script

The links to node-team files below resolve in a repository checkout and on the docs site. When the plugins are installed they do not resolve, because every plugin lives in its own versioned cache directory. Get the real directory from the helper script, then read the files from there with the Read tool:

bash "${CLAUDE_PLUGIN_ROOT}/skills/report-findings/scripts/node-cve-lib.sh" refs

The helper script is node-cve-lib.sh. It is the only Bash command this plugin needs, which keeps headless runs with a strict tool allowlist working. Do not write ad-hoc curl, jira or git commands and do not chain commands. Use the Read, Grep, Glob and Write tools for file work. Shell variables do not persist between Bash tool calls, so pass values as literal arguments.

Paths written as .work/node-cve/triage-YYYY-MM-DD/ stand for the run directory that init printed as TRIAGE_DIR=. Use that path as is, also after midnight; the helper keeps using it for the whole run.

If refs fails, invoke the node-team:node skill and read references/shared/ from its base directory. If the files still cannot be found, stop with "node-team shared references not found". Never fall back to data from memory.

Implementation Steps

Step 1: Map component to downstream repository and branch

Analysis must target the release branch corresponding to the selected OpenShift version. The main branch may have newer dependencies or Go versions that mask vulnerabilities present in shipped releases. Analysis targets the downstream fork, or the upstream repository at the shipped tag for the components the shared components reference maps upstream only (conmon-rs, cri-tools).

Component to repository mapping: Read the component-to-repo table and the pscomponent: label mapping from the node-team shared components reference. Trackers labeled pscomponent:crun or pscomponent:conmon are not analyzed: those packages belong to the containers team (see "Not owned by the Node team" there). Precedence for choosing the repository: if the tracker carries a pscomponent: label listed in the label mapping table, the label wins. Otherwise use the row for the tracker's Jira component. A row that lists two repositories (Node / Kueue: the operand openshift/kubernetes-sigs-kueue and the operator openshift/kueue-operator) needs a choice: pick the repository from the affected package or image named in the tracker summary or description, following the Kueue note in the components reference, and classify as Uncertain with note "component maps to more than one repository" if it stays ambiguous. A bare Node component without a usable label does not identify a repository. In that case use the package named in the tracker summary (the text between the CVE ID and the colon, for example cri-o:) to pick a row, and if that is still ambiguous classify as Uncertain with note "component does not map to a repository".

Version mapping: Read the formulas and the branch naming conventions from the node-team shared version map and derive the release branch from them. The map is the only source. Do not apply a formula from memory, since OCP 4.Y and OCP 5.Y use different ones.

If the component does not map to a known repo, classify as Uncertain and skip analysis. If the downstream fork or release branch does not exist, classify as Uncertain with note "downstream fork/branch not found" and skip analysis.

Step 2: Verify repository and branch

The triage command clones or refreshes the repository with the helper before this skill runs and passes on the DIR= and COMMIT= values it printed (directory, short commit hash and commit date). Record the commit in the evidence. If this skill runs on its own, do the same:

bash "${CLAUDE_PLUGIN_ROOT}/skills/report-findings/scripts/node-cve-lib.sh" clone https://github.com/openshift/cri-o release-5.0

The second argument is a release branch or a tag. Components that shared/components.md maps to upstream tags

Полный SKILL.md на GitHub

Установить analyze-cve-repos в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл analyze-cve-repos?

Analyze CVE reachability against downstream repository forks at version-specific release branches

Как установить скилл analyze-cve-repos?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл analyze-cve-repos запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить analyze-cve-repos с