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 :
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 :