Geralt_of_Rivia: AFAIK GOG uses InnoSetup to make its installers nowadays. I know they also used RAR archives in the past but you can not rely on .bin files being verifiable by any run of the mill unpacker. The only unpacker I am aware of that can certainly test them is innoextract. But that tests every single file within an archive one by one and doesn't have a checksum for the entire archive. On bigger games that can take a very long time and that's why this method isn't recommended.
Are you saying that these .bin files can pass a test in an extraction tool but still be corrupt somehow? Does this apply to any archive in general or is that just specific to GOG installers?
Geralt_of_Rivia: If you assume that GOG was hacked then all bets are off anyway. Because the hackers might have just as well stolen GOG's secret key and can sign any malware they want in GOG's name until the key gets revoked.
Point taken. In ideal conditions I assume you would store the secret key in a different and secure location though.
Geralt_of_Rivia: In theory, installers consisting of only one .exe can be checked with the signature. Most of the time that works just fine. But sadly not always. Because GOG doesn't care much about the signatures. I have found one case where the signature doesn't verify because GOG made a mistake and even though that would be trivial to correct they pretty much ignored my support ticket on that topic.
Interesting, thanks. Good to know they don't give a sh...
Geralt_of_Rivia: On top of that, if you insist on something that is practically impossible to tamper with: Up until about a year ago GOG's signatures used the SHA1 digest algorithm, which has been considered unsafe for about 10 years now. So any game that hasn't been updated in 2024 has a signature that can be tampered with.
Yes, I noticed. Point taken.
Braggadar: Primarily because Windows likes digital signing of installers to notify the user of the legitimacy of the publisher before allowing the install to continue.
Good to know. Thanks for clarifying.
Braggadar: Which checksums are you referring to? The third-party tools grab the checksums from files on GOG's own servers via the API.
I assumed those tools grabbed them from an external source like Github, because I know the MD5 checksums are available there. They don't show up for me here, but I'm not using any browser addons either. So these are actually officially sourced from GOG? I don't really understand why they don't use something more secure than MD5 then. Weird.
AB2012: As Braggadar said, signing installer .exe's is more to stop Windows throwing up a UAC (User Account Control) permission dialog when installing if the installer needs to do something like write to HKLM registry branch or add a codec to Windws\System32 and the user is a "User" (non-Admin) account.
Thanks!
timppu: I think the only believable case of GOG installers being tampered is if someone is downloading them from pirate sites.
Perhaps. Makes you wonder why software developers sometimes include secure checksums and cryptographic signatures on their official websites though. You're saying those are just there to protect people in case they download the software elsewhere?
Sorry to the OP for perhaps going a bit off topic, but I'm learning new things.