Okay I did some research on tor but I still don’t know if I understand this correctly.
From what I understand the ISP (or whatever is your last proxy, like your VPN etc.) can easily detect if you are using tor. So for example if I connect to tor at 10:00 and enter a website X at 10:01 and send like 100MB and leave tor and website at 10:03, the isp can tell i was on tor for 3 minutes and send roughly 100MB. So, if the police or administrators check the website X they can tell someone at 10:01 to 10:03 send the same amount as me and can pretty much assume it could be me. Add to that a bunch more information isp would have over long time, how does tor mitigate this?
edit: To make this more clear I mean, a second example: The ISP the logs show that I send (roughly, due to encryption) ~90MB of encrypted data over tor at 10:01 and downloaded ~35MB at 10:02. And on the backend of the website at the time only one (my account) uploaded 85MB at 10:01 and downloaded 30MB at 10:02. Wouldn’t that eliminate 99% of other tor users?
You got the right idea about timing/correlation attacks, but you’re missing one piece that makes it harder to de-anonimize you. An attacker needs to see both sides of the tor tunnel in order to de-anonimize a user. Let’s say an attacker can already monitor the website’s traffic and see a connection from a tor exit node. Now they need to see the traffic entering the tor network. They can do it if one of the following is true :
- They control your entry/guard node
- They are somehow able to monitor the whole internet and logging every connection to a tor entry node
- They have have access to your ISP’s logs (assuming the ISP is logging every connection to a tor node with data transfer sizes)
- They already have a motive for monitoring your traffic specifically
Keep in mind that a connection witnessed at the exit could come from any country, and that your tor client will randomly pick a small set of guard nodes and will only ever talk to these tor nodes. This makes it unlikely that any of the conditions for successfully carrying a correlation attack is true. It can be done (and probably has been done in the past) but it is a costly attack so unless you’re a high profile criminal the risks are close to zero.
Most of the times tor users were de-anonimized, it was because of their own mistakes. I’ll edit this comment later from my PC to add links to stories in which tor users got caught
Edit :
- Here’s how Ross Ulbricht (founder of the first dark net marketplace) got caught (and here’s part 2) :was first suspected because of pseudonyme re-use, onion site found because the marketplace was leaking the server’s actual IP, no fancy attacks on tor needed
- Student caught sending fake bomb threats through Tor to avoid exams : got caught because investigators guessed the motivation to avoid exams, then got access to network logs for the whole university. This student was the only person using Tor on this network at the time emails were sent
- CP onion site users busted : After hacking into onion CP websites, law enforcement planted these website with a known exploit affecting older versions of the Tor browser to leak the user’s real IP
What you are talking about, OP, is timing analysis or timing attacks. The Tor Project has information on that specific threat vector on their website:
It is possible for an observer who can view both you and either the destination website or your Tor exit node to correlate timings of your traffic as it enters the Tor network and also as it exits. Tor does not defend against such a threat model.
In a more limited sense, note that if a censor or law enforcement agency has the ability to obtain specific observation of parts of the network, it is possible for them to verify a suspicion that you talk regularly to your friend by observing traffic at both ends and correlating the timing of only that traffic. Again, this is only useful to verify that parties already suspected of communicating with one another are doing so. In most countries, the suspicion required to obtain a warrant already carries more weight than timing correlation would provide.
In other words: yes, assuming a threat model where the threat actor can observe both the traffic leaving your machine and the traffic going to the website in question, you might be linked to the target website through timing analysis (though the content of the exchange would still be protected by encryption).
I have wondered if this style attack could be made much harder, by fuzzing both times and sizes. Ofc that could severely degrade the near real time experience. But let’s say a delay was added. Bob’s 12K message to Alice is rounded up to 128K. It mixes with many other 128K rounded messages from Frank to Jane, and Tina to Winston. Then it comes out later, sent to its destination. It’s harder to correlate the timing. It is no longer clear whether the message Alice got was from Bob, Tina, or Frank, b/c all of them were in the same timing window.
The delay might be unacceptable for many uses. But it might be OK for others. I’m fine loading a web page in a tab and doing sth else for a while as I wait. And size rounding doesn’t help for larger data. So it’s far from perfect. But maybe it would help in some cases?
Maybe the delay could be reduced by lowering the fuzzing in high traffic circumstances, like if 10 users connect to the same website the fuzzing could be higher, but when 100, be lower (like, only 2 people mix) as there’s much more data going on. I can see how that could improve privacy.
Yah! I had the same thought about traffic.
I send lots of data over tor regularly to lots of different places, legitimately. All my ISP knows is that a certain amount of data went over Tor; they don’t know the content or destination.
If all you use Tor for is one single illegal activity, and the police already know the destination and suspect it was you, Tor won’t do much.
If you use Tor to spread out who holds information about who you are and where you go, and rotate entry and exit nodes regularly, all they know is that you use Tor.
Okay, so one potential defense against this is just adding more noise to the Tor connection so the data isn’t that clear?
Make it a habit to use Tor for stuff that doesn’t involve logging in to anything (don’t trust exit nodes). This helps not only you, but also exit node operators.
Yes, if the ISP can see how much data went over tor, but that data was sent to and from say 100 different places it’s much harder or impossible to match up the logs from a website to that.
I don’t think tor is meant to conceal the fac that you are using it at all after all it was originally develop by US Navy.
And in you example if you are accessing high traffic site you’ve gon plausible deniability on you side(assuming there a multiple tor users using same site while you are using it).
Even in your updated example the paper trail shows that ip x is having similar patterns to the ones that you ISP provided, that maybe is a ground for a warrant but thats is hardly a proof that you are using the site. At the face value all you have is recon of you sung the internet and person/machine at a different location using site of interest.
You can also use a bridge if you want to prevent your ISP or government from knowing you are even using Tor at all
I am a bridge. I would imagine it would just look like it’s going 24x7. None of the traffic is actually mine, but it would probably be indistinguishable from mine.
Tor is vulnerable to timing attacks. You need to be on a high traffic system with lots of different users like a popular commercial vpn to avoid timing attacks. Some of them have traffic analysis built in.
Tor is not a silver bullet. It is intended to make it impossible for a single compromised point of failure on the network to be used as a surveillance point. This may be of dubious value if many nodes in the network are compromised.
no, your isp can’t know which website you visited while using tor because your ip doesn’t reach such website. in fact before reaching your website you hopped through 3 ip, or nodes, which is what allows for such feature. 1 hop the way vpns do would be to easy to pin on you. the only way to compromise this would be if a bad actor owns 51% of the tor nodes.
But given þe scenario OP suggested, if surveillance is watching a particular site, þe corroborating evidence - time and data size - might be enough to add arguments to a case where oþer evidence exists. It’s highly circumstantial evidence, but if LE has 100 separate instances of such evidence on OP? Or perhaps OP lives in a country where “circumstantial” is sufficient? Or maybe in þe US where all þat’s needed is to cry “terrorist” and OP gets a visit from jackboots?
tor spoofs everyones timezone to utc so your time is not really accurate.





