9 ms·
A privacy VPN you can verify
- remram 1y agoWhat does the verifiable program do though? With a VPN, what I'm concerned about is my traffic not being sniffed and analyzed. This code seem to have something to do with keys but it's not clear how that helps...?
- MagicalTux 1y agoThis is the server-side part of things. It receives encrypted traffic from your (and other customers) device, and routes it to the Internet. This guarantees that your traffic isn't being linked to you, and is mixed up with others in a way that makes it difficult for someone to attribute it to you, as long as you also protect yourself on the application side (clear cookies, no tracking browser extension, etc)
- duskwuff 1y ago> This guarantees that your traffic isn't being linked to you, and is mixed up with others in a way that makes it difficult for someone to attribute it to you What would prevent you (or someone who has gained access to your infrastructure) from routing each connection to a unique instance of the server software and tracking what traffic goes in/out of each instance?
- lossolo 1y agoNothing, it's not technically possible to prevent that with their system.
- saurik 1y ago(First off, duskwuff's attack is pretty epic. I do feel like there might be a way to ensure there is only exactly one giant server--not that that would scale well--but, it also sounds like you didn't deal with it ;P. The rest of my comment is going to assume that you only have a single instance.) A packet goes in to your server and a packet goes out of your server: the code managing the enclave can just track this (and someone not even on the same server can figure this out almost perfectly just by timing analysis). What are you, thereby, actually mixing up in the middle? You can add some kind of probably-small (as otherwise TCP will start to collapse) delay, but that doesn't really help as people are sending a lot of packets from their one source to the same destination, so the delay you add is going to be over some distribution that I can statistics out. You can add a ton of cover traffic to the server, but each interesting output packet is still going to be able to be correlated with one input packet, and the extra input packets aren't really going to change that. I'd want to see lots of statistics showing you actually obfuscated something real. The only thing you can trivially do is prove that you don't know which valid paying user is sending you the packets (which is also something that one could think might be of value even if you did have a separate copy of the server running for every user that connected, as it hides something from you)... ...but, SGX is, frankly, a dumb way to do that, as we have ways to do that that are actually cryptographically secure -- aka, blinded tokens (the mechanism used in Privacy Pass for IP reputation and Brave for its ad rewards) -- instead of relying on SGX (which not only is, at best, something we have to trust Intel on, but something which is routinely broken).
- patrakov 1y agoNo. The verifiable part receives an already-decrypted copy of your traffic and mixes it with everyone else's traffic. Source: https://vp.net/l/en-US/technical#:~:text=cryptographic%20data%20flow https://vp.net/l/en-US/technical#:~:text=cryptographic%20dat... I have not inspected whether the procedure suggested for verifying the enclave contents is correct. It's irrelevant if you need to prove that the decrypted traffic, while still being associated with your identity, goes ONLY into the enclave and is not sent to, let's say, KGB via a separate channel.
- jen729w 1y ago> built in the usa. backed by the constitution. Old copy? Might need an update.
- ranger_danger 1y agoHard disagree... not only is SGX deprecated and was also removed from recent processors due to security issues IIRC, it still can't prove that your requests are actually being served by the code they say they're running. The machine/keys you get back from their server could be from anywhere and might be completely unrelated.
- tripdout 1y agoWikipedia says it's still on Xeons, so not sure what that says. But I agree with the rest of your point, it seems like an oversight to me.
- MagicalTux 1y agoNot an oversight, one of SGX's features is MRENCLAVE measurement, a hash of the code running inside the enclave that can be compared with the value obtained at build time.
- MagicalTux 1y agoSGX's original goal of being used for DVD DRMs has been deprecated because it turns out people don't keep their BIOS up to date and didn't all get Intel's latest CPUs, making the use of SGX as a client side feature not useful. Turns out it's a lot more useful server-side, and while it had its share of issues (see sgx.fail) Intel addressed these (also see sgx.fail). It can prove your requests are actually being served by the code due to the way the TLS attestation works.
- rkagerer 1y agoLooks neat, but how can you tell the fingerprint the server returns was actually generated by the enclave server, and isn't just a hardcoded response to match the expected signature of the published code (or that you're not talking to compromised box that's simply proxying over a signature from a legit, uncompromised SGX container)?
- MagicalTux 1y agoThe enclave fingerprint is generated as part of the attestation. The way this works is the enclave on launch generates a ECDSA key (which only exists inside the enclave and is never stored or transmitted outside). It then passes it to SGX for attestation. SGX generates a payload (the attestation) which itself contains the enclave measured hash (MRENCLAVE) and other details about the CPU (microcode, BIOS, etc). The whole thing has a signature and a stamped certificate that is issued by Intel to the CPU (the CPU and Intel have an exchange at system startup and from times to times where Intel verifies the CPU security, ensures everything is up to date and gives the CPU a certificate). Upon connection we extract the attestation from the TLS certificate and verify it (does MRENCLAVE match, is it signed by intel, is the certificate expired, etc) and also of course verify the TLS certificate itself matches the attested public key. Unless TLS itself is broken or someone manages to exfiltrate the private key from the enclave (which should be impossible unless SGX is broken, but then Intel is supposed to not certify the CPU anymore) the connection is guaranteed to be with a host running the software in question.
- tripdout 1y agoHow does Intel SGX compare with e.g. ARM Trustzone? Seems like its similar in that information access is restricted from certain privilege levels?
- MagicalTux 1y agoSeems fairly similar, ARM's response to TEE basically. We started with SGX because it is battle tested and has a lot of people still trying to find issues, meaning any issue is likely solved quickly, however we are planning to also evaluate and support other solutions. Information is restricted and cannot leave the enclave unless the code running in there allows it to in both cases.
- tossaway23523 1y ago> battle tested lol SGX has been broken time and again SGX has 0-day exploits live in the wild as we speak so... valiant attempt in terms of your product... but utterly unsuitable foundation
- MagicalTux 1y agoAs far as I know SGX has no 0-day exploits live today. sgx.fail was the largest collection of attacks and have all been resolved. What this tells me however is there are a lot of people trying to attack SGX still today, and Intel has improved their response a lot. The main issue with SGX was that its initial designed use for client-side DRM was flawed by the fact you can't expect normal people to update their BIOS (meaning downloading update, putting it on a storage device, rebooting, going into BIOS, updating, etc) each time an update is pushed (and adoption wasn't good enough for that), it is however having a lot of use server-side for finance, auto industry and others. We are also planning to support other TEE in the future, SGX is the most well known and battle tested today, with a lot of support by software like openenclave, making it a good initial target. If you do know of any 0-day exploit currently live on SGX, please give me more details, and if it's something not yet published please contact us directly at security@vp.net
- A1kmm 1y ago
- deleted 1y ago[deleted]
- rkagerer 1y agoSomeone had a comment here that just disappeared, mentioning it's by Mark Karpelès (yes, the same guy from MtGox) and Andrew Lee. Why did that remark get deleted?
- deleted 1y ago[deleted]
- staplers 1y agoI'm assuming OP is Mark Karpeles, MagicalTux is a well-known username for him.
- aidenn0 1y agoAnd that's the PIA Andrew Lee, not the Firebase Andrew Lee.
- pbhjpbhj 1y agoThe people who were convicted of multi-million dollar fraud resulting in someone walking away with millions of dollars of others bitcoin deposits, IIRC (https://en.m.wikipedia.org/wiki/Mark_Karpel%C3%A8s https://en.m.wikipedia.org/wiki/Mark_Karpel%C3%A8s if you want to check details). Also, I couldn't see where it is based? Anywhere in Five-Eyes countries, or places like USA with national security letters (or just their fascist government) is probably not going to fit most people's that models.
- neurostimulant 1y ago> why would we hide in shady jurisdictions… if we've got nothing to hide? > we operate proudly in the united states. protected by the constitution — not offshore shell games. > no backdoors. no stored data. even if they ask, we've got nothing. > we don't dodge the law — we built tech that doesn't need to. https://vp.net/l/en-US/about https://vp.net/l/en-US/about
- jchw 1y agoIntel SGX/remote attestation for verifying that servers are running the code they say they are running is very interesting, I believe Signal talked about doing something similar for contact discovery, but at a base level it requires a lot of trust. How do I verify that the attestation I receive back is the one of the machine I am contacting? Can I know for sure that this isn't a compromised SGX configuration, since the system has been broken in the past? Furthermore, can I really be sure that I can trust SGX attestations if I can't actually verify SGX itself? Even if the code running under SGX is verifiable, as an ordinary user it's basically impossible to tell if there are bugs that would make it possible to compromise. Personally I like the direction Mullvad went instead. I get that it means we really can't verify Mullvad's claims, but even in the event they're lying, at least we got some cool Coreboot ports out of it. If you're really paranoid, neither this service nor Mullvad offers that much assurance. I like the idea of verifiability, but I believe the type of people who want it are looking to satisfy deeper paranoia than can be answered with just trusting Intel... Still, more VPN options that try to take privacy claims seriously is nothing to complain about.
- MagicalTux 1y agoIntel will not attest insecure configurations. Our client will automatically verify the attestation it receives to make sure the certificate isn't expired and has a proper signature under Intel's CA trust. A lot of people have been attempting to attack SGX, and while there have been some successful attacks these have been addressed by Intel and resolved. Intel will not attest any insecure configuration as do other TEE vendors (AMD SEV, ARM Trustzone, etc).
- jchw 1y agoI really am interested in how this works. How can the client software verify that the SGX attestation actually is from the same machine as the VPN connection? I guess there's probably an answer here, but I don't know enough about SGX.
- MagicalTux 1y agoThe way this works is by generating a private key inside the enclave and having the CPU attest its public key. This allows generating a self signed TLS certificate that includes the attestation (under OID 1.3.6.1.4.1.311.105.1) and a client connecting verifying the TLS certificate not via the standard chain of trust, but by reading the attestion, verifying the attestation itself is valid (properly signed, matching measured values, etc) and verifying the containing TLS certificate is indeed signed with the attested key. Intel includes a number of details inside the attestation, the most important being intel's own signature of the attestation and chain of trust to their CA.
- do_not_redeem 1y ago> Build the code we published, get the fingerprint it produces, ask a VP.NET server for the fingerprint it reports, and compare the two. If they match, the server is running the exact code you inspected. No trust required. Okay, maybe I'm being thick, but... when I get a response from your server, how do I know it's actually running inside the enclave, and not an ordinary process sending a hardcoded expected fingerprint?
- rasengan 1y ago> how do I know it's actually running inside the enclave, and not an ordinary process sending a hardcoded expected fingerprint? It's signed by Intel and thus, guaranteed to come from the enclave!
- greyface- 1y agoAn Intel signature does not guarantee that it came from the enclave. It guarantees that it came from something blessed by Intel. To conclude that it must have come from an unmodified enclave requires trust in Intel and the integrity of their signing process. This is inconsistent with "no trust required". What if, for example, a three-letter agency seized keys from Intel, served them with a gag order to prohibit disclosure of the seizure, put themselves in the middle of the network path between you and the user, and modified the server software to send falsified signatures derived from those seized keys?
- MagicalTux 1y agoIntel SGX comes with an attestation process aiming at exactly that. The attestation contains a number of details, such as the hardware configuration (cpu microcode version, BIOS, etc) and the hash of the enclave code. At system startup the CPU gets a certificate from Intel confirming the configuration is known safe, which is used by the CPU to in turn certify the enclave is indeed running code with a given fingerprint. When the connection is established we verify the whole certificate chain up to Intel, and we verify the TLS connection itself is part of the attestation (public key is attested).
- mrtesthah 1y agoNo crypto payments or ability to mail cash?
- MagicalTux 1y agoYes crypto payments, a bit difficult to find since you need to look at the bottom of the page however, but we have some plans to improve that in the coming days.
- john01dav 1y agoOne of the main use cases of a VPN is against governments, but a government making Intel compromise SGX is plausible given what we know from Snowden.
- MagicalTux 1y agoThe US government might be able to pressure Intel into doing something with SGX, but there are way too many eyes on this for it to go unnoticed in my opinion, especially considering SGX has been around for so long and messed with by so many security researchers. The US government also likely learned a lesson from early attempts at backdoors (RSA, etc) that this kind of things do not stay hidden and do not reflect well. We've thought about this long and hard and planning to mitigate this as much as possible. Meanwhile we still offer something that is a huge step forward compared to what is standard in the industry.
- deleted 1y ago[deleted]
- jiveturkey 1y agoWell, if by against governments you mean against enforcement of regional IP protection then yes. The major use case of VPN is geo projection and torrenting, not high falutin' privacy the good guys depend on. The 2nd major use case is avoiding crypto KYC.
- b8 1y agoThey claim to allow anonymous sign up and payments, but requires an email,an account, zip code and name for Crypto payments, but fake info could be used I guess. I tried ordering via Crypto, but it constantly gives me this error: "Unable to load order information. Try again". Honestly, I feel more comfortable using Mullvad. This team has some folks with questionable backgrounds and I wouldn't trust Intel. Also VPN providers are usually in non-us countries due to things like the Lavabit, Yahoo incidents and the Snowden revelations.
- rasengan 1y ago> Honestly, I feel more comfortable using Mullvad. This team has some folks with questionable backgrounds and I wouldn't trust Intel. Relying on "trust" in a security/privacy architecture isn't the right way to do things - which is what this solves. It removes the need to trust in a person or person(s) in most VPN company cases since they have many employees, and moves it to trusting in code. > Also VPN providers are usually in non-us countries due to things like the Lavabit, Yahoo incidents and the Snowden revelations. The system is designed so that any change server side will be immediately noticed by clients/users. As a result, these issues are sufficiently mitigated, and instead, allows people to take advantage of strong consumer, and personal, protection laws in the US.
- immibis 1y agoThis VPN requires you to trust in Intel - a failing US megacorp desperate for money - as well as the guy who destroyed Mt Gox and the guy who destroyed Freenode. Personally, I'd rather trust in Mullvad.
- rasengan 1y ago> guy who destroyed Mt Gox Let me correct that for you - the guy who brought you the first Bitcoin exchange and arguably helped pave the way for cryptocurrencies today. > guy who destroyed Freenode This was already debunked [1]. I tried to save freenode - I was the only one funding it up until the point where freenode's ownership "gave" it to me essentially which resulted in the non-developer staff to attempt to hostile takeover the network [2]. The end result was that they gave control of the domain back to me (and as a result, freenode). > Personally, I'd rather trust in Mullvad. Trusting random teams of people on the internet isn't exactly a form of security or privacy. Developers and cypherpunks trust code, not words. If you're a developer, I'd highly suggest you read the code. > This VPN requires you to trust in Intel You really can't use the internet or any internet-distributed software without trusting Intel. Maybe you're better off logging out if that is your policy. ¯\_(ツ)_/¯ [1] http://techrights.org/wp-content/uploads/2021/05/lee-side.pdf http://techrights.org/wp-content/uploads/2021/05/lee-side.pd... [2] Funny how non-developers keep ruining Open Source (Mozilla, and many others - see Lunduke Journal for more).
- exfil 1y agoThese VPN's for privacy are so bad. You give your credit card (verified identity), default gateway and payload to foreign soil and feel safe. On top of that your packets clear text metadata verifies you with cryptographic accuracy. In today's internet you just cannot have exit IP which is not tied either into your identity, payment information or physical location. And don't even mention TOR, pls.
- MagicalTux 1y agoYou're welcome to use cryptocurrencies (we have a page for that), and our system only links your identity at connection time to ensure you have a valid subscription. Your traffic isn't tied to your identity, and you can look at the code to verify that.
- OsrsNeedsf2P 1y agoCryptocurrencies? Aka the least private form of transactions, where not only the sender and receiver know, but the whole block chain immutably stores for everyone else to view?
- kwanbix 1y agoSo what do you suggest instead?
- lcnPylGDnU4H9OF 1y agoSemi-serious: redeemable codes you can buy at a national retail chain, ostensibly using cash. It has the unfortunate side effect of training people to fall for scams, however. Bonus points if you can somehow make the codes worthless on the black market, I guess.
- tavavex 1y agoSome VPNs kind of offer that. I know at least one that sells physical redeemable cards you can buy - maybe physically in some countries, but in mine it's only available on Amazon. Even that option should be safe for keeping your identifying data from the VPN provider, even in the situation where they betray their promises on not holding onto your data. This is because Amazon can't know which exact code was sent out to you, and the provider in turn doesn't have any additional info to associate with that code, besides knowing if it's valid or not. The biggest downside is that now Amazon knows you paid for this service, even if they don't know the specifics. There's also an option to just mail them cash, but some countries may seize all mailed cash if discovered.
- stavros 1y agoHow does this attestation work? How can I be sure that this isn't just returning the fingerprint I expect without actually running in an enclave at all? Does Intel sign those messages?
- MagicalTux 1y agoSimilar to TLS, the attestation includes a signature and a x509 certificate with a chain of trust to Intel's CA. The whole attestation is certified by Intel to be valid and details such as the enclave fingerprint (MRENCLAVE) are generated by the CPU to be part of the attestation. This whole process is already widely used in financial and automotive sectors to ensure servers are indeed running what they claim to be running, and well documented.
- stavros 1y agoThat's very informative, thanks!
- kachapopopow 1y agoRemember that this only works if the cpu can be trusted! The hardware still has to be secure.
- zb3 1y agoEven assuming SGX is to be trusted and somehow the government would not be able to peek inside (implausible), this "tech" will not solve legal problems... see "tornado cash" for an example. "No logs" is either impossible, illegal or a honeypot.
- gmlenovo22 1y agoI don't buy this. They could run one secure enclave runningng the legit version of code and one insecure hardware running insecure software. Then they put a load balancer in front of both. When people ask for the attestation the LB sends traffic to the secure enclave, so you get the attestation back and all seems good. When people send vpn traffic the loadbalancer sends them to the insecure hardware with insecure software. So sgx proves nothing..
- kachapopopow 1y agoThat's not what they;re trying to prove. Only one server is give the certificate to authenticate with you, you connect to that server, every message with that server is authenticated with that certificate. They are proving that they are the ones hosting the VPN server - not some server that stole their software and are running a honeypot and that the hosting company has not tampered with it. So in the end you still have to trust the company that they are not sharing the certificates with 3rd parties.
- jiveturkey 1y agoWhile there are many ways to subvert this, that isn't one of them. Only the attested software can decrypt the traffic you send.
- SamDc73 1y agoOne of the many reasons I love Mullvad (been using it for 4 years now) is their simple pricing—$5/month whether you subscribe monthly, yearly, or even 10 years out. I wanted to give your product a try, but the gap between the 1-month and 2-year plans is so big that a single month feels like a rip-off, while I’m not ready to commit to 2 years either. On payments: for a privacy-focused product, Monero isn’t just a luxury, it’s a must (at least for me). A VPN that doesn’t accept Monero forces users into surveillance finance, since card and bank payments are legally preserved forever by processors. That means even if the VPN “keeps no logs,” the payment trail still ties your real identity to the service.
- adikso 1y agoI don't know what payment methods this VPN supports (it requires sign-in), but on Mullvad you also can send cash in an envelope.
- kqr 1y agoWhich are the other reasons, and which other providers have you evaluated? Asking because I might soon be in the market.
- SamDc73 1y agoto me at this point I only would trust these in this order: Mullvad IVPN ProtonVPN Mullvad is the only one that have RAM-only (diskless) servers. Both Mullvad and IVPN have Monero as a payment method (which is the best for privacy) and both have Anonymous sign-up no email required. Proton is last because they don't support Monero (only BTC which isn't very anonymous by design) All have third party independent audits and are OSS
- kqr 1y agoThanks! Mullvad does look good.
- greentea23 1y agoBut then aren't you messing with the IRS? If you pay in crypto, you have to report every conversion from fiat to monero, and every payment out of the monero wallet: https://www.irs.gov/newsroom/taxpayers-need-to-report-crypto-other-digital-asset-transactions-on-their-tax-return https://www.irs.gov/newsroom/taxpayers-need-to-report-crypto... Until crypto is legally treated like cash (e.g. I don't have to report that I bought a beer with a $20 bill from an ATM), I don't think it's a very satisfying solution to have to either 1. Report to the IRS that I bought a VPN with monero or 2. Commit a tax crime and be paranoid about the IRS using automated tools to find you out for years after each transaction. Even ignoring that elephant inthe room, how do you regularly (to pay subscription) get the crypto without leaving a paper trail or dealing with sketchy people? I like virtual cards like privacy.com. If a state actor is after you, they will find you. So the typical threat model to me is companies trying to track you, like your ISP/Google/Facebook. It would be nice if there was some way to be tax compliant and get the privacy benefits of monero though. Am I missing some crypto tax compliance tooling here or are all of these crypto payment users just poking the IRS bear?
- kachapopopow 1y agoThis is honestly less trustworthy than nordvpn from my POV. The problem with confidential compute is that given enough technical expertise (ime exploits) all these systems are possible to compromise which is perfect for honeypots. Kinda sounds like one of those interpol plots with phones designed for criminals. I always found confidential compute to be only good to isolate the hosting company from risk - not the customer!
- nneonneo 1y agoCute idea. Bit worried about the owners here; rasengan doesn't have a stellar reputation after what happened with Freenode. The idea itself is sound: if there are no SGX bypasses (hardware keys dumped, enclaves violated, CPU bugs exploited, etc.), and the SGX code is sound (doesn't leak the private keys by writing them to any non-confidential storage, isn't vulnerable to timing-based attacks, etc.), and you get a valid, up-to-date attestation containing the public key that you're encrypting your traffic with plus a hash of a trustworthy version of the SGX code, then you can trust that your traffic is indeed being decrypted inside an SGX enclave which has exclusive access to the private key. Obviously, that's a lot of conditions. Happily, you can largely verify those conditions given what's provided here; you can check that the attestation points to a CPU and configuration new enough to not have any (known) SGX breaks; you can check that the SGX code is sound and builds to the provided hash (exercise left to the reader); and you can check the attestation itself as it is signed with hardware keys that chain up to an Intel root-of-trust. However! An SGX enclave cannot interface with the system beyond simple shared memory input/output. In particular, an SGX enclave is not (and cannot be) responsible for socket communication; that must be handled by an OS that lies outside the SGX TCB (Trusted Computing Base). For typical SGX use-cases, this is OK; the data is what is secret, and the socket destinations are not. For a VPN, this is not true! The OS can happily log anything it wants! There's nothing stopping it from logging all the data going into and out of the SGX enclave and performing traffic correlation. Even with traffic mixing, there's nothing stopping the operators from sticking a single user onto their own, dedicated SGX enclave which is closely monitored; traffic mixing means nothing if its just a single user's traffic being mixed. So, while the use of SGX here is a nice nod to privacy, at the end of the day, you still have to decide whether to trust the operators, and you still cannot verify in an end-to-end way whether the service is truly private.
- rasengan 1y agoThe whole point here is you don’t have to trust us - we don’t want you to. We want you to trust code, period. That said, the freenode issue was debunked and you can see receipts here: http://techrights.org/wp-content/uploads/2021/05/lee-side.pdf http://techrights.org/wp-content/uploads/2021/05/lee-side.pd... I funded freenode since 2011 so any narrative that makes it seem I just appeared out of nowhere is factually untrue. Also, I was handed it because Christel felt I was a good custodian thereof. Instead, former staff who I protected from allegations made by OldCoder for years, went on to form Libera, tried to steal the domain for a developers irc network when they themselves shockingly couldn’t even code a simple irc client, and then made up a false narrative. The state of open source generally isn’t what you think and you would do well for yourself to read Lunduke’s Journal among other things. The developers don’t actually run most of the projects these days. Look at Mozilla.
- deleted 1y ago[deleted]
- mjg59 1y agoI'm a huge fan of the technical basis for this. I want services to attest themselves to me so I can verify that they're running the source code I can inspect. And, well, the combination of founders here? Good fucking lord. I'm really fascinated to see whether we can generate enough trust in the code to be able to overcome the complete lack of trust that these people deserve. I can't imagine a better way to troll me on this point.
- nneonneo 1y agoThe SGX TCB isn’t large enough to protect the really critical part of a private VPN: the source and destination of packets. Nothing stops them from sticking a user on their own enclave and monitoring all the traffic in-and-out. Also, the README is full of AI slop buzzwords, which isn’t confidence-inspiring.
- 9dev 1y agoAlso, it requires me to trust Intel—an American company, to not have a backdoor in the SGX. That amounts to exactly no trust at all, so it’s a pass from me, and probably any non-US citizen.
- nneonneo 1y agoThe backdoor is as simple as “Intel has all the signing keys for the hardware root of trust so they can sign anything they want” :)
- rasengan 1y agoDefense in depth dictates that this is more secure than standard VPNs out there (Mullvad, Proton, Nord, Express, etc.). Any real security researcher recognizes this. If you think 'trusting random strangers' is a better security architecture, then you should not work in security.
- waon 1y ago
- can16358p 1y agoOkay I don't have much information about this whole attestation flow and one question boggles my mind. If someone can explain this in simple terms, I'd be thankful: The post says build the repo and get the fingerprint, which is fine. Then it says compare it to the fingerprint that vp.net reports. My question is: how do I verify the server is reporting the fingerprint of the actual running code, and not just returning the (publicly available) fingerprint that we get result of building the code in the first place?
- mjg59 1y ago"Ask a VP.NET server for the fingerprint it reports" is a little bit simplistic. The process for actually doing this involves you handing the server a random number, and it sending you back a signed statement including both the fingerprint and the random number you gave it. This prevents it simply reporting a fixed fingerprint statement every time someone asks. The second aspect of this is that the key used to sign the statement has a certificate chain that ties back to Intel, and which can be proven to be associated with an SGX enclave. Assuming you trust Intel, the only way for something to use this key to sign such a statement is for it to be a true representation of what that CPU is running inside SGX at the time.
- mzajc 1y agoHow do I know I'm connecting to the WireGuard instance being attested and not something else? Could the host run one attestable instance, but then have users connect to a separate, malicious one?
- nneonneo 1y agoThe attestation covers the public key, so you would only connect to an instance which has that public key. In order for a malicious instance to use the same public key as an attested one, they’d have to share the private key (for decryption to work). If you can verify that the SGX code never leaks the private key that was generated inside the enclave, then you can be reasonably sure that the private key can’t be shared to other servers or WG instances.
- dguido 1y agoThis is cool, and I'm glad to see someone doing this, but I also feel obligated to mention that you can also just quickly deploy your own VPN server that only you have access to with AlgoVPN: https://github.com/trailofbits/algo https://github.com/trailofbits/algo
- nugzbunny 1y agoI’ve recently become interested in hosting my own VPN, due to the amount of websites that require me to disable my VPN when visiting their site. I imagine those websites block IP ranges of popular VPN providers. Am I right in thinking that hosting my own VPN would resolve this issue?
- nneonneo 1y agoYep! It’s very easy: rent any cloud server, stick a WireGuard/OpenVPN/ShadowSocks container on it, download the config, and you’re done. Since you’re not interested in compute, you can probably use the tiniest cloud server available to save costs. I pay approximately 50¢/month for such a setup, and you can probably do it for free forever if you decide to be slightly abusive about it. However, be aware that you don’t really gain any real privacy since you’re effectively just changing your IP address; a real VPN provides privacy by mixing your traffic with that of a bunch of other clients. Some services will also block cloud ranges to prevent e.g. geoblock evasion, although you’ll see a lot less blocking compared to a real VPN service or Tor.
- wyclif 1y agoI'm interested in doing this, and also running ZNC because I still use IRC and need to run a bouncer, &c.
- neurostimulant 1y agoIt's super easy with wg-easy: https://github.com/wg-easy/wg-easy https://github.com/wg-easy/wg-easy
- eptcyka 1y agoThe chief privacy officer of the company is the moron that destroyed Freenode. Of course, Libera lives on, but it is a transition we could’ve done without.
- rasengan 1y agoThis has been debunked. Freenode was sold to me by Christel, the previous owner. I did not even offer to purchase it and simply assumed I was doing what I had been doing for a decade for freenode and many other FOSS projects - keeping them alive. It was my funds that did so the whole time for freenode (and a number of other projects which I stopped funding thereafter given the death threats I was receiving which led to the end of many of them unfortunately). The Libera staff [1] attempted to steal the domain because they wanted control. None of the staff were developers at the time and complained they couldn’t even write their own irc client. Think of Mozilla. The people who run it aren’t the coders. Same thing. Here are the receipts for every statement I just made: http://techrights.org/wp-content/uploads/2021/05/lee-side.pdf http://techrights.org/wp-content/uploads/2021/05/lee-side.pd... PS: Freenode seems more active then Libera where everyone is just idle (bots?) but that is another point. See for yourself with the client I wrote: IRC.com. [1] By Libera staff I mean the former freenode staffers who left to form Libera. These are the same people I spent a lot of money helping to protect legally from the allegations made by “OldCoder”
- waon 1y agoThe whole community fled from Freenode as a direct consequence of your actions. You aren't convincing anyone with your "debunkings," dear masterdebater.
- eptcyka 1y agoCould it be that the original freenode staff did not want to have anything to do with you in an operational manner? Whilst the financial contributions for legal defense always went a long way, not much else was needed, like the live events and freenode branded merch. Staff were not adequately informed as to how the sale went down. Later, I do not believe tomaw was trying to strongarm anyone into leaving, staff genuinely wanted nothing to do with the supposed crown prince of Joseon. Ultimately, the people who invested their labor into the network felt like they had little control over the future of the project and felt like they had been rug pulled by christel so they left. They did not believe that it was christel's to sell. Ultimately, as soon as the original operators left, the new management have not necessarily left a great impression. For a while, freenode.net would just redirect to a subreddit? And then later it was a reddit clone of sorts? (https://web.archive.org/web/20220505184527/https://freenode.net/ https://web.archive.org/web/20220505184527/https://freenode....). Channels were taken over at will. There were somewhat dubious partnerships made, crypto products endorsed. The first blog posts made by the new management straight after the changeover were markedly different from the previous messaging - (https://web.archive.org/web/20210730233709/https://freenode.net/archive https://web.archive.org/web/20210730233709/https://freenode....). The original freenode was doing its best to be a place where like minded people could collaborate and communicate without adding too much of a political sway or coloring anything, the freenode after the takeover did not aspire to do any such thing. If in May of 2021 one could've argued that the old staff were a tad too eager to leave, then the newcomers did everything in their power to prove them right in less than a month. Please do fund FOSS stuff, it really helps. Just don't expect to buy yourself out of being cringeworthy.
- HelloUsername 1y ago"But you know the old Russian proverb. 'Trust, but verify.' And the Americans think Ronald Reagan thought that up. Can you imagine?"
- tamimio 1y agoOne year later: VP.NET SGX code collision attack using lultzmann xyz math theory that allows the attacker to run different code with same sgx verifier! In all seriousness, I don’t even trust intel to start with.
- aysfrm11 1y agoI have no relationship with OVPN but after watching their server deployment on YouTube I have to say I do like their approach to security / privacy. Servers that don't log and can't without hard drives, ports physically glued shut. https://www.ovpn.com/en/security https://www.ovpn.com/en/security
- nneonneo 1y agoAh, but how can you tell that you’re connecting to a server that was actually configured that way? Answer: no you can’t, you still have to trust them. At the end of the day, you always just have to trust the provider, somewhere.
- lillecarl 1y agoOVPN successfully evaded Hollywood(through pressure on Swedish institutions) 5 years ago when they were up ThePirateBays ass again. You still have to trust them, you're not wrong but at some point I'll fall back to the common question security people(not me) tell paranoid doubters: Whats your threat model? If you're running a global child-abusing ring through Mullvad or OVPN(offers static IPv4 for inbound traffic) I don't know what they'd do but they've proved themselves over and over to be organisations you can trust. OVPN turns around about 1.2M$ with 0.8M$ profit (0), Mullvad turns around significantly more money but with less profit margin (1) (probably funneling profits to a tax haven) so the risk of someone buying out OVPN is there, but "you" are probably not worth it if the ones targeting TPB didn't figure out how to get through. You can still run TOR over their VPNs as another layer if you're uncertain their reputation is trustworthy enough for your usecase but don't want TOR traffic originating from your IP. https://claude.ai/share/a47c19f7-8782-4a9f-ae26-2d2adb52eaed https://claude.ai/share/a47c19f7-8782-4a9f-ae26-2d2adb52eaed 0: https://www.allabolag.se/foretag/ovpn-integritet-ab/-/konsulter/2K48B8LI5YF3I https://www.allabolag.se/foretag/ovpn-integritet-ab/-/konsul... 1: https://www.allabolag.se/foretag/mullvad-vpn-ab/g%C3%B6teborg/konsulter/2KHK741I5YF3I https://www.allabolag.se/foretag/mullvad-vpn-ab/g%C3%B6tebor... You can look up any Swedish company through sites like allabolag or merinfo if you're curious... until they grow into tax-evading evil megacorps :)
- potato-peeler 1y agoSlightly tangential question - what gui framework did you use to build the apps?
- Retr0id 1y ago> No trust required. You also have to trust that SGX isn't compromised. But even without that, you can log what goes into SGX and what comes out of SGX. That seems pretty important, given that the packets flowing in and out need to be internet-routable and necessarily have IP headers. Their ISP could log the traffic, even if they don't. > Packet Buffering and Timing Protection: A 10ms flush interval batches packets together for temporal obfuscation That's something, I guess. I don't think 10ms worth of timing obfuscation gets you very much though. > This temporal obfuscation prevents timing correlation attacks This is a false statement. It makes correlation harder but correlation is a statistical relationship. The correlations are still there. (latter quotes are from their github readme https://github.com/vpdotnet/vpnetd-sgx https://github.com/vpdotnet/vpnetd-sgx ) All that said, it is better to use SGX than to not use SGX, and it is better to use timing obfuscation than to not. Just don't let the marketing hype get ahead of the security properties!
- Retr0id 1y agoTaking a look at their code I see a rather concerning comment: func (om *ObfuscationManager) ProcessOutgoingPacket( ... // TODO where is the obfuscation here? https://github.com/vpdotnet/vpnetd-sgx/blob/bc63e3b8efe41120b21fdcf18c26b1318f9e7e5d/obfuscation.go#L61 https://github.com/vpdotnet/vpnetd-sgx/blob/bc63e3b8efe41120... While I do see the impl of the 10ms flush interval, I don't see any randomisation within batches. So iiuc, packets are still flushed in their original order.
- MagicalTux 1y agoThe comment was added before the implementation of the IPC buffer & shuffling and was left there, sorry about that. In an older version packets were sent back in sequence to their original connection to the host, as it was faster. We since then implemented a system where nproc (16+) buffers receiving packets running at differed intervals, meaning that while packets are processed "in order" the fact this runs in multiple threads, reading packets even from the same client will cause these to be put in queues that will be flushed at different timings. We have performed many tests and implementing a more straightforward randomized queue (by allocating memory, handling array of pointers of buffers, shuffling these, and sending these shuffled) did not make much of a difference in terms of randomization but resulted a huge loss in performance due to the limitations of the SGX environment. As we implement other trusted environments (TEE) we will be implementing other strategies and obfuscation methods.
- vivzkestrel 1y agothe only next level VPN is the one where it shows each line of code being executed from its github repo while you connect to the server. There aren't many ways you can beat that level of verification
- neurostimulant 1y ago> With humility and love, Mark (“MagicalTux”) Karpelès, CTO VP.NET Huh, I thought Mark Karpelès is working at Private Internet Access. From the about page: > currently head of karpeles labs, a multi faceted research and development firm specializing in highly complex technology systems I guess he quit to run a competing vpn company?
- Ms-J 1y agoYou can't be serious. If you attempt to signup, it will ask for a name and even more, such as a zip code if using cryptocurrency. Take a look at their about page and see the absolute clowns running this joke of a service. Avoid these monsters at all costs.
- jiveturkey 1y agoThis is hot garbage IMO. Admittedly I haven't looked past the intro page, and comments here. Plus I have a ton of experience in this area (although have never actually operated a consumer VPN or ToR or what have you). I think the comments here about SGX trust are misguided. This isn't protecting you from deep state chip level intentional bypasses. We can at least have reasonable enough assurance in SGX per se. The average law enforcement isn't going to get to your data because of some undisclosed SGX issue. But unlike AMZ Nitro, which AIUI has a network stack which bypasses the guest OS (I believe hypervisor can see everything, which I would trust about the same as SGX), SGX requires host/guest support to pass network packets. So in Nitro you can operate the TCB entirely without (unverified, unattested) guest OS seeing anything? But in SGX the guest has to pass traffic back and forth to SGX. The difference here is who operates the untrusted bit. For SGX it's the application author themselves. That is why you need the 10ms batching, to stop the host/guest from matching src/dst pairs, and inspecting the outbound traffic (inbound is presumably encrypted for the TEE). However, batching is laughable and won't stop correlation (unless you inject significant fake traffic, which the host/guest has to not be able to tell is fake). So like every other VPN this is marketing of snake oil. Compare that to express or whoever it is that offers static IP within Nitro. That is way more useful than this pretend security. (Use of Nitro allows them to not know what static IP is assigned to you, so they can't be compelled to give that info up.) MASQUE (Apple Private Relay) or other double-blind VPNs are better and don't require SGX. Besides the technical inadequacies, you have the double whammy of PIA and MtGox heritage. oh my.
- commandersaki 1y agoReally could care less about another VPN provider; I yearn for a FOSS VPN implementation that has the operational simplicity of dsvpn [1] but operates over QUIC/MASQUE. I did look into doing this myself by contorting the Cloudflare quiche server, but I put it down due to time, something I hope to revisit soon. [1]: https://github.com/jedisct1/dsvpn https://github.com/jedisct1/dsvpn
- dongcarl 1y agoI actually spent a few months prototyping SGX/SEV VPNs before settling on a Multi-Party Relay scheme for obscura.net Things may have changed since mid-2023 but here were my takeaways: ----- Re: Vendor lock-in Vendor lock-in is (was?) a huge problem (at least for process-based TEEs) Process-based TEEs (mainly SGX) operated by providing essentially a whole new system abstraction. At the base level, there was no `libc`-like or `POSIX`-like interfaces, only Intel specific ones. This is why there are projects like [Gramine](https://github.com/gramineproject/gramine https://github.com/gramineproject/gramine) and [Fortanix](https://github.com/fortanix/rust-sgx https://github.com/fortanix/rust-sgx) that aimed to provide a more `libc`/`POSIX`-like interface to developers, even though this was the leakiest of abstractions (you can’t even create a UDP socket). This is not only a problem in terms of Developer Experience though, this is also a huge problem for vendor lock-in. Porting things were nigh impossible, and you’re stuck with the Intel platform. I think Intel is making a genuine attempt at making a good TEE right now, but what if Intel decides to axe their budget for TEEs or drop support altogether? *Possible solution*: Use VM-based TEE abstractions like SEV or TDX, which can run a full VM, which is at least a more portable solution and has a full Linux environment (with some caveats). ----- Re: Trust model A convincing trust model for TEE VPNs was possible, but a big engineering challenge. 1. TEEs without remote attestation and reproducible builds of the backend are near-meaningless: If a VPN operator hands you a proof co-signed by Intel that they’re running in SGX… so what? They could simply be running a data-harvesting pipeline in SGX. *Possible solution**: A **remote attestation** of *what they’re running*, which requires that they have a reproducible build of *what they’re running*, and for the remote attestation to verifiably attest to that reproducible build 2. For VPNs: it is always possible to hand the user a *remote attestation* to one server, then just swap out that server for another when the user is connecting. *Possible solution**: A way to link the **remote attestation** to what you’re connecting to. ----- Re: Vulnerabilities Back in mid-2023, it seemed like vulnerabilities in different TEEs were still popping up. However, I don’t want to overstate them here or engage in FUD: over time, it seems like the newly revealed vulnerabilities were becoming more and more theoretical attacks hard to carry out in the real world. I think this is something that improves over time as the different TEE platforms matures, but *relying solely on TEEs* to make claims about privacy and security seemed a bit shaky to me. This was the final straw for me for why not to start with TEEs back in 2023: Given that we wanted to avoid vendor lock-in as much as possible, we only had AMD SEV as a choice at the time. I came across this vulnerability ([GitHub](https://github.com/PSPReverse/amd-sp-glitch https://github.com/PSPReverse/amd-sp-glitch), [arXiv](https://arxiv.org/abs/2108.04575 https://arxiv.org/abs/2108.04575)) and (from my reading) it was very practical and almost unforgive-able, see [this image](https://forum-uploads.privacyguidesusercontent.com/original/2X/4/42df6a47e600e2b826b13bf921938af33ce49013.png https://forum-uploads.privacyguidesusercontent.com/original/...). Funnily enough, you can even see my post in 2023 to understand if the AMD VLEK addition mitigated the vulnerability ([GitHub comment](https://github.com/PSPReverse/amd-sp-glitch/issues/3 https://github.com/PSPReverse/amd-sp-glitch/issues/3)). *Possible solution*: MPR but each hop is a different TEE implementation. That way an attacker would have to have an exploit for all the TEE implementations to break the security model. ----- Anyway, these were my thoughts back in 2023, things like hardware vulnerabilities may have changed since then, and certainly the availability of Intel TDX (another VM-based TEE) makes vendor lock-in much better, but the “Trust Model” challenges still remain. That is a big engineering challenge though, and not a fundamental problem with TEEs, so I’m very cautiously optimistic!