Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check integrity of third party dependencies #13

Open
mgrottenthaler opened this issue Sep 23, 2021 · 0 comments
Open

Check integrity of third party dependencies #13

mgrottenthaler opened this issue Sep 23, 2021 · 0 comments
Labels

Comments

@mgrottenthaler
Copy link

To ensure that end users really download the correct packages and do not fall victim to man in the middle attacks or supply chain attacks (third party dependency is manipulated) we recommend to verify the integrity of all third party dependencies.

We could identify three types of third party depdencies:

  • Docker images
  • pip packages
  • Node packages
  • Ubuntu/CentOS packages

Node already has a built in integrity check. Docker and pip support integrity check, but it's not checked by default.

We recommend to enable this integrity check in Docker and pip.

For docker we can use the digest of the image

https://docs.docker.com/engine/reference/commandline/pull/#pull-an-image-by-digest-immutable-identifier

Content trust in Docker

From https://docs.docker.com/engine/security/trust/

In pip we can add the hash to the requirements.txt file
https://pip.pypa.io/en/stable/cli/pip_install/#hash-checking-mode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant