10 ms·
Cloudflare ReCAPTCHA De-Anonymizes Tor Users
- gcb0 10y agodoes that captcha works without JavaScript?
- mikegerwitz 10y agoThe one they're describing does, yes.
- gcb0 10y agostill can't understand why people use TOR with javascript enabled.
- pyromine 10y agoI didn't realize just how fragile TOR is. . . While I understand that remaining anonymous requires adjusting your browser habits somewhat extensively, the fact that a ReCAPTCHA is enough to (theoretically) de-anonymize a user seems to me that it's not able to anonymize at all when browsing. While TOR may be useful for evading firewalls, my general perception of the project has changed from general anonymity tool to a tool tailored for very specific use. Granted, this is probably what my understanding always should have been.
- walrus01 10y agoIf I were a national signals intelligence agency with a correspondingly huge multi-billion dollar budget, it would be trivial to run a large percentage of tor exit nodes... You could probably achieve it with 500 individual 1U servers colocated with random hosting companies around the globe at a budget of $250/mo * 500 = $125,000/mo, which is a tiny drop in the bucket compared to the traffic analysis capability it would give you, with the ability to capture all traffic entering/exiting each node's world-facing public ipv4/ipv6 interfaces. edit: The major challenge would probably be continually violating various hosting companies' TOS/AUPs and getting service shut off, which would be a continual churn of provisioning new physical servers, shipping them to locations, arranging for plausibly deniable billing, etc.
- nickpsecurity 10y agoI formulated the attack myself with your numbers seeming similar. It's one of reasons I didn't trust Tor. The success rate described in Snowden docs indicate NSA might be doing this experimentally. I don't think they're fully committed to point where they're running most nodes or anything. Being careful. The difficulties wouldn't be as much as it seems. They probably wouldn't even be shut down that often. Just a small number of high-bandwidth nodes from front companies would net them a lot of intel. They could also partner with Five Eyes and Euro agencies as they all seem to want to de-anonymize Tor users. Each could have fronts doing it with their own operational techniques to muddy the situation up. Again, probably already do in a small way. We haven't even discussed QUANTUM-ing the Tor servers. They really, really need memory-safe machines & implementations from CPU up if they're expecting to withstand high-strength attackers. Haven't looked at code or supported OS's in a while but I'm guessing default implementation doesn't fit that bill. ;)
- fweespeech 10y agoWouldn't running your own entry node be enough protection still (assuming you could guarantee it wouldn't be compromised)? As far as I'm aware, control of entry & exit is required for these sorts of attacks. Running the entry node with a consistent entry point and using it as a random walk crawler with a real browser would seem to be enough for personal use as long as you aren't a criminal worth active, serious investigation that is targeted to reveal you.
- tedunangst 10y agoThese attacks require observation of entry and exit.
- nickpsecurity 10y agoExactly. Taps further enables that. Malware even more. Just a metadata, recording system could fo plenty and not take much bandwidth to leak.
- 10y ago
- 0xmohit 10y ago> I didn't realize just how fragile TOR is. . . It's JavaScript that causes it (you could choose to disable it [0]). The FAQ [1] warns of it: But there's a third issue: websites can easily determine whether you have allowed JavaScript for them, and if you disable JavaScript by default but then allow a few websites to run scripts (the way most people use NoScript), then your choice of whitelisted websites acts as a sort of cookie that makes you recognizable (and distinguishable), thus harming your anonymity. ... Until we get there, feel free to leave JavaScript on or off depending on your security, anonymity, and usability priorities. [0] https://www.torproject.org/docs/faq#DisableJS https://www.torproject.org/docs/faq#DisableJS [1] https://www.torproject.org/docs/faq#TBBJavaScriptEnabled https://www.torproject.org/docs/faq#TBBJavaScriptEnabled
- deleted 10y ago[deleted]
- onecooldev24 10y agoNot only javascript, you can have a http server that can send timed responses/packets and that would still work. If network traffic is being monitored at the modified server and ISP.
- mikeash 10y agoThat was exactly my reaction upon seeing the description of the problem. Seems like the title of the article should really be, "Tor kind of sucks at anonymizing users." If all it takes is 25 requests sent in quick succession, then surely half the web pages out there share this same problem just from loading various resources.
- rohit89 10y agoAs I understand it, this is a fundamental problem for any low latency network. You could fix the problem by introducing delays but that would break the low latency requirement.
- mikeash 10y agoMakes sense. I wonder if that could be made a tuneable parameter, so users could choose what sort of tradeoff they preferred. That might impose unacceptable storage costs on the router nodes, at the least.
- SEJeff 10y agoTor was sponsored by the USG to allow intelligence informants to not be uncovered. That is the "very specific use" it was originally envisioned for. See: http://cryptome.org/0003/tor-spy.htm http://cryptome.org/0003/tor-spy.htm
- marcosdumay 10y agoAnonymity is fragile. One can only ever break it, never fix.
- mikegerwitz 10y agoTraffic analysis is always a problem; this is a specific case, but I'm not sure this is anything new. Many attacks on Tor are facilitated by or require JavaScript. Consider disabling it rather than executing arbitrary, untrusted software on your computer automatically.
- daxorid 10y agoTraffic analysis is always a problem Not always. High-latency mix networks with fixed message size and randomized transmission are very robust against traffic analysis. The elephant in the room is, as usual, PEBKAC. The demand by users for low latency will always be the killer for anonymity networks.
- cuonic 10y agoOne way around this is to disable javascript for ReCAPTCHA, the service provides you with a rather primitive HTML form with checkboxes over the images, generating only one request on submit.
- happyslobro 10y agoYeah, this again. You can't secure your system, if you are running your adversary's code. Tor is upfront about this, this is why Javascript is disabled by default, and why there is a warning if you enable it globally. I suppose this does make for decent clickbait headlines though.
- subliminalbrad 10y agoTorBrowser does not disable Javascript by default, and neither does TAILS.
- happyslobro 10y agoIt is shipped with the noscript plugin enabled, that part is pretty important. You aren't just referring to the fact that JS is disabled via a plugin, are you?
- gnud 10y agoI wonder why these anti-abuse systems don't use proof-of-work. Instead of a captcha, let the browser chug for 5 seconds, and then POST the solution in order to gain a temporary access cookie. Sure, this could be attacked - but not at scale, and that's the whole point of the capchta anyway, right?
- mikegerwitz 10y agoThat requires JavaScript. CloudFlare does have a JS-only challenge, which presumably does this type of thing, but this has a couple different problems. From a security perspective, you're executing arbitrary software, which is unwise, especially if you're looking for anonymity. The other issue is that the software is also proprietary. https://support.cloudflare.com/hc/en-us/articles/204191238-What-are-the-types-of-Threats- https://support.cloudflare.com/hc/en-us/articles/204191238-W... "During a JavaScript challenge you will be shown an interstitial page for about five seconds while CloudFlare performs a series of mathematical challenges to make sure it is a legitimate human visitor." Related: I have started trying to get into contact with webmasters of sites that enable JS Challenges; my template is at the bottom of this page; it'd be great if others could do the same: https://gitlab.com/mikegerwitz/dotfiles/blob/master/emacs.d/mail.org https://gitlab.com/mikegerwitz/dotfiles/blob/master/emacs.d/...
- gnud 10y agoGood point. The Cloudflare capthchas I've seen seemed to use Javascript, but maybe it's just incredibly good CSS. Interestingly, while a javascript calculation might leak more information to CloudFlare (since they might collect other info beseides the result of a proof-of-work function), it would probably leak less to anyone trying to analyze tor traffic from the outside? Seems to me like it would be harder to correlate the two ends of the tor circuit.
- mikegerwitz 10y agoIt'd be harder to do traffic analysis, yes, though I really wonder why it makes so many requests to begin with. I'd like to see an analysis of the CAPTCHA. Considering that they allow it without JS enabled, I wonder why they'd need any requests at all.
- jgrahamc 10y agoThis short piece doesn't have much detail. But if reCAPTCHA is usable to deanonymize Tor users then I would like to know about it in detail so I can do something about it.
- tedunangst 10y agoI didn't see anything that makes it unique to recaptcha. Any fingerprint able traffic pattern that can be observed coming and going will work. I could make a website that adds random(1, 64) one pixel images to each page. As you browse the site, you'll be broadcasting 6 bits of identifier with every click.
- jerf 10y agoI don't see anything that makes this unique to CloudFlare, either. (You imply this in your point, but given the specificity of the accusation, I think it's worth clearly pointing out.)
- SwellJoe 10y agoI believe the "unique to CloudFlare" element is that CloudFlare effectively sees traffic for significant portions of the web...but is one entity. So, a powerful enough hostile actor (say, a state) would only need to compromise one entity (CloudFlare) to exploit users of thousands of websites, including many major ones. Er, well, two entities, because they also need entrance data. So, if a state were to compromise an ISP and CloudFlare it would give that state a lot of Tor users identities. Very few small-ish entities have such a large reach and can interject themselves into so many connections on the web.
- jerf 10y agoBut if we're talking about The Adversary, then they're already deeper in than CloudFlare will ever be, so... what's different?
- 10y ago
- muthdra 10y ago"No one is that incompetent." Yeah I don't think so. Beautiful article, otherwise.
- lumberjack 10y agoBrowser signatures are probably easier still.
- tlrobinson 10y agoAre there any anonymity networks that transmit streams of packets between nodes at a constant rate regardless of whether it's being actively used? Obviously it would be a very bandwidth hungry network, though if exit node bandwidth is currently the limiting factor (is it?) then maybe not entirely impractical.
- sp332 10y agoThere are a few systems based on the Dining Cryptographers protocol, but the ones I've seen implemented are very slow and don't support many users.
- sp332 10y agoIsn't this explicitly outside Tor's threat model? https://svn.torproject.org/svn/projects/design-paper/tor-design.html https://svn.torproject.org/svn/projects/design-paper/tor-des... See section 3.1
- bostik 10y agoIn other news, a global passive adversary can use traffic analysis, timing data, and known patterns to deanoymise a Tor user. The only "new" thing here was the rough traffic pattern analysis of CF captcha page.
- mabbo 10y ago>No one is that incompetent. Well, I'm not sure I'd go that far.
- LinuxFreedom 10y agoIt is an USA company - that is enough to not trust them. We do not need any more evidence, there is enough out there about gag orders, secret courts, worldwide compromise of network security. USA tec company inhabitants and founders, read this: please move out of the country, build your companies in other places, do it now. There is no time to waste. You can not repair the system, that corrupt bureaucrats have irreversibly destroyed. It will take one or two generations to rebuild a freedom oriented democracy in some other place. Currently Europe still seems to be a good starting point, especially now that the main USA influence channel GB is out. Please give up the false hope and act now. Get out of that failed state! Freedom can not be rebuild in a fascist system without help from the outside - you can do help much better from outside! People who still stay in USA will be seen as cooperators by history, the window of opportunity is closing, hurry on and get out asap. Help to defend freedom in other places!
- deleted 10y ago[deleted]
- ZoF 10y agoWhat exactly are you ranting about here? Any specifics beyond 'the US is a failed state get out now facism'?
- eeZah7Ux 10y agoWhy the downvotes?
- tedunangst 10y agoSeems a little tangential to the original article.
- Johnny555 10y agoWhy is this phrased as if it's Cloudflare's fault? If it's this easy for a side effect of a recapcha image to de-anonymize a Tor user, then this seems like a failing of the Tor protocol that they should fix. Maybe they need to introduce more jitter, repackage requests into a single stream with consistent (or randomized) packet size, or pad the packets with random data.
- rohit89 10y agoIntroducing jitter would mean increasing latency and generally slowing down your browsing.
- softawre 10y agoas a tradeoff for security? Ok.. I mean, using a VPN is slower than not, but tons of people use them
- rohit89 10y agoThe effect will be exaggerated since tor traffic goes through three nodes and random jitter would need to be added for each. In general, beating traffic analysis in a low latency network is a hard problem. You could have perfect anonymity if you could add arbitrary delays but that would make the network unusably slow.
- Johnny555 10y agoSo make it a configurable option that you can turn on and off when you need it. Having to wait a few seconds for a web page to load seems like a small price to pay to avoid government agents banging on your door because you're looking at "subversive content".
- rohit89 10y agoThe delays would have to be longer than that, not just a few seconds. You're looking at minutes to hours for strong guarantees. Also having a configurable option could make you more fingerprintable.
- matt_wulfeck 10y agoIt's bizarre that this article is critical of Cloudflare. If TOR can't stand up to a recaptcha without leaking PII, then it sounds like TOR ultimately needs to be fixed. I stand by Cloudflare. So much malicious traffic comes through Tor that administrators need to do a lot to protect themselves from it.
- rvern 10y agoAlmost all the pages I see CAPTCHAs on with Tor have absolutely nothing to protect. Arguably the website owners who use CloudFlare are far more to blame than CloudFlare itself. Nevertheless, I believe CloudFlare should stop using reCAPTCHA and create a challenge system that does not require JavaScript, and does not require sending requests to any website other than the website being visited. I like their proposed solution[0] of automatically creating an onion service for websites using CloudFlare and redirecting Tor users there. [0]: https://blog.cloudflare.com/the-trouble-with-tor/ https://blog.cloudflare.com/the-trouble-with-tor/
- deleted 10y ago[deleted]
- mmaunder 10y ago"The Tor design doesn't try to protect against an attacker who can see or measure both traffic going into the Tor network and also traffic coming out of the Tor network. That's because if you can see both flows, some simple statistics let you decide whether they match up." https://blog.torproject.org/blog/one-cell-enough https://blog.torproject.org/blog/one-cell-enough Work on a client to try and mitigate the risk of timing attacks: https://news.ycombinator.com/item?id=9585466 https://news.ycombinator.com/item?id=9585466
- djsumdog 10y agoI remember someone at a security conference talking about a kid at a University who sent a bomb threat via Tor. The University simply looked their their logs to see who was connecting to known Tor nodes, narrowed it down by time and found the kid. Source: http://www.theregister.co.uk/2013/12/18/harvard_bomb_hoax_charge/ http://www.theregister.co.uk/2013/12/18/harvard_bomb_hoax_ch...
- jsmthrowaway 10y agoThat situation becomes quite relevant when debating "VPN then Tor" or "Tor then VPN," which I've seen people come down on both ways. Ultimately it depends on who the threat is. Example: https://thetinhat.com/tutorials/darknets/tor-vpn-using-both.html https://thetinhat.com/tutorials/darknets/tor-vpn-using-both....
- the8472 10y agoDon't most recaptcha http requests go to google, i.e. wouldn't google be the one with the information/control necessary to de-anonymize?
- captainmuon 10y agoHuh, I always thought that Tor breaks up traffic in a random, but deterministic (not data dependent) way - sometimes joining data from two packets into one network packet, sometimes splitting packets and holding data for a while [x]. That's how I explained the jitter to myself. Sometimes a connection would be really fast, and sometimes it would hang on a single packet for hundreds of ms. Seems I was mistaken. In this case, it would have helped a bit, since an attacker would not have seen the characteristic staccato of the reCAPTCHA exchange. They would have seen a few kB in either direction, in 40-100 packets, over a period of a few seconds. If the implementation is clever, on end would even have a different signature than the other. At least this is something I would have included in Tor. Now that I think about it, randomly introduced delays (from the outside) might actually be a technique to deanonymize users.... ([x] You'd generate packet sizes and minimum transmission times from a known seed. First packet is 501 B, 24 ms later a packet of 2048 B, then 15 ms later one of 1718 B, and so on. If there is not enough data after a grace period, pad with junk. If you constantly need more time to send packets than allowed, or need to pad, then adjust the model. Also choose the model to match regular traffic if possible. Disclaimer: I'm just making this up on the spot and am no expert, but it seems plausible and obvious to me.)
- Illniyar 10y agoA lot of comments here talk about recaptcha having a distinctive traffic signature, but I don't understand this. Why does recaptcha have a distinct signature and if it does couldn't an attacker just make a distinct signature without recaptcha? And why does recaptcha have a traffic signature that can distinguish between users? I mean how does a simple request response create a distinct traffic?
- captainmuon 10y agoRight, include Javascript (or heck, just a bunch of images of different sizes) that open requests in Morse code. Long request, long request, short request, long request... Or, my favorite, the binary search (assuming you control the server / the network in front of the server / some exit nodes, and can monitor the traffic of your targeted user): have sites that cause transmissions for some time (long running JS / requests, or just a lot of content the user interacts with). Freeze 50% of the servers connections. Is the user still connecting? Then s/he is in the 50%. If not, in the other. Repeat until the is user matched to activity on the server.
- mr_potato_face 10y agoOne issue here is that recaptcha's traffic signature allows for a passive attacker. So instead of needing to modify the website a user visits, or trick them into going to a domain you control, you are able to just look at the traffic logs and identify them without them knowing. I'm not too sure about what defines the "distinctive" signature of recaptcha, but I expect timing of when packets of certain sizes were sent (e.g. loading 9 images in quick succession will generate larger packets, and then you often get the incremental couple images with human-length delays between them).
- deleted 10y ago[deleted]
- hewhowhineth 10y agoI stopped visiting sites with image recognition reCAPTCHAs. It has to be one of the worst UX patterns ever devised. It's dirt cheap to automate them away so it doesn't really stop any self-respecting bot maker, and it comes at a price of being a huge pain in the ass for a real user. Every time I run into them I felt used and abused. It's really sad. So much brain power and this is what they come up with. Apologies for the rant, couldn't help it. ReCAPTCHA is one of very few things I genuinely hate.
- mpitt 10y ago> It's dirt cheap to automate them away Have any examples?
- deleted 10y ago[deleted]
- danthejam 10y agoHaving a dynamic IP from the 3rd world, I can't help but notice how so many of the sites I visit are behind CloudFlare. 70% of the time I have to solve a captcha the first time I enter a domain during my browser session. This space could really do with more competitors on their same level.
- libeclipse 10y agoIf an attacker ran the entry and exit node for Alice's connection, they could exploit this technique and not need access to the relay node.