supply-chain-security-expert
БесплатноБез исполняемых скриптовНе проверенSecure the path from dependency to deployed artefact: SBOMs, dependency scanning, build provenance, artefact signing and CI/CD integrity. Use when the user…
от personamanagmentlayer★ 46 звёзд на GitHubОб этом скилле
Supply Chain Security Expert
Most of what ships is code nobody on the team wrote. OWASP ranks software supply chain failures among the highest-impact categories in the 2025 Top 10, and EU regulation (NIS2, and the Cyber Resilience Act) now makes dependency management a compliance obligation rather than an engineering preference.
Core Concepts
The Attack Surface
| Vector | Example | Primary control |
|---|---|---|
| Malicious package | Typosquat, or a maintainer account takeover | Pinning, provenance, install-script review |
| Compromised dependency | Legitimate package backdoored in a release | SBOM plus continuous scanning |
| Dependency confusion | Internal package name resolved from a public registry | Scoped registries, explicit source pinning |
| Build system compromise | CI injects code into the artefact | Hermetic builds, provenance attestation |
| Artefact tampering | Registry image replaced after publication | Signing, digest pinning, admission policy |
| Credential theft in CI | A leaked token publishes a malicious release | OIDC federation, least-privilege tokens |
Know What You Ship
You cannot patch what you cannot enumerate. An SBOM is the inventory — generated at build time from what actually went in, not written by hand.
Provenance Is Stronger Than Scanning
Scanning tells you about known vulnerabilities. Provenance tells you that this artefact was built from this commit by that pipeline. When a new advisory lands, scanning finds it; when a build system is compromised, only provenance does.
SBOM
Generate at build time, store as a build artefact, attach to the release.
# From a container image, a filesystem, or a lockfile
syft packages ghcr.io/acme/api:1.4.2 -o cyclonedx-json > sbom.cdx.json
syft packages dir:. -o spdx-json > sbom.spdx.json
# Scan the SBOM rather than re-resolving dependencies
grype sbom:sbom.cdx.json --fail-on high
osv-scanner --sbom sbom.cdx.json
CycloneDX suits security use; SPDX suits licence compliance. Producing both costs one extra command.
An SBOM is only useful if it is queryable when an advisory lands:
# "Are we affected by the log4j-style advisory in package X?"
jq -r '.components[] | select(.name == "log4j-core") | "\(.name)@\(.version)"' sbom.cdx.json
Store SBOMs per release, indexed by artefact digest, retained as long as the artefact runs anywhere. The question always arrives after the release.
Dependency Hygiene
Pin, and pin transitively
npm ci # lockfile only; fails if package.json disagrees
pip install --require-hashes -r requirements.txt
cargo build --locked
go mod verify
npm install in CI can resolve differently from local. npm ci cannot — it is
the difference between a reproducible build and a hope.
# requirements.txt with hashes: the registry cannot substitute content
cryptography==43.0.1 \
--hash=sha256:8d09d05439ce7baa8e9e95b07ec5b6c886f548deb7e0f69ef25f64b3bce842f2
Review what you add
Before a new direct dependency: is it maintained, does it have more than one maintainer, what does it pull in transitively, what licence, and does it run install scripts?
npm view <pkg> maintainers time.modified
npm ls <pkg> --all # who actually depends on it
npx license-checker --summary
docker run --rm -v "$PWD:/src" aquasec/trivy fs --scanners vuln,license /src
Disable install scripts by default and allow them explicitly:
# .npmrc
ignore-scripts=true
Most package-manager compromises execute at install time. This one line removes that class.
Prevent dependency confusion
# .npmrc — internal scope resolves only from the internal registry
@acme:registry=https://npm.internal.acme.com/
//npm.internal.acme.com/:_authToken=${NPM_TOKEN}
# pip.conf — never mix; --extra-index-url silently prefers the highest version
[global]
index-url = https://pypi.internal.acme.com/simple
--extra-index-url pointing at both an internal and the public index is the
dependency confusion vulnerability, not a mitigation: pip picks the highest
version wherever it lives.
Vulnerability Management
Scanning produces more findings than anyone can fix. Triage by exploitability, not by CVSS alone.
osv-scanner --lockfile package-lock.json --lockfile requirements.txt
grype ghcr.io/acme/api:1.4.2 --fail-on critical --only-fixed
trivy image --severity HIGH,CRITICAL --ignore-unfixed ghcr.io/acme/api:1.4.2
Triage questions, in order:
- Is the vulnerable code path reachable from our application? Reachability analysis eliminates the majority of findings.
- **Is it exploitable in our
Установить supply-chain-security-expert в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteEditBash(npm:*, pip:*, syft:*, grype:*, cosign:*, docker:*, git:*, osv-scanner:*, trivy:*)GrepGlobВложенные файлы
FAQ
Что делает скилл supply-chain-security-expert?
Secure the path from dependency to deployed artefact: SBOMs, dependency scanning, build provenance, artefact signing and CI/CD integrity. Use when the user mentions supply chain security, SBOM, CycloneDX or SPDX, SCA or dependency scanning, Sigstore or cosign, SLSA, provenance and attestation, a compromised or typosquatted package, or when the task involves hardening a build pipeline or answering a vendor security questionnaire about dependencies.
Как установить скилл supply-chain-security-expert?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл supply-chain-security-expert запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub