Maybe I’m completely wrong about everything I’m going to say and in that case we can laugh about this theory I guess but here it goes…

Most people are only worried about if the VPN provider is keeping logs or not. But even if they don’t keep logs you could still be tracked by anyone who can see incoming and outgoing connections to the VPN server.

This would be easier to explain if I drew some images but I hope you understand anyway with just text. What it looks like for these adversaries is:

  1. they know your IP and who you are.
  2. They see you connect to a VPN server.
  3. They see VPN server connecting to many different servers and they don’t know which one is you.

But when it comes to number 3, they could actually figure out which one is you.

Obviously, if you are the only person connected to the VPN server they will see that there is no one else besides you using it and then any outgoing connection from the VPN server must be you.

If there are just a few users. Maybe three users are just connected to the VPN server but not doing anything, just idle. Another user is spending time reading reddit. Then you connect to the vpn server and within a minute a new outgoing connection from the vpn server starts and goes to lemmy. Pretty good guess that is you from their perspective. And to make the guess even better, when the connection to lemmy ends, you decide to immediately end your connection to the VPN server. I’m confident this would be enough evidence in a court and then it’s definitely enough for data harvesting and mass surveillance.

All this analysis can be done automatically with AI, even if there are hundreds users on a VPN server, the AI will over a larger amount of time (not just hours but days/weeks/months) collect enough data to be able to profile users and make good guesses which domains you are visiting even if the VPN prpvider doesn’t have logs.

What is the solution to avoid this type of tracking? Tor baby, tor. Leeegggoooo Whonix!

  • NeuronautML@lemmy.ml
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    6 days ago

    The thing about anonymity that a lot of people don’t get is that there is no such thing as 100% anonymous. Vpn makes it more expensive to track you. Tor makes it more expensive to track you. Good opsec makes it more expensive to track you but ultimately, if you’ve got a target on your back, there is no way to be 100% anonymous.

    The thing you gotta ask yourself is, what is your threat model ? Are you hiding from LEO on account of torrents or just want some privacy from corporations? VPN is fine. Are you buying drugs on the darkweb ? TOR is fine. Are you selling drugs on the darkweb ? You probably need a more sophisticated masking network mesh. Are you involved in CSAM or run a darkweb market ? Nothing you do will help you, you are going to get caught, that is a certainty.

    Don’t go wasting your precious brain matter on developing a leak free network. There is no such thing. If someone wants badly to track you down, with enough money, they will. Best you can do is be a little bit more trouble than it’s worth to spend on you. For some things, like i mentioned before, there is a cutoff point where you’re as anonymous as you’ll ever be. For others, there is basically unlimited resources to track you. Even using TOR, they can get you at your entry node, like it has happened before, if no one else in your neighborhood is connected to TOR.

  • rumba@lemmy.zip
    link
    fedilink
    English
    arrow-up
    6
    ·
    edit-2
    7 days ago

    It makes a lot to coordinate a timing demask. Those VPN nodes are busy. You also need to be monitoring very close to the in/e-gress which means you’re going to need ISP or data center cooperation.

    Doing this to tor is a little more approachable, because you can run tons of exit nodes* in your own data center. If you throw enough money at the problem it’s possible to greatly raise chances to keep the entire conversation in your own data center.

    The thing is none of this is trivial. And it’s *probably not a good candidate for automatic. So you’re really going to have to have pissed in somebody’s wheaties sufficiently to become a target.

    If you’re doing anything that’s prison term illegal, All bets are off that a VPN will sufficiently protect you by itself.

  • ERROR: Earth.exe has crashed@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    2
    ·
    6 days ago

    Maybe if you can to through 2 VPN servers?

    Like ProtonVPN and their “Secure Core” feature where it goes to first a VPN server in a country with higher privacy protections (like Switzerland, Iceland, etc.), then it goes to any location of your choice, I like to pick US, Canada, or UK, so websites always appear in English.

    Its much harder to unmask a Secure Core connections with Switzerland --> United States, for example.

    (Not sponsored, and other providers may also have such a feature)

      • ERROR: Earth.exe has crashed@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        6 days ago

        NSA also runs Tor nodes.

        Every time you connect to tor, you are rolling the dice on 3 random nodes.

        If you use Tor frequently, you’ll eventually end up with 3 NSA run nodes, it may take a week, it may take months, but it will eventually happen.

        Edit: I use tor tho, I just also run a VPN at the same time, in case I get unlucky and roll 3 NSA nodes.

        • eleitl@lemm.ee
          link
          fedilink
          arrow-up
          1
          ·
          6 days ago

          Many people run Tor nodes. I also used to run exits until dealing with complaints became onerous, then I ran middlemen for many years. In general one should only pipe encrypted traffic through Tor, and be it just for malicious exits which sniff and tamper with your traffic. There are use cases for using Tor together with a VPN tunnel, but these need careful consideration.

  • considine@lemmy.ml
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    6 days ago

    What about the fact that many large VPNs are owned by (the same) ad companies / data mining companies? Despite the technical discussion, aren’t we ultimately placing our trust in the hands of the untrustworthy?

  • hersh@literature.cafe
    link
    fedilink
    arrow-up
    44
    ·
    8 days ago

    Some VPNs allow multi-hopping, similar to Tor. I couldn’t give you an exhaustive list but most popular ones support this. Mullvad and Proton do, for example. There are also strategies to add noise into VPN traffic.

    This is not a silver bullet, of course. Tor has similar problems as you describe if an adversary has visibility into enough nodes. As always, this comes down to your threat model.

    On the one hand, I find the advertising of VPNs outright dishonest. On the other hand, I would trust any reputable VPN provider much more than I trust my ISP or cell carrier.

        • kevincox@lemmy.ml
          link
          fedilink
          arrow-up
          20
          ·
          8 days ago

          Most particularly they generally pretend that nothing on the web is encrypted whereas in practice HTTPS is nearly universal at this point.

      • hersh@literature.cafe
        link
        fedilink
        arrow-up
        8
        arrow-down
        1
        ·
        edit-2
        8 days ago

        Sure. I’m referring to the ones that run big ad campaigns, like Nord and Mullvad. They tend to overstate how a VPN can protect you, sometimes in ways that barely make sense. There is no epidemic of criminals stealing personal credit card information over insecure wi-fi, for example. The ads play into ignorance and fear.

        That said, yeah, I’d rather be on a VPN when on a public wi-fi network. But I’m not really worried about someone sniffing my encrypted HTTPS traffic (which is pretty much everything nowadays; Firefox by default won’t even load unencrypted web sites).

          • hersh@literature.cafe
            link
            fedilink
            arrow-up
            5
            arrow-down
            1
            ·
            edit-2
            7 days ago

            They have a big IRL ad campaign in major US cities. See https://mullvad.net/en/blog/advertising-that-targets-everyone

            These ads certainly aren’t the worst, but they’re still a bit misleading. Using a VPN is not going to prevent tracking in general. Your phone apps will still send GPS data to all the same places. Web sites will still use all the same cookies. Facebook is still gonna be Facebook. 🤷

            That said, Mullvad does include domain-based ad and tracker blocking with their DNS server (which is free and available to the public, btw), and that’s also optional on the VPN, so it does help to a point.

            (Pinging @[email protected] to avoid double-replying. )

    • masterofn001@lemmy.ca
      link
      fedilink
      arrow-up
      4
      ·
      7 days ago

      Ivpn is one service that not only supports the use of tor, but they also invest in the tor organization and run a lot of nodes.

      Their site is also a goldmine of basic to advanced level docs on serious privacy and security (free). Including detailed instructions for cresting your own anon servers, vps, etc. And how to use a VPN with tor properly.

      They are quite serious about what they do and how they do it.

  • Em Adespoton@lemmy.ca
    link
    fedilink
    arrow-up
    20
    ·
    8 days ago

    The main defense against VPN timing attacks is to ensure your VPN exit node isn’t somewhere that the same person would have access to as your connecting IP.

    That said, if someone runs a website or service where you have a unique login or custom token and they have access to your ISP’s connection logs… a standard VPN will once again give you away. This is why TOR exists.

    I generally argue that an exit VPN doesn’t really provide much privacy; the only real services it provides are georelocation and protection against low effort bulk filtering (eg, identifying torrenters or bulk metadata collection).

    For everything else, either encryption and third party DNS is enough, or the exit VPN isn’t enough to stop targeted surveillance.

  • bad_news@lemmy.billiam.net
    link
    fedilink
    arrow-up
    12
    ·
    7 days ago

    I feel like ISP-level timing attacks are a similar issue with tor, like we know the Germans can deanonymize you if they’re willing to expend the effort. Not saying tor isn’t better, all VPNs regardless of protocol can be forced to send in the clear if an upstream actor breaks the traffic correctly afaik as of now.

    • x00z@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      7 days ago

      I think you read the news about Germany unmasking somebody who was using an older version of a Tor app. This has been proven to be mostly a user error.

      The attacks occurred on an old version of the long-retired application Ricochet that lacked new features The Tor Project has released since to mitigate against the kind of ‘timing’ analysis described in the articles. The most current versions of Ricochet-Refresh have such protections in place.

      https://blog.torproject.org/tor-is-still-safe/

    • far_university190@feddit.org
      link
      fedilink
      English
      arrow-up
      1
      ·
      7 days ago

      German deanon was done 2021, only reported now. And torproject not receive report from investigator, only CCC did.

      So we not know how deanon.

  • tetris11@lemmy.ml
    link
    fedilink
    arrow-up
    7
    arrow-down
    1
    ·
    8 days ago

    Also, if you have a limited RAM smartphone and your VPN is operating in userspace, then all it takes is for one really large image to grace your smartphone screen for your OS to go into out-of-memory kill mode. What’s it going to kill? The foreground app you’re trying to use, or the background VPN app.

    In my experience, the VPN goes down before the browser does. Mounting a swap on your phone is not the worse solution against this, but the UI starts to get really unresponsive.

    • harrys_balzac@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      1
      ·
      7 days ago

      I’m using Mullvad on a cheap T-Mobile phone and it never shuts down my VPN app, no matter what else is running.

      The only time it goes down is if it powers down completely. Then I have to start it manually after the phone powers on.

      • tetris11@lemmy.ml
        link
        fedilink
        arrow-up
        4
        arrow-down
        1
        ·
        edit-2
        8 days ago

        If you are who I think you are, we’ve probably had this discussion before. Even with an always on VPN, if the system runs out of memory it will kill the VPN first before the browser. In a perfect world the traffic would still be routed into a dead tunnel. From what I’ve seen, once the VPN is killed, the tunnel device is gone and the default route snaps back to wlan

        • ERROR: Earth.exe has crashed@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          2
          ·
          6 days ago

          On Android, you can turn on “Block connections without VPN” and all connections are blocked if VPN gets disconnected. This also makes VPN based firewalls not work, and if you use “Split Tunnel”, the apps not going through a VPN and are connected directly to the internet, also not work.

        • masterofn001@lemmy.ca
          link
          fedilink
          arrow-up
          7
          ·
          edit-2
          8 days ago

          I am not. And I’ve never had this discussion.

          Always on vs the additional option of blocking internet until the VPN connects.

          The second option is more system level?

          Using shizuku (rish) in termux I checked the active links with VPN on and then force stopped / killed the VPN in terminal and checked again. The VPN tunnel disappeared but the dummy kill switch tunnels remained. I could not access any network connection.

          *The routing table also maintains the dummy kill switch

          • tetris11@lemmy.ml
            link
            fedilink
            arrow-up
            3
            arrow-down
            1
            ·
            7 days ago

            (oh sorry, but) I’ve heard this argument before. All I can say is that in my experience, when the system is out of memory, it kills some process (e.g. the UI) which upon restarting resets the networking

            • masterofn001@lemmy.ca
              link
              fedilink
              arrow-up
              7
              ·
              edit-2
              7 days ago

              You’ll be happy to know I just force killed :

              Android system
              Google services framework
              Network
              System UI
              System WiFi Resources
              Wi-Fi
              Settings
              System connectivity resources
              Secure UI service

              The results are the same

              VPN kill switch prevents network access.

              *later, when I’m connected to a PC, I’ll try killing/restarting userspace, shell, and user to see if I can get the kill switch to fail. (If I try those now it may kill shizuku which relies on shell - not sure.)

              I’ll also see if I can’t force lmk to kill all the memory.

              In cmd settings list secure these may be some part of what keeps the system from allowing a connection.

              always_on_vpn_lockdown=1 always_on_vpn_lockdown_whitelist=

    • BearOfaTime@lemm.ee
      link
      fedilink
      arrow-up
      5
      arrow-down
      1
      ·
      8 days ago

      Yet another argument for root. Then you can exclude the VPN app from OOM. Or even move it into /system.

      I understand why this isn’t done (moving such apps to system), since mobile uses immutable OS concept. But we still need a way to manage such apps appropriately.