moai-ref-supply-chain

Hardens software supply chains with SBOM, SLSA provenance, and Sigstore verification practices.

Updated Aug 29, 2026
One-click install
npx skills add https://github.com/Seung-zedd/secure-file-upload --skill moai-ref-supply-chain-seung-zedd
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: moai-ref-supply-chain
Source: https://github.com/Seung-zedd/secure-file-upload/tree/main/.claude/skills/moai-ref-supply-chain
Command: npx skills add https://github.com/Seung-zedd/secure-file-upload --skill moai-ref-supply-chain-seung-zedd

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Modern software is assembled from hundreds of dependencies, and any one of them can be substituted, tampered with, or impersonated between source and deployment. This Skill provides a defensive reference for establishing provenance, integrity, and hygiene at every hand-off in the software supply chain, so teams can detect and block compromised components before they ship. ## Core Features & Use Cases - SBOM Generation and Verification: Guidance on SPDX and CycloneDX formats, NTIA minimum elements, build-time generation with syft, and SBOM diffing to detect tampering. - Dependency-Confusion and Typosquatting Defense: Controls for namespace scoping, source pinning, lockfile hash-pinning, and name-similarity detection to prevent package substitution. - SLSA Provenance and Sigstore Signing: Explains SLSA Build levels L0-L3, keyless cosign signing, and consumer-side signature and identity verification at install or admission time. - Use Case: Before adopting a newly flagged dependency, follow the malicious-package triage playbook to quarantine the suspect version, verify its provenance, inventory exposure via the SBOM, and report upstream. ## Quick Start Ask the agent to audit your project's dependency supply chain and recommend SBOM generation, lockfile hash-pinning, and Sigstore verification controls for your release pipeline.

Frequently Asked Questions about moai-ref-supply-chain

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate an SBOM for my software project?▼

Generate an SBOM at build time using syft, which emits both SPDX and CycloneDX formats from an artifact or source tree. Include the NTIA minimum elements such as supplier, component name, version, and dependency relationships, and attach it as a signed attestation.

What is the difference between SPDX and CycloneDX SBOM formats?▼

SPDX is stewarded by the Linux Foundation and is license-centric with broad regulatory acceptance, while CycloneDX is an OWASP project focused on security with native vulnerability and dependency-relationship modeling. Both are interoperable, so choose based on ecosystem fit and consumer needs.

How do I prevent dependency confusion attacks?▼

Prevent dependency confusion by reserving your organization's namespace on public registries, configuring resolvers to fetch internal names only from the internal registry, and pinning every dependency by content hash in the lockfile. Hash-pinning ensures a same-name substitution with different bytes fails verification.

What SLSA level should production deployments require?▼

Production environments typically require SLSA Build L2 or higher, meaning signed provenance from a hosted build platform. High-assurance environments should require L3, where the build runs in an isolated, ephemeral environment with non-forgeable provenance.

How does Sigstore cosign verify software artifacts?▼

Cosign verifies an artifact's signature and checks the signer identity against an expected identity policy using keyless signing with short-lived OIDC-bound certificates. Verification should happen at install or admission time, and unsigned or wrong-identity artifacts are rejected.

Why is version pinning alone not enough for dependency security?▼

Version pinning without hash pinning still accepts substituted bytes published under the same version string. Pinning by content hash in the lockfile ensures a same-version substitution fails the integrity check on install.