Command Palette

Search for a command to run...

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

moai-ref-supply-chain

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

Software supply-chain defensive security reference: SBOM generation and verification (SPDX / CycloneDX), dependency-confusion defense, malicious-package…

modu-aiот modu-ai★ 1 264 звезды на GitHub

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

Software Supply-Chain Defensive Security Reference

Defensive practitioner reference for hardening a software supply chain — the chain from source, through build, to the artifact a consumer installs. Every section is framed as defense, hardening, detection, or verification: it describes the weakness, how to detect it, and how to prevent it, never how to exploit it. AI/LLM-specific supply-chain concerns (model and training-data provenance) live in moai-ref-llm-security; web-application vulnerabilities live in moai-ref-owasp-checklist.

Target Use

Apply when building, releasing, or consuming software components. The threat model is an untrusted supply chain: any dependency you pull, any build step you run, and any artifact you ship may have been substituted, tampered with, or impersonated. The defenses below establish provenance (where did this come from?), integrity (has it been altered?), and hygiene (is this the component I meant to use?).

The Supply-Chain Trust Boundaries

The core defensive insight: each hand-off in the chain is a boundary where a component can be substituted or tampered. Establish provenance and verify integrity at every hand-off.

Boundary Substitution / tamper risk Primary defense
Source resolution (name → package) Dependency confusion, typosquatting Namespace scoping, install-time verification, name allowlist
Dependency download Compromised registry, MITM Lockfile pinning by hash, signature verification
Transitive closure Vulnerable or malicious deep dependency Transitive audit, depth limits, SBOM diff
Build Tampered build, injected step SLSA provenance, isolated/ephemeral builders
Artifact publish Substituted artifact Sigstore signing, provenance attestation
Consumer install Unverified artifact accepted Signature + provenance verification at install/admission

SBOM — Generation and Verification

A Software Bill of Materials (SBOM) is the inventory of components in an artifact. It is the foundation for every downstream defense: you cannot audit, scan, or verify what you have not inventoried.

Format selection

The two open SBOM formats are interoperable; pick by ecosystem fit and consumer needs.

Format Steward Strength
SPDX Linux Foundation (ISO/IEC 5962 standard) License-centric; broad regulatory and legal acceptance
CycloneDX OWASP Security-centric; native vulnerability and dependency-relationship modeling

Minimum-element baseline

A useful SBOM carries at least the NTIA minimum elements: the supplier, the component name, the version, unique identifiers, the dependency relationships, the author of the SBOM data, and a timestamp. An SBOM missing dependency relationships is an inventory, not a graph — it cannot answer "what pulls in this vulnerable component?".

Generation and verification practice

The standard SBOM-generation tool (syft is the de-facto cross-ecosystem standard that emits both SPDX and CycloneDX) inspects an artifact or source tree and produces the component inventory. Generate the SBOM as part of the build, not after — an SBOM generated later cannot see build-time-only dependencies. Verify an SBOM by re-generating it from the artifact and diffing: a drift between the shipped SBOM and the re-generated one signals tampering or an incomplete original.

  • Generate at build time so the SBOM reflects the exact resolved closure.
  • Attach the SBOM as a signed attestation (see Sigstore below) so a consumer can trust the inventory, not just read it.
  • Diff SBOMs across releases to surface a newly-introduced or version-bumped dependency before it ships.

Dependency-Confusion Defense

Dependency confusion (public disclosure, 2021) is when a resolver pulls a public package that shadows an intended private/internal package of the same name, because the resolver preferred the public registry. The defense is to make the resolver prefer — or exclusively use — the trusted source for internal names. This section is purely defensive: it describes how to prevent the substitution, not how to perform it.

Control Defensive rationale
Namespace / scope reservation Reserve the organization's package namespace on the public registry so an internal name cannot be claimed externally
Source pinning per name Configure the resolver to fetch internal names ONLY from the internal registry; never let an internal name fall through to a public registry
Install-time hash verification Pin every dependency to a content hash in the lockfile so a same-name substitution with different content is rejected
Registry routing controls Use a registry proxy that routes internal-namespace requests to the internal source and refuses public fallback for those names

Lockfile hash-pinning is the cross-cutting control here: package ma

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

Установить moai-ref-supply-chain в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл moai-ref-supply-chain?

Software supply-chain defensive security reference: SBOM generation and verification (SPDX / CycloneDX), dependency-confusion defense, malicious-package triage playbook, SLSA provenance levels, Sigstore / cosign signing and verification, package-registry hardening, typosquatting defense, and transitive-dependency auditing. Agent-extending skill that amplifies backend, security, and release-engineering work with production-grade defensive patterns for the software supply chain. NOT for: offensive techniques (dependency-confusion attack execution, malicious package authoring, registry exploitation), LLM/AI-specific security (see moai-ref-llm-security), web-app OWASP Top 10 (see moai-ref-owasp-checklist), or general API design (see moai-ref-api-patterns).

Как установить скилл moai-ref-supply-chain?

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

Скилл moai-ref-supply-chain запускает скрипты?

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

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

Сравнить moai-ref-supply-chain с