19 ms·
Yes, but reproducible builds allow anyone to rebuild the code and verify that the compiled binary release corresponds to the upstream source code. Without dete
by bheadmaster 3y ago
Yes, but reproducible builds allow anyone to rebuild the code and verify that the compiled binary release corresponds to the upstream source code.
Without deterministic builds, it's possible for the attacker to switch the compiled binary release and sign it with a stolen key with nobody noticing.
- chii 3y agobut if your threat model includes the key being stolen as a potential threat, then signing with said key would then be meaningless.
- rocqua 3y agoIt really limits the value of a stolen or leaked key. Similarly it limits the amount of trust you need in the key holder. If the NSA could steal a debian key (or coerce a packager), without deterministic builds, they could put a backdoor in a popular Debian package with barely any chance of getting caught. Deterministic builds make it much easier to detect this. That makes the value of such a stolen/coerced key much lower. Making it much less likely this gets attempted, and likely stopping anyone who used to try this attack.
- nonrandomstring 3y agoNo. In the latter case the "upstream source code" is the key, and the compiler is the functional transformation under scrutiny. Think of a triangle where we want two fixed (trustworthy) points to ascertain the third. Here our trusted principles are a repository (better multiple repositories) of source code, and a deterministic executable from someone who has already compiled using a known good compiler.
- bheadmaster 3y agoPerhaps, but with deterministic builds, anyone can read the source code, recompile, verify integrity of the signed code, and even sign it themselves as a confirmation of its integrity. The more (independent) signatures there are, the more you can trust the precompiled binary.
- penteract 3y agoThat argument would mean that SSL transparency logs are pointless. I'd argue that if the key being stolen/misused becomes more easily detectable, signing with said key becomes more meaningful.
- charcircuit 3y agoSSL transparency logs are not a thing. Certificate Transparency logs only show when new certificates are issued. If a certificate is stolen it is of no use.