4 ms·
There's a big difference, privacy-wise, between being able to say "X is talking to this debian mirror and thus probably running debian" and "X is downloading ex
by skywhopper 8y ago
There's a big difference, privacy-wise, between being able to say "X is talking to this debian mirror and thus probably running debian" and "X is downloading exactly these packages from this debian mirror".
- fps_doug 8y agoThe post you replied to outlined a way to determine which packages were downloaded for the HTTPS way, so I don't get what you're trying to say here.
- xorcist 8y agoThe point being made is that the fact that X just talked Y bytes to this Debian mirror is enough to know exactly which packages were downloaded. The argument that https obfuscates which packages you download is not a good one, and may cause users to unnecessarily worry about the implications (and conversely, that they end up "more safe" if that was not the case). If that type of privacy is desirable you should probably use something like Tor.
- DoctorOetker 8y agoits not because a naive implementation of privacy enhanced APT would fail that all implementations would failt at protecting privacy. Concatenating all the packages and a variable length noise string together, should go a long way. It would be more fruitful to discuss the different ways an attacker might deduce what software was installed from a naive implementation: download sizes, download date (i.e. new update available for package P, then a substantial fraction of users who were downloading from the server that day were probably installing P etc... In theory an onion router might substantially improve the situation if the attacker has a hard time identifying which server the user is talking to, and thus making it hard to identify if the user is even installing anything at all... sadly I don't trust TOR as long as I can't exclude a specific attack scenario I have always suspected about TOR but never actually known to be present...
- brazzy 8y ago> its not because a naive implementation of privacy enhanced APT would fail that all implementations would failt at protecting privacy. Concatenating all the packages and a variable length noise string together, should go a long way. Sure, but then you are not talking about "just use HTTPS", you're talking about creating your own protocol and requiring all APT packet sources to speak that protocol, requiring a specialized server software, where currently they can just use whatever HTTP server they want. Switching the whole infrastructure and installed base over to that would be a massive multi-year project, not just a handful code and configuration changes.
- DoctorOetker 8y agoNote I use the phrase "naive implementation" and was never talking about nor clamoring for "just use HTTPS". The real discussion is not "blindly use HTTPS, or leave it like it is", for me the real interesting question is: can we design a package distribution system that preserves privacy against nation state level actors? can we virtually force those to attack the ATP servers themselves? could we use oblivious transfer ? could we design a fresh minimalist onion router (as opposed to bloated TOR) for package distribution?
- marcosdumay 8y ago> can we design a package distribution system that preserves privacy against nation state level actors? That's a great question. Also, can we do it on top of the current Debian infrastructure (HTTP and everything)? Or do we need to change anything?
- brazzy 8y ago> Also, can we do it on top of the current Debian infrastructure (HTTP and everything)? I'm pretty sure that is not possible, because the current infrastructure is just plain old HTTP file servers (anything that can sling bits will do) run by whoever fancies being a part of it.
- kstrauser 8y agoWhen I say `apt-get install foo` and it brings in 47 other packages, the problem gets exponentially more difficult. "He downloaded 1,432,509,104 bytes; what packages were those?" is more or less O(2^n): https://en.wikipedia.org/wiki/Knapsack_problem https://en.wikipedia.org/wiki/Knapsack_problem If you download exactly one package, it may be easy to deduce which one it was (assuming that the protocol overhead is identical each time, and that changing timestamps and nonces doesn't affect the byte length whatsoever, etc.). If you download more than one at a time, which is common with Debian, then the problem is a whole lot harder.
- q3k 8y agoAn HTTPS stream can be side-channel (ie size, time) broken down into black-box HTTP/1 requests quite easily. Remember, even with Connection: Keep-alive, you still have to request every file synchronously after you're done with the previous one.
- loeg 8y ago> Remember, even with Connection: Keep-alive, you still have to request every file synchronously after you're done with the previous one. Wait, why? I don't know of any reason HTTP clients can't pipeline requests.
- AstralStorm 8y agoThey can but they do not because servers are broken (and terribly so) and it brings less than zero gain for big files. See, debian does not want to manage specific mirror server features if they don't have to. If they were in that position they'd make their own protocol.
- loeg 8y agoRight, that makes sense. So it's not so much a client limitation as a minimum common denominator for their hosting infrastructure.