5 Software Supply Chain Security Best Practices for Development Teams
Software supply chain security for container workloads breaks down into five areas: trusted content, build security, pre-deployment verification, access and policy controls, and continuous monitoring. Concrete practices include pinning images by SHA256 digest and CI actions by commit SHA, producing signed SLSA provenance in in-toto format, generating SBOMs at every build and pairing them with VEX, scoping pipeline credentials per job, and baselining container runtime behavior. The recommended path is incremental, starting with minimal base images and dependency integrity. The guide closes by promoting Docker Hardened Images and Docker Scout.
Related posts
- What is Software Supply Chain Security?
Docker easyNoviceSoftware supply chain security protects every stage of software delivery, from source and dependencies through build, registry, deployment and runtime, rather than only first-party code. The main vectors are dependency confusion, typosquatting, maintainer takeovers, build system compromise, tampered or lookalike container images, and CI/CD pipeline exploitation. The recommended defenses are trusted minimal base images, signed artifacts, SLSA provenance attestations, SBOMs generated automatically on every build, admission-time image verification and runtime sandboxing. Policy should be enforced by infrastructure at each pipeline transition rather than by documentation.
- CNCF Score project improved its security posture by joining the Docker-Sponsored Open Source Program
Docker mediumAdeptScore, a CNCF Sandbox project, hardened its container image supply chain by moving images to Docker Hub, adding Docker Scout PR comparisons that report CVEs, package changes and policy compliance, and switching base images to Docker Hardened Images. That switch removed 22 packages and 2 CVEs from the Node sample app. Releases now go through Docker's reusable github-builder workflow, which produces signed SLSA provenance and SBOMs via GitHub OIDC and signs its build cache. Docker Hub OIDC connections replace long-lived access tokens with short-lived per-workflow credentials. Before/after workflow YAML and a cosign verification command are included.
- The Journey to Secure the Software Supply Chain at Microsoft
Engineering@Microsoft easyNoviceMicrosoft secures its software supply chain by threat-modeling its CI/CD platform, identities and developer devices, risk-scoring each threat, and folding supply chain requirements into the Security Development Lifecycle with policy enforcement such as blocked pushes, broken builds and gated releases. Builds use secure-booted, ephemeral, network-isolated agents and SBOMs are validated at release. On the open-source consumption side, the S2C2F framework routes packages through Azure Artifacts for caching and dependency-confusion protection, flags vulnerabilities in PRs, and gates ingestion on typosquatting and malware checks without imposing an approved-package list. Access is hardened with phish-resistant MFA, just-in-time admin access and replacing PATs with managed identities, while a detection coverage matrix based on MITRE ATT&CK monitors source, build and release systems.
- How to Generate an SBOM for Container Workflows
Docker mediumAdeptGenerating SBOMs at build time, rather than scanning finished images, captures resolved transitive dependencies, statically linked components and multi-stage build contents that heuristic post-build scanners miss. An actionable SBOM is complete, records resolved rather than declared versions, is regenerated with every build, is cryptographically bound to the image digest, and validates against the SPDX or CycloneDX schema. In CI, generate from the final stage via BuildKit attestations and attach the SBOM as an OCI attestation. Validate component counts and digest binding before pushing, and pin generator tools to commit SHAs because they run with elevated build access. SPDX is the default for container images, while CycloneDX suits security-focused workflows.
- Hardened Images Explained: Fewer CVEs, Smaller Attack Surface
Docker easyNoviceMost container CVEs come from unused packages in general-purpose base images (often 400+ packages when an app needs 20–30), not application code. Hardened images address this with three properties: aggressive minimization (no shells, package managers or debug tools), continuous patching on defined SLAs, and verifiable supply chain metadata such as SBOMs, SLSA provenance, VEX data and signatures that enable CI policy gates. Container hardening works at the image layer and differs from VM/CIS OS hardening. Slim, Alpine or one-off distroless images alone don't qualify, and the piece closes by promoting Docker Hardened Images, with a free Apache 2.0 Community tier.