The CHAINS software supply chain recommendations
Based on our readings and research, we came to the following conclusions.
– The Chains team
CHAINS Recommends
CHAINS recommendations are meant to be directly applicable, with state of the art solutions.
- CHAINS recommends designing, implementing and enforcing reproducible builds
- CHAINS recommends the usage of dependency pinning, via hashes.
- CHAINS recommends the usage of automated dependency bots such as Renovate and Dependabot. Chains recommends activating auto-merge of dependency updates, together with a strong test suite.
- CHAINS recommends the usage of static vulnerability scanners on all commits of the main branch. This contributes to protecting against insider attacks (eg xz).
- CHAINS recommends disabling dynamic evaluation of code (aka eval) in production
- In NodeJS, this is
--disallow-code-generation-from-strings
doc
CHAINS Encourages
These items are harder to achieve than the recommendations above, because of lack of maturity.
- CHAINS encourages transparency logs over releases/packages
- CHAINS encourages pushing build attestations on high-integrity ledgers such Sigstore/Rekor
- CHAINS encourages using functional package managers in CI (Guix, NIX)
- CHAINS encourages automated publication of SBOMs as part of the release process (tutorial for Github release)
- CHAINS encourages source-based package registries, such as Go. This increases transparency and auditability, and reduces the attack surface of malicious tampering.