vulnerability-remediation
БесплатноБез исполняемых скриптовНе проверенReviews vulnerability policy violations for the chainloop project recorded in Chainloop and performs fixes in Dockerfiles or go.mod. Use when asked to fix…
от chainloop-dev★ 623 звезды на GitHubОб этом скилле
Vulnerability Remediation for chainloop
This skill reviews open vulnerability policy violations recorded in Chainloop for the chainloop project and applies fixes to the affected source files.
Step 1: Find the Latest Project Version
Use list_products_with_versions (no parameters needed — uses the current chainloop org) and locate the Chainloop Community Edition product. Find the chainloop project version entry and note its projectVersionId (UUID).
Step 2: Gather Compliance Results and Evidence in Parallel
Once the projectVersionId is known, make both of these calls at the same time:
Call A — get_frameworks_compliance:
project_version_id: the UUID from Step 1framework_ids:["0ceef195-6900-4166-8407-77eb84954ed3"](chainloop-best-practices)
Call B — list_pieces_of_evidence:
project_name:chainloopproject_version_name: the version name from Step 1 (e.g.v1.77.0)latest:true
Parsing the compliance result (Call A)
The response will be large — parse it programmatically using a Bash subagent:
import json
with open('<tool-result-file>') as f:
raw = json.load(f)
data = json.loads(raw[0]['text'])
for req in data:
if 'vulnerabilit' in req.get('name', '').lower():
status = req.get('status', '')
failed = [e for e in req.get('policyEvaluations', [])
if e.get('status') not in ('PASSED', 'SKIPPED')]
print(f"Requirement: {req['name']} — Status: {status}")
for e in failed:
print(f" FAILED: policy={e['name']} material={e.get('materialName','-')} status={e.get('status','-')}")
This gives you the list of failing material names (e.g. control-plane-migrations-report).
Step 3: Download the SARIF for Each Failing Material
From the list_pieces_of_evidence result (Call B above), find the item whose name matches the failing material name and whose kind is SARIF. Use its digest field directly — no need to decode attestations.
Call download_evidence_by_digest with:
digest: the digest of the matching SARIF itemdownload_content:true
The SARIF logicalLocations[].fullyQualifiedName field contains the full image reference, e.g.:
ghcr.io/chainloop-dev/chainloop/control-plane-migrations:v1.77.0@sha256:<digest>:/atlas
The binary path (e.g. /atlas, /app) tells you which binary inside the image is vulnerable.
Step 4: Identify the Fix
4a. Atlas / Migration Dockerfile vulnerabilities
Symptom: SARIF location is /atlas, image is control-plane-migrations
Source file: app/controlplane/Dockerfile.migrations
Fix procedure:
- Check the current atlas version in the tag of the
FROMline of the Dockerfile (e.g.arigaio/atlas:1.2.0@sha256:...) - Find the latest available stable version:
curl -s "https://registry.hub.docker.com/v2/repositories/arigaio/atlas/tags?page_size=20&ordering=last_updated" \ | python3 -c "import json,sys; [print(t['name']) for t in json.load(sys.stdin)['results'] if t['name'][0].isdigit() and '-' not in t['name']]" - Run grype on the current and candidate versions to confirm the CVEs are present then gone:
A clean run has only the header line and no CVE rows.grype arigaio/atlas:<current-version> --only-fixed 2>&1 grype arigaio/atlas:<new-version> --only-fixed 2>&1 - If the latest stable tag still has CVEs, also check the
latesttag — atlas rebuilds it frequently with updated Go toolchain and dependencies:
Ifdocker pull arigaio/atlas:latest grype arigaio/atlas:latest --only-fixed 2>&1 docker run --rm arigaio/atlas:latest versionlatestis clean and the version is a reasonable increment (e.g. canary of the next patch), it is acceptable since the image is pinned by digest. - Once a clean version is confirmed, pull it and get its digest:
docker pull arigaio/atlas:<new-version> docker inspect --format='{{index .RepoDigests 0}}' arigaio/atlas:<new-version> - Update
app/controlplane/Dockerfile.migrations:FROM arigaio/atlas:<NEW_VERSION>@sha256:<NEW_DIGEST> as base - Update
ATLAS_VERSIONin the following files to match the latest stable version (used for CLI tool installation, not the Docker image):common.mk— theATLAS_VERSION=vX.X.Xin theinittarget.github/workflows/test.yml— theATLAS_VERSION: vX.X.Xenv variable
4b. Go stdlib / Go module vulnerabilities (backend)
Symptom: SARIF location is a Go binary (e.g. /app, /server), package is stdlib or a Go module
Fix options (in order of preference):
Option A — Upgrade Go version (for stdlib CVEs):
Use the upgrading-golang skill to bump the Go version in go.mod and all Dockerfiles.
Option B — Upgrade a specific Go dependency (for third-party modules):
- Identify the affected module from the SARIF
purlsfield (e.g. `pkg:golang
Установить vulnerability-remediation в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadEditTaskmcp__claude_ai_Chainloop__list_products_with_versionsmcp__claude_ai_Chainloop__get_frameworks_compliancemcp__claude_ai_Chainloop__list_pieces_of_evidencemcp__claude_ai_Chainloop__download_evidence_by_digestFAQ
Что делает скилл vulnerability-remediation?
Reviews vulnerability policy violations for the chainloop project recorded in Chainloop and performs fixes in Dockerfiles or go.mod. Use when asked to fix vulnerabilities, review CVEs, or remediate security issues in chainloop.
Как установить скилл vulnerability-remediation?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл vulnerability-remediation запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic