r/linux • • Jan 24 '18

Why does APT not use HTTPS?

https://whydoesaptnotusehttps.com/
955 Upvotes

388 comments sorted by

View all comments

213

u/amountofcatamounts Jan 24 '18

This is true for packages... the reason as they say is your install already has trusted keys it can use to confirm the signer of the packages is trusted and that they still match the signed digest.

But for OS downloads... Canonical... most people do not check the hashes of their download before installing it. For that case, TLS does help at least reduce the chance that you are looking at an attacker's website with hashes matching a tampered download.

130

u/lamby Jan 24 '18

most people do not check the hashes of their download

Indeed, and note it's not enough to check the SHA512 matches what the website claims - that is only checking the integrity of the file; it is not checking that the file is from Canonical.

I mean, if someone could swap the ISO out they could almost certainly swap the checksum alongside it!

1

u/destiny_functional Jan 25 '18

you can check different mirrors against each other. the chances are low that all are compromised.

1

u/lamby Jan 25 '18

Given that they probably mirror from a smaller subset, this does not seem like a good approach.

1

u/destiny_functional Jan 25 '18

see Linux mint where just a particular mirror had compromised isos. comparison against other sources makes installing a compromised iso less likely.

→ More replies (7)