Because—and Jim's piece is going to say this because I'm going to tell him I want it in there—ultimately this is a question of trust. Can you trust a VPN provider? Probably not and you can't prove it one way or another. OK, well, let's go hosted DIY. Can you trust your VPS provider? Maybe but you can't prove it one way or another
To be crystal clear, Lee doesn't
need to tell me to put this in.
Here's the thing about security: it isn't a binary question of "being secure" or "being insecure". It's a game of costs, and one that you as an individual are playing against opponents with
extremely stacked decks.
Can a sufficiently well-funded attacker bypass your security? The answer is a resounding "yes". Period, there are no ifs, ands, or buts here. If the FBI or NSA (or Chinese or Russian APTs) want you - and this is an important proviso here, want
you specifically - they will by god
have you, and there are no two ways about it. They have far, far more resources than you do. They can, if nothing else, just have a literal physical human literally physically trail you and/or break into your home, office, whatever.
Multiple physical humans, if they really want to. There's nothing you can do about that.
Where "security" in this context comes in is the balancing of costs. You want it to be significantly more expensive to compromise you than the likely value of the compromise would be. You've got to be
really interesting to justify expending actual person-hours on, rather than just a loose technical dragnet. So you want to defend yourself against the automated stuff, first and foremost, pretty much no matter who you are. That stuff is
cheap, and you are absolutely that amount of interesting.
From there, you have to figure out just
how interesting you are, and scale up the cost of breaching your security appropriately. If you screw this up, it can bite you. The security practices that were appropriate when you were "just this guy, you know?" aren't likely to still be appropriate if you become a person of interest who may be a strategic foothold toward more interesting targets.
So how does this relate to VPNs? Well, first and foremost, as long as you're accessing an insecure target, your endpoint is a vulnerability, wherever that endpoint is. If we handwave the actual cryptographic strength of your VPN tunnel, we still have to worry about its exit point. If an entity knows your traffic is coming out of that endpoint, they can MITM it or monitor it from
there instead of from your home. So what's the point?
First off, you may get the benefit of some herd camouflage. Assume an attacker is capable of monitoring traffic leaving your endpoint, but has not compromised the endpoint itself. If this is a commercial VPN provider, your traffic is now mixed in with thousands of other clients' traffic, and may be considerably more difficult to identify than it would have been if it was all coming straight from your own house on your own logged IP address belonging to your own ISP. On the other hand, say you've rolled your own VPN with an endpoint in, say, Linode or Digital Ocean - if an attacker knows
that IP address, you might as well have never bothered, because now all your traffic comes from
there. In that case, you could arguably be even
worse off than if you'd never used a VPN at all - if you're on your ISP's network, you're most likely going to be changing IP addresses out with the rest of the ISP's customers, again giving you some herd camouflage against casual monitoring (except that done by your ISP
itself, of course, or gained by subpoena through an indulgent court system, or by anybody who's compromised your ISP).
Whoof. OK then, if rolling your own VPN might be even
worse than not doing it at all - why bother? Well, because your ISP
is very specifically a potential attacker who has one hell of a lot of info on you and the motivation to use it. So in this case,
any VPN tunnel outside the network under the ISP's control is a good thing. It protects you from the ISP doing MITM attacks on your traffic (ie, injecting cookies or even actual advertisements directly into non-HTTPS webpages), and it keeps the ISP from knowing anything about your browsing habits other than "it seems to all be going through a VM in Linode".
OK. So we want a VPN to protect ourselves from the ISP casually mining us for data and logging our traffic and selling us down the river. Natch. Now what?
If we went with a VPS hosting place like Linode or Digital Ocean, now we have to worry about
them doing the exact same thing. Whether it's for purely monetary greedy reasons (selling info to advertisers, commercial harvesters, et al) or them getting subpoena'd by a court, or even them colluding with extra-judicial activity by law enforcement agencies... you're at this point just trusting them to not rat you out. They have all the ability that the ISP does to monitor, flag, and log your traffic - or even to screw with it in or out. To be fair, a VPS is likely to resist this kind of thing
much harder than a residential ISP does, because they know perfectly well that their customers are more infosec-aware and likely to kick up a giant storm if they do it - and, worse (from their perspective), they don't hold a monopoly or duopoly the way your residential ISP does. If Spectrum pisses me off, literally my only other option for residential internet service is AT&T... which sucks rocks in my area. Even if AT&T was awesome, what if they just do the same shit Spectrum does (which they do)? I'm stuck. On the other hand, if I find out Linode is selling me down the river, I can not only kick up a giant public angry fuss about it, I can
take my business to Digital Ocean. Or to Hetzner. Or to LiquidWeb. Or to literally tens if not hundreds of other providers. So there's a powerful incentive for the VPS provider to resist fucking me over as hard as they can.
As Lee mentioned, though, if the VPS provider
does get compromised - whether that's through an employee taking payola, the company themselves selling out, a subpoena landing, whatever - then now my attacker not only can monitor my traffic, but can get root on my actual server, no matter what technical safeguards I try to use.
So... what about the VPN providers?
The VPN provider is selling a more focused product than the VPS provider. Their whole damn
job is to give you a way to route your data out of your network securely and as anonymously as possible. They have failed, not just a little bit, but
the whole way if they sell you down the river. As a result of this, they will often sell more focused services - multiple available endpoints, specific use of tons of endpoints in tons of countries to raise jurisdictional hurdles for nation-state attackers with access to judicial and law enforcement tools, and so forth. They also have a vested interest in offering services that are deliberately and aggressively unlogged, where a standard VPS provider is much more likely to want to keep logs of as much as possible, to assist them in maintaining and analyzing what goes on for sysadmin reasons.
On the flip side, the VPN providers are frequently targeting home users who may not be the best educated, and they're generally targeting an even lower price point. They may not care about individual customers as much, and they may either rely
more on user ignorance - because they're targeting mainstream consumers - or
less on user ignorance - because they're expecting to be analyzed publicly and privately by experienced infosec and paranoid sysadmin types.
I don't know how much of this I can cram into an actual article whose primary focus needs to be more of a usable "how-to" than a primer on (actual, including human intelligence and stuff that predates comptuers entirely) security, but yeah, rest assured, I think about it.