News for hackers. Stuff that matters.
Re:Why does APT not use HTTPS? by loeg on Monday January 21, 2019 @06:09PM (#18964498)
This is addressed in the "privacy" section. Basically, your premise is wrong. TLS does not provide additionally privacy for this usecase. The short summary is: the size of transmitted data makes inferring what you've downloaded from a public file mirror trivial for a passive observer, even with TLS.
Re:Why does APT not use HTTPS? by hopler on Monday January 21, 2019 @07:46PM (#18965025)
Perhaps apt should pad its downloads
Re:Why does APT not use HTTPS? by JdeBP on Tuesday January 22, 2019 @07:27AM (#18967771)
This has already been discussed in this very discussion.

* https://news.ycombinator.com/item?id=18959470

Re:Why does APT not use HTTPS? by loeg on Monday January 21, 2019 @07:57PM (#18965085)
Padding doesn't solve the privacy problem without unacceptable tradeoffs (i.e., pad all packages to the same size).
Re:Why does APT not use HTTPS? by sattoshi on Monday January 21, 2019 @08:52PM (#18965361)
Pad all packages to the nearest in a list of sizes?
Re:Why does APT not use HTTPS? by loeg on Monday January 21, 2019 @09:56PM (#18965653)
How many bits of privacy are you willing to give up here? Debian only has about 48,000 packages. That's almost 16 bits, total, with perfect privacy — all packages enlarged to the same size.

You can select a list of sizes trading off collisions (2 packages with same size => 1 bit of privacy; 4 => 2 bits, etc). But the most you ever get is (nearly) 16. The amount of padding you need to even get 2 bits of privacy (giving up almost 14) on the long tail of large packages is going to be "a lot" and it grows as you want more bits.

Re:Why does APT not use HTTPS? by shasheene on Tuesday January 22, 2019 @04:54AM (#18967202)
Some further pros and cons of padding is discussed elsewhere in the thread.

Providing privacy for the packages that, including dependencies, are less than 100MB in size is something that's probably worth doing. The cost of padding an apt-get process to the nearest say, 100MB, is not necessarily infeasible as far as bandwidth goes.

Instead of padding individual files, how about a means to arbitrarily download some number of bytes from an infinite stream? That would appear to be sufficient to prevent file size analysis (but probably not timing attacks).

Exposing something like /dev/random via a symbolic link and allowing the apt-get client to close the stream after the total transfer reaches 100MB would appear to make it harder to infer packages based on the transferred bytes, without being very difficult to roll out.

Re:Why does APT not use HTTPS? by dcbadacd on Monday January 21, 2019 @08:58PM (#18965398)
It's a big step from "just `cat` the traffic to know" to "start comparing file-sizes and hope no sizes match" in terms of privacy.
Re:Why does APT not use HTTPS? by JdeBP on Tuesday January 22, 2019 @07:27AM (#18967770)
Re:Why does APT not use HTTPS? by loeg on Monday January 21, 2019 @09:58PM (#18965661)
I'd say you're flat out wrong — there is no big step. We'll have to agree to disagree, I guess.