cve-scan
БесплатноЗапускает вложенные скриптыНе проверенScan a container image for CVEs from two sources at once -- Red Hat security data (Hydra API + Pyxis catalog) and the open-source scanners grype, trivy, and…
от openshift-eng★ 123 звезды на GitHubОб этом скилле
cve-scan
Multi-source container-image CVE scanner with an AI triage layer. The bundled toolkit in
toolkit/ runs two complementary scanners and merges them; this skill drives
that toolkit and reasons over the merged report — the reasoning is the point, not the
mechanical scan.
Why two sources: no single scanner tells the whole truth about a Red Hat image. Red Hat's security data knows container-level and layered-product CVEs that NVD-driven scanners can't see, and applies backport-aware fix status and Red Hat severities. grype/trivy in turn report CVEs Red Hat has assessed as not-affected/won't-fix. Merging both is the only defensible picture.
Arguments
/container-image:cve-scan [<image>] [--output=triage|remediation|evidence] [--severity=<list>]
<image>(optional) — target image ref (e.g.registry.redhat.io/edo/foo:1.2). If omitted, infer it from the current session (see Phase 0).--output(defaulttriage) — comma-separated list of AI artifacts to produce:triage— prioritized findings + coverage-gap and disagreement analysis.remediation— concrete, grouped remediation steps tied to specific CVEs.evidence— auditable FedRAMP/ConMon narrative citing scanner versions + provenance.
--severity(default: all) — comma-separated severities to focus on (critical,important,moderate,low). Lower severities are still scanned, just not foregrounded in the triage.
Both scanners always run (Red Hat security data and the open-source scanners); there is no source toggle.
Implementation
Operational details (engine selection, build/run commands, auth, caching, exit codes, troubleshooting, JSON shape) live in references/scanning.md — read it before running anything.
The scanner container takes one argument: a skopeo source (docker://…,
docker-archive:…, …) and copies it with skopeo — it cannot see the host engine. Deciding
which skopeo source to pass is the skill's job (Phase 0 → Phase 1).
Phase 0 — Resolve the target reference
- If
<image>was given, use it. - Otherwise infer candidates from the current session, and rank them:
- locally built/tagged images (
podman images/docker images); - image refs in a
Dockerfile,Containerfile, or build command in the working dir; - image refs mentioned earlier in this conversation;
- the repo's component image (git remote → known image name).
- locally built/tagged images (
- Decide:
- exactly one strong candidate → use it, and state which and why;
- multiple candidates → ask the user to pick (use the
AskUserQuestiontool); - none → ask the user for the image ref.
Phase 1 — Pick the engine, detect where the image lives, then scan
Follow references/scanning.md:
- Engine: if only
dockeror onlypodmanis present, use it ($ENGINE); if both are present or it is unclear, ask the user; if neither is installed, stop and tell the user to install one first. Never install a container engine or any scanner on the host. - Build the scanner image with
$ENGINEfrom the bundled toolkit as the build context:${CLAUDE_PLUGIN_ROOT}/skills/cve-scan/toolkit(seetoolkit/). Tag it by the toolkit's content so a plugin upgrade never silently reuses a stale image: derive a short digest of the toolkit directory (e.g.find "$TOOLKIT" -type f | sort | xargs sha256sum | sha256sum | cut -c1-12) and buildcve-scanner:<digest>only when that tag is missing. (cve-scanner:latestis acceptable only if you rebuild whenever the toolkit changes.) - Detect where the reference lives (this is why detection is the skill's job — the
container can't), and build the skopeo source to pass:
- Host-local —
$ENGINE image exists <ref>(podman) /$ENGINE image inspect <ref>(docker) succeeds, i.e. a build that lives only in the host engine (typically an unqualified orlocalhost/…tag). Export it and pass it as an archive:$ENGINE save --format docker-archive -o <tmp>/img.tar <ref>(docker:docker save -o <tmp>/img.tar <ref>), then source =docker-archive:/input/img.tarwith the tar mounted-v <tmp>/img.tar:/input/img.tar:ro,z(the,zSELinux relabel is required). - Registry — a registry-qualified ref not (or not only) local: source =
docker://<ref>. For authenticated registries, mount credentials (next step). - If a registry-qualified ref is also cached in the host engine and the intent is
unclear, ask which to scan (the published image vs the local copy).
3a. Registry credentials (registry sources only). skopeo inside the container can't see
the host's login, so locate the host auth file, in order, and use the first that exists:
$REGISTRY_AUTH_FILE→${XDG_RUNTIME_DIR}/containers/auth.json(podman login) →$HOME/.docker/config.json(docker login) → `${XDG_CON
- Host-local —
Установить cve-scan в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл cve-scan?
Scan a container image for CVEs from two sources at once -- Red Hat security data (Hydra API + Pyxis catalog) and the open-source scanners grype, trivy, and govulncheck -- merge them into one de-duplicated report, then apply AI triage: prioritize by risk, explain coverage gaps, adjudicate severity disagreements (Red Hat authoritative), and optionally produce a remediation plan or a compliance-evidence narrative. Use when the user wants to scan or audit a container/OCI image for vulnerabilities, asks "is this image affected", wants a merged Red Hat + grype/trivy view, a prioritized CVE triage, image CVE remediation, or FedRAMP/ConMon evidence. Scanners run only inside a container built from the bundled toolkit -- nothing is installed on the host. Triggers on: 'scan image for CVEs', 'container image vulnerabilities', 'is this image affected', 'triage image CVEs', 'merged Red Hat and grype/trivy report', 'image CVE remediation', 'ConMon / FedRAMP image evidence'.
Как установить скилл cve-scan?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл cve-scan запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic