Discussion about out-of-band ruleset updates
(@Hainish, @cowlicks:)
There's a code branch https://github.com/EFForg/https-everywhere/tree/sign-rulesets that is intended to allow ruleset updates out-of-band from regular version updates. The idea is that HTTPS Everywhere will request ruleset updates from a central EFF server periodically with the effect that rulesets will update from time to time without the version year.month.day changing.
Privacy Badger does something similar for a whitelist it uses. Recently there were some problems with the updates which lead to a frustrating experience for me, see https://github.com/EFForg/privacybadger/issues/1466. After I understood what was happening, I argued against it, see for example https://github.com/EFForg/privacybadger/issues/1466#issuecomment-315792144 and the related discussion.
I think this is also a bad idea for HTTPS Everywhere and I'd like to understand why this change is being made. I would at least like to avoid the user experience of things cycling between breaking and working for no apparent reason that I had with Privacy Badger.
@Bisaloo I found this ( https://tor.stackexchange.com/a/1879 ) regarding HTTPS Everywhere and Tor from @diracdeltas :
When you enable SSL Observatory, we POST a copy of the certificate chain you saw to an EFF server, along with the time, server domain, and server IP address. We don't keep logs of your IP address, but for extra anonymity, we try to send the POST request through Tor if you have Tor installed. You don't have to be running Tor browser for this to happen.
So you already have to have Tor installed and running, it doesn't entirely come with HTTPS Everywhere.
In WebExtensions, to make a request over a proxy, you would need a native application installed separately on the user's system.
One example of an extension that needs a native application to work is DNSSEC Validator.
@jeremyn There are places where ANY request to foreign websites is suspicious, let alone using Tor, so your argument is not valid. S3 is often used by many websites to host files. Not sure why a request to S3 can be suspicious.
@koops76 As you say, "There are places where ANY request to foreign websites is suspicious...". HTTPS Everywhere needs to be very careful before forcing customers to make these requests.
@jeremyn They're screwed either way, to install HTTPSE they would have to access Google, Mozilla or EFF servers.
@koops76
they would have to access Google, Mozilla or EFF servers.
The user can download the extension while they're somewhere safe as I described before and then disable all updates while they're somewhere less safe.
I'm not really sure where you're coming from in this discussion. The point I'm making at the moment is something like, "Unexpected and uncontrollable web requests can potentially put some users at risk, so HTTPS Everywhere shouldn't do that." Do you entirely disagree with that? Do you think the UI suggestions I made wouldn't fix it? Do you think the potential risk is so small that it's not worth the added complexity? It's okay if we disagree but I'm not sure what we are disagreeing about, exactly.
It's still possible to detect the redirects HTTPS Everywhere makes.
Need a code example?
@koops76 "Need a code example?" No, I can imagine what you mean.
It might help to recognize what I'm talking about as a form of user fingerprinting. Just because it's possible to attack/observe a user in one way doesn't mean HTTPS Everywhere should go out of its way to make it easier to do that in other ways. For example the EFF talks about steps people can take to defend against browser fingerprinting at https://panopticlick.eff.org/about#defend-against even though a complete defense is effectively impossible against a really determined adversary.
I'll remind participants in this discussion to maintain a respectful tone with regard to other contributors and maintainers. The tone of this thread has veered at times to be less than respectful, and this is a project that necessitates an atmosphere where everyone feels welcome, regardless of difference of opinion or background.
We shouldn't prescribe use cases for HTTPS Everywhere users, but assume that all sorts of populations around the world will be using the extension. This includes populations at risk, and be mindful that these at-risk populations are located in globally disparate locations. We should also assume that there is a point of diminishing returns when considering the different scenarios users may face, and at some point make a decision given our best judgement. This is all we can do without rabbit-holeing into a discussion of calculated risk and which group deserves more attention vis-a-vis another at-risk group. At some point you just need to make the call based on the available information.
On a related note, will it be possible to route ruleset updates through Tor? I seem to recall that the SSL observatory had this option.
In the past, we've detected if Tor was already running on a system before making the option available to enable submission of certificates through Tor. This entailed first attempting a SOCKS request on port 9150, which is the Tor daemon running in Tor Browser. As a fallback, we've tried 9050 to see if a system Tor process was running.
As certificate introspection is not (yet) available within WebExtensions, we don't have this code included in HTTPS Everywhere. It is important to keep in mind that use of Tor is in most cases detectable, unless the user is using a pluggable transport which specifically tries to obfuscate traffic analysis. This itself may put users at risk.
Choosing a single-purpose domain for ruleset distribution, with a fallback, seems the most reasonable path at the moment. The usage of HTTPS Everywhere is already fingerprintable. It has a massive effect on browser traffic patterns which is trivial to detect. So the fact that the domain has a single purpose, to distribute rulesets, places our users in no additional risk. The fallback option has to be dealt with internally, pursuant to our privacy policy, so that any CDN that we use will be able to see the IP addresses of our users. We have to ensure that they aren't irresponsible with this data, which is a matter of policy.
@Hainish I think the primary server should be CDN, if that's blocked, the extension should make a request to a non-CDN server.
@Hainish Could you please specifically respond to my suggestions in https://github.com/EFForg/https-everywhere/issues/12606#issuecomment-330706469 to let users enable/disable/reset out-of-band updates? If that's simply not an option then I'd like to know.
@jeremyn my comments will have to wait until next week. We don't even have a launch date for this feature so comments here should not be time pertinent.
On September 22, 2017 6:12:34 PM PDT, Jeremy Nation [email protected] wrote:
@Hainish Could you please specifically respond to my suggestions in https://github.com/EFForg/https-everywhere/issues/12606#issuecomment-330706469 to let users enable/disable/reset out-of-band updates? If that's simply not an option then I'd like to know.
-- You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/EFForg/https-everywhere/issues/12606#issuecomment-331595736
-- Sent from my Android device with K-9 Mail. Please excuse my brevity.
@Hainish Okay, that's fine.
I wish this feature had been discussed with the community before substantial work had been done. It may have set a better tone for this discussion and issue https://github.com/EFForg/https-everywhere/issues/12087 ("Use Ed25519 instead of RSA for ruleset signatures"). A simple issue a few months back like "We're thinking about delivering ruleset updates outside of the normal browser update systems, with a switch over in <QX 201Y>. Here are some reasons why. We already do something like this in PrivacyBadger. Thoughts?" Then people can have their say with the proper expectations and at least feel heard even if you ignore specific suggestions in the end.
I think there are some misconceptions that should be cleared out: Concerning that the CDN may cooperate with some government to hand out the IPs of those who use HTTPS Everywhere: this doesn't make sense, since as mentioned the use of HTTPS Everywhere is already fingerprintable, and there's nothing spectacular about using it. In fact, this didn't even prevent the Tor Project from bundling a pluggable transport that relies mainly on Amazon AWS (meek-amazon) which is the one that is mainly used in China, despite that the usage of Tor is more dangerous and suspicious.
I agree that HTTPS Everywhere can be fingerprintable but I don't concede that because it's fingerprintable by some means, we should give up trying to hide its presence entirely.
I suppose the normal attack involves watching what requests a user makes after a user visits a page that is known to be covered by a complex HTTPS Everywhere ruleset. If the user makes requests that are consistent with HTTPS Everywhere rewrites, then the user has probably installed HTTPS Everywhere, otherwise they probably have not. Please correct me if I misunderstand the argument.
However suppose that the monitor is trying to retroactively detect its presence, and the ISP only has a deduplicated, non-protocol-linked list of domains the user visited. Maybe the ISP has limited resources for storing user traffic, or maybe the ISP is a public VPN service which deliberately keeps limited logs. In this case it may be impossible to detect HTTPS Everywhere's presence, unless one of those domains is something obvious like effcdn.org.
I also disagree that HTTPS Everywhere's presence is always entirely unremarkable. You could track a person's location if you can detect HTTPS Everywhere, they have HTTPS Everywhere installed on a mobile device, and they are going into an area where almost no one else is going to have it.
The key here is really how much informed choice the user has about controlling these updates. If the user is informed about these updates, they can shut them off, and (ideally) they are opt-in, then the EFF can go all out supporting it. They can configure update channels using every major CDN service, configure updates through Tor with a variety of plugins, everything. Then the user can decide what works best for them. On the other hand, if the user is forced to accept these updates with no choice and is not informed about what's going on, the EFF needs to exercise extreme caution and act in a way that is safe for literally every conceivable user. (And I believe it is impossible for the EFF to exercise enough caution in this case.)
@cschanaj
Also it's easier for authorities to monitor DNS requests for the first domain than to block that domain and then ask the fallback mirror's CDN provider to provide logs. Also such thing is basically useless, what do you gain from learning that someone uses HTTPS Everywhere?
@HTTPSNowhere
You could track a person's location if you can detect HTTPS Everywhere, they have HTTPS Everywhere installed on a mobile device, and they are going into an area where almost no one else is going to have it.
Except of this, nothing. Good idea @jeremyn.
My argument is that the use of third party CDN needed to be justified.
AFIAK, there is little information an adversary can gain. It is like the situation when websites claiming that they are collecting anonymous data and nothing personal will be collected. Since people are using their service and thus they should trust them, but people still want to block the tracking (especially the third-party ones).
When it comes to privacy, different people might have their own concerns. IMHO, falling back to a third party CDN when EFF domains are not accessible might not be a good idea.
P.S. You can also track the user habit, possible time-zone/ occupations of a https-everywhere user by observing the regular pings to the EFF domains. Here I assumed that some users do quit the browsers when they finish everything and they have quality internet connections, such that disruption to the pings are mostly because of the user habits.
P.S.2 There is limited support of https-everywhere on tablet/ phone, https-everywhere users are almost certainly using Firefox/ Tor despite whatever the user-agent header tell. This will also expose the existence of another extension installed which spoof user-agent. :smile:
@cschanaj EFF servers may not handle such load without CDN. It will take about a few terabytes of data per month.