News for hackers. Stuff that matters.
Re:Docker Hub Hacked – 190k accounts, GitHub tokens revoked,... by gtsteve on Saturday April 27, 2019 @06:10AM (#19764802)
It uses SHA-256 right? My understanding is that there isn't yet a workable collision attack on the SHA-2 family.

Regardless, I think it's certainly an excellent hardening step.

Re:Docker Hub Hacked – 190k accounts, GitHub tokens revoked,... by blattimwind on Saturday April 27, 2019 @06:42AM (#19764882)
Infosec in 2019: The server I download code from telling me the hash of said code is "certainly an excellent hardening step".
Re:Docker Hub Hacked – 190k accounts, GitHub tokens revoked,... by gtsteve on Sunday April 28, 2019 @11:59AM (#19771813)
Well I was approaching it from the point of view that you verify the image is correct and then you guarantee you'll always use that image and not some other version given that tags are mutable.
Re:Docker Hub Hacked – 190k accounts, GitHub tokens revoked,... by ithkuil on Saturday April 27, 2019 @01:20PM (#19766550)
Can't the hash be verified by the client too?
Re:Docker Hub Hacked – 190k accounts, GitHub tokens revoked,... by subway on Saturday April 27, 2019 @01:47PM (#19766700)
Sure, but who tells the client what the correct hash is?
Re:Docker Hub Hacked – 190k accounts, GitHub tokens revoked,... by krferriter on Saturday April 27, 2019 @05:06PM (#19767638)
If you're the entity who created the image you can retain the original hash and verify it against the downloaded copies. But that kind of defeats the purpose of being able to download docker images across distributed hosts.

They'd really need to be signatures attached to the images, not just hashes.

Re:Docker Hub Hacked – 190k accounts, GitHub tokens revoked,... by darkarmani on Saturday April 27, 2019 @10:03AM (#19765576)
Why do you need a collision? If you control the build, you control the sha-256 hash. But you can't sign it with a key that you don't have.
Re:Docker Hub Hacked – 190k accounts, GitHub tokens revoked,... by kbirkeland on Saturday April 27, 2019 @02:24PM (#19766890)
A hash only provides integrity. A signature provides integirty and authentication.
Re:Docker Hub Hacked – 190k accounts, GitHub tokens revoked,... by jjeaff on Saturday April 27, 2019 @07:20PM (#19768249)
Integrity is all you need as long as you have verified the original image that you have saved the hash for.
Re:Docker Hub Hacked – 190k accounts, GitHub tokens revoked,... by kbirkeland on Sunday April 28, 2019 @02:12PM (#19772663)
Is your argument that you only need integrity if you verified the authenticity out of band?
Re:Docker Hub Hacked – 190k accounts, GitHub tokens revoked,... by jjeaff on Tuesday April 30, 2019 @02:06AM (#19785508)
No, I'm saying you only need integrity to validate you are getting the same thing each time. If I checked and made sure an image is safe, then I can save that hash and know that as long as the has matches, I'm always getting that same safe image.
Re:Docker Hub Hacked – 190k accounts, GitHub tokens revoked,... by kbirkeland on Sunday May 05, 2019 @11:55AM (#19833403)
This is useless without authentication though. You're opening yourself up to attacks on the first retrieve. Sure, you can make sure you're getting the file they want you to have, but you don't know _who_ is giving you that file.