Re:Debian apt security update: man-in-the-middle arbitrary c...
by DaSHacka on Wednesday November 04, 2026 @09:02AM
(#50365648)
AFAIK this isn't actually true for any distribution. This would break selfhosted mirrors and their clients hosted on airgapped networks, and create a single point of failure for users.
The way packages are validated actually is through the same channel as you download the packages themselves from (IE your mirror), they just are signed with the Debian package signing key(ring), of which only a select few maintainers have authorized private keys for.
This does mean an adversary (whether a MITM if you're using HTTP or malicious operator on the mirror server itself) can technically serve you old versions of an (officially signed) package indefinitely and your package manager would be none the wiser, but otherwise this approach actually works quite well.
Re:Debian apt security update: man-in-the-middle arbitrary c...
by dinosaurdynasty on Wednesday November 04, 2026 @11:56AM
(#50368370)
The signatures do expire (which is an annoyance when working with snapshot.debian.org).
I think the idea is that debian distributes the hash themselves through their domain, and mirrors offer the downloads either through http or https. So that you don't need to trust the mirror, you just verify the debian given hash. Only weakness would be a hash collision or a cve like this.