News for hackers. Stuff that matters.
Re:Why does APT not use HTTPS? by Arnt on Monday January 21, 2019 @05:15AM (#18959239)
You're downloading form a third-party volunteer. What protocol can provide privacy given that condition?
Re:Why does APT not use HTTPS? by arghwhat on Monday January 21, 2019 @05:26AM (#18959293)
There is a huge difference between the third-party knowing what you're doing, and everyone in between knowing what you're doing.

The HTTPS everywhere movements are attempting to make privacy the default rather than the exception, but are of course done knowing that the server will always know whats up. The point is to make it so that only the two parties concerned, the server and the client, comprehend the communication rather than the entire world

Re:Why does APT not use HTTPS? by Arnt on Monday January 21, 2019 @06:18AM (#18959551)
Okay, suppose I want to know what packages you're installing and updating. I have two routes:

1. I gain access to a router near you.

2. I rent a sizable server at the hetzner/ovh/… location that's closest to you and volunteer to run a mirror for the OS you're using.

Both are somewhat uncertain (your traffic might flow via a different route, you might be load-balanced to a different mirror) but the uncertainty seems comparable. Option 2 seems so much easier that I have a real problem seeing the point of even attempting option 1 if all I want is the information option 2 would give. Perhaps someone can explain?

Re:Why does APT not use HTTPS? by arghwhat on Monday January 21, 2019 @06:51AM (#18959704)
You'd have to take control over my mirror. Making a new mirror will not get you any traffic unless people actively choose to use it. Therefore, your option 1. is to control a part of the public route, and option 2. is to control the mirror of my choice.

However, any argument against using encryption for privacy for APT can equally be applied to any other traffic. Do you trust your public internet route enough to let your traffic run authenticated, but unencrypted? Chats, news, bank statements, software updates?

Even if content cannot be modified, it can still be blocked or made public. There are quite a few nosy governments that would like to know or block certain types of content, software packages included.

Re:Why does APT not use HTTPS? by toast0 on Monday January 21, 2019 @10:37AM (#18961019)
Lots of people use the nice hostnames like ftp.us.debian.org. It wouldn't be too hard to get included in that host name if you're determined. I haven't looked into the requirements, but I'm pretty sure it's a) be technically competent enough to run a mirror (it's not hard) b) have a lot of bandwidth. c) be organizationally competent enough to convince Debian that a and b will hold for a long time.
Re:Why does APT not use HTTPS? by AstralStorm on Monday January 21, 2019 @07:53AM (#18960030)
You will instantly spot blocking because apt reports connection failure and hash failure and replay attack on update list is ineffective.

As for privacy, eh? It is visible you're connecting to a debian mirror and what size of update list you're getting. Barring that, indexing packages by size is trivial.

You want true privacy, you'd have to use Tor or such.

Re:Why does APT not use HTTPS? by ric2b on Tuesday January 22, 2019 @11:08AM (#18969269)
Option 1 is hard for individuals but easy for state actors.

For example, they might want to know what versions you're running (by looking at what updates you _didn't_ download) so they can target you or lots of people at once.

Re:Why does APT not use HTTPS? by Xylakant on Monday January 21, 2019 @07:01AM (#18959758)
Since it's known to which host you connect and the pattern of access is known to, it's a reasonable guess that it would be possible to infer the list of packages that you're downloading from observing the encrypted traffic.
Re:Why does APT not use HTTPS? by rhacker on Monday January 21, 2019 @05:25AM (#18959292)
Instead of JUST that third party knowing what (possibly vulnerable) packages you have, you are now letting everyone know what possibly vulnerable packages you have.
Re:Why does APT not use HTTPS? by altfredd on Monday January 21, 2019 @07:02AM (#18959762)
> you are now letting everyone know what possibly vulnerable packages you have.

Erm, what?

The number of people, who can listen to (much less — modify) your traffic is very small. It is basically your ISP (who is supposed to offers you services in good faith, not spy on you) and a number of engineers, who maintain Internet backbone. That's far from "everyone". Some SSL evangelists make it sound like everyone's traffic is permanently broadcasted to everyone else in the world, but it is not.

As for "vulnerable packages", the most certain sign, that someone does not install security updates, is lack of traffic between them and update servers. But that's orthogonal to use of encryption.

Re:Why does APT not use HTTPS? by DoctorOetker on Monday January 21, 2019 @09:10AM (#18960436)
"everyone" in this context obviously means everyone on the path, and any attackers that have compromised nodes along the path. See the Belgacom hack by 5 eyes...
Re:Why does APT not use HTTPS? by monocasa on Monday January 21, 2019 @01:38PM (#18962397)
And I those attackers can still tell everything based on the target IP and the payload sizes.
Re:Why does APT not use HTTPS? by DoctorOetker on Monday January 21, 2019 @02:49PM (#18963024)
there is no proof that this is true in general, so it is worth trying to find 1) an inefficient way in order to 2) postulate an efficient way...

for example, overlay onion routing, size blurring by appending random length random bits,... with oblivious transfer even the APT-server does not know what you downloaded (but that would require a large amount of information..., nevertheless oblivious transfer might still be a useful tool when used as a primitive, perhaps just to send a list of bootstrap addresses for p2p hosting of the signed files etc...)