Final Unicourse'tan Çalış, Yüksek Notu Garantile!
Vizesine Unicourse'tan Çalış, Yüksek Notu Garantile!
Replacement for Docker Content Trust (DCT)
-
What do others use for ensuring the authenticity of images after downloading them with
docker pull?We’ve setup our CI build process to use docker for consistent, cross-platform builds. To ensure that our builds don’t use a malicious docker image (because the surface area of attack with TLS is enormous if you’re using X.509), we’ve been using DCT (Docker Content Trust).
Unfortunately, I just discovered that the official docker documentation says that DCT is being deprecated. Apparently this was announced last year, and in June this blog post was published with advice:
Cosign is not secure
We spent some time looking into cosign, but we discovered that the private keys aren't actually in the hands of the developer.
Rather, they use this complicated setup using very insecure X.509 to issue temporary certificates.
The result is that the OIDC identity provider (e.g., GitHub) extends the vector of attack significantly -- to probably tens of thousands of people -- that can publish a malicious image that will be accepted by cosign as "trusted"
Notation (Notary v2)
I also looked at Notation (aka “Notary v2”), but there’s no way to bootstrap the software safely, since (perplexingly) their tool for verifying the authenticity of images using cryptographic signatures itself can’t be verified using a cryptographic signature.
Alternatives
Are there any other alternatives that I can use to replace DCT to ensure the authenticity (using cryptography) of the container images that I download -- where the keys are actually held by the developer (thus significantly reducing the "insider threat" risk)?
What do you (or does your org do) to ensure that you’re not using maliciously-modified containers after pulling a new docker image?
-
What do others use for ensuring the authenticity of images after downloading them with
docker pull?We’ve setup our CI build process to use docker for consistent, cross-platform builds. To ensure that our builds don’t use a malicious docker image (because the surface area of attack with TLS is enormous if you’re using X.509), we’ve been using DCT (Docker Content Trust).
Unfortunately, I just discovered that the official docker documentation says that DCT is being deprecated. Apparently this was announced last year, and in June this blog post was published with advice:
Cosign is not secure
We spent some time looking into cosign, but we discovered that the private keys aren't actually in the hands of the developer.
Rather, they use this complicated setup using very insecure X.509 to issue temporary certificates.
The result is that the OIDC identity provider (e.g., GitHub) extends the vector of attack significantly -- to probably tens of thousands of people -- that can publish a malicious image that will be accepted by cosign as "trusted"
Notation (Notary v2)
I also looked at Notation (aka “Notary v2”), but there’s no way to bootstrap the software safely, since (perplexingly) their tool for verifying the authenticity of images using cryptographic signatures itself can’t be verified using a cryptographic signature.
Alternatives
Are there any other alternatives that I can use to replace DCT to ensure the authenticity (using cryptography) of the container images that I download -- where the keys are actually held by the developer (thus significantly reducing the "insider threat" risk)?
What do you (or does your org do) to ensure that you’re not using maliciously-modified containers after pulling a new docker image?
I tend to build my own containers for anything that matters, but that might not be a viable option.
-
I tend to build my own containers for anything that matters, but that might not be a viable option.
but how do you verify the sources of what you're fetching?
Is it coming from an unsigned git repo? That seems equally vulnerable..
-
but how do you verify the sources of what you're fetching?
Is it coming from an unsigned git repo? That seems equally vulnerable..
If you are pulling a docker hub image you already trust the source code, the base image, and the built image.
Building from source means you only need to trust 2 of those things now.
You can mirror the repo to your own corporate forge and run tests to make sure things are OK but at some point you do have to trust someone.
-
What do others use for ensuring the authenticity of images after downloading them with
docker pull?We’ve setup our CI build process to use docker for consistent, cross-platform builds. To ensure that our builds don’t use a malicious docker image (because the surface area of attack with TLS is enormous if you’re using X.509), we’ve been using DCT (Docker Content Trust).
Unfortunately, I just discovered that the official docker documentation says that DCT is being deprecated. Apparently this was announced last year, and in June this blog post was published with advice:
Cosign is not secure
We spent some time looking into cosign, but we discovered that the private keys aren't actually in the hands of the developer.
Rather, they use this complicated setup using very insecure X.509 to issue temporary certificates.
The result is that the OIDC identity provider (e.g., GitHub) extends the vector of attack significantly -- to probably tens of thousands of people -- that can publish a malicious image that will be accepted by cosign as "trusted"
Notation (Notary v2)
I also looked at Notation (aka “Notary v2”), but there’s no way to bootstrap the software safely, since (perplexingly) their tool for verifying the authenticity of images using cryptographic signatures itself can’t be verified using a cryptographic signature.
Alternatives
Are there any other alternatives that I can use to replace DCT to ensure the authenticity (using cryptography) of the container images that I download -- where the keys are actually held by the developer (thus significantly reducing the "insider threat" risk)?
What do you (or does your org do) to ensure that you’re not using maliciously-modified containers after pulling a new docker image?
You should use the cross post feature in Lemmy, the two square overlapping in the default UI, you have made 14 posts so answers are going to be all over the place.
With a cross posted post it consolidates a lot of replies to one post.
-
You should use the cross post feature in Lemmy, the two square overlapping in the default UI, you have made 14 posts so answers are going to be all over the place.
With a cross posted post it consolidates a lot of replies to one post.
Thanks. I assumed the client would figure it out automatically, but I guess that only works for links?
Is there a way to edit a post to indicate it's a cross-post?
-
If you are pulling a docker hub image you already trust the source code, the base image, and the built image.
Building from source means you only need to trust 2 of those things now.
You can mirror the repo to your own corporate forge and run tests to make sure things are OK but at some point you do have to trust someone.
With cryptographically signed images, you don't need to trust Docker Hub nor the source code nor the base image. You just verify the signature that could only have been made from the developer. You trust the private key and the developer only, which significantly reduces the vector of attack (publishing infrastructure, X.509, docker hub admins, etc) by magnitudes.
-
Thanks. I assumed the client would figure it out automatically, but I guess that only works for links?
Is there a way to edit a post to indicate it's a cross-post?
Not sure of you can convert a text post to a cross post.
At the least you could add a link to one post to hopefully gather the answers.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Kayıt Ol GirişÖnerilen Başlıklar
-
Attackers Exploit Critical Switchvox Flaw to Deploy Reverse Shells Without Credentials
Cybersecurity
1
-
Latvian officials resign after cyberattack exposes data on 1.2 million people | The Record from Recorded Future News
Cybersecurity
1
-
Nearly 750k had financial info, SSNs leaked in South Carolina loan company breach | The Record from Recorded Future News
Cybersecurity
1
-
-