Thread View: alt.privacy.anon-server
1 messages
1 total messages
Started by D
Wed, 23 Aug 2023 21:26
Tor Project - Onion Services, Proof-of-Work (2023-8-23)
Author: D
Date: Wed, 23 Aug 2023 21:26
Date: Wed, 23 Aug 2023 21:26
183 lines
11628 bytes
11628 bytes
https://community.torproject.org/onion-services/ >How do Onion Services work? >Learn how Onion Services work. >https://community.torproject.org/onion-services/overview/ >Onion services are services that can only be accessed over Tor. Running >an Onion Service gives your users all the security of HTTPS with the >added privacy benefits of Tor Browser. >Why Onion Services? >Onion services offer various privacy and security benefits to their users. >Location hiding >An Onion Service's IP address is protected. Onion services are an overlay >network on top of TCP/IP, so in some sense IP addresses are not even >meaningful to Onion Services: they are not even used in the protocol. >End-to-end authentication >When a user visits a particular onion, they know that the content they >are seeing can only come from that particular onion. No impersonation is >possible, which is generally not the case. Usually, reaching a website >does not mean that a man-in-the-middle did not reroute to some other >location (e.g. DNS attacks). >End-to-end encryption >Onion service traffic is encrypted from the client to the onion host. >This is like getting strong SSL/HTTPS for free. >NAT punching >Is your network filtered and you can't open ports on your firewall? This >could happen if you are in a university campus, an office, an airport, >or pretty much anywhere. Onion services don't need open ports because >they punch through NAT. They only establish outgoing connections. >The Onion Service Protocol: Overview >Now the question becomes what kind of protocol is needed to achieve all >these properties? Usually, people connect to an IP address and are done, >but how can you connect to something that does not have an IP address? >In particular, an Onion Service's address looks like this: >vww6ybal4bd7szmgncyruucpgfkqahzddi37ktceo3ah7ngmcopnpyyd.onion >This looks weird and random because it's the identity public key of the >Onion Service. That's one of the reasons we can achieve the security >properties above. >The Onion Service protocol uses the Tor network so that the client can >introduce itself to the service, and then set up a rendezvous point with >the service over the Tor network. Here is a detailed breakdown of how >this happens: >Act 1: Where the Onion Service sets up its introduction points >Let's imagine that your local newspaper decides to set up an Onion >Service (using SecureDrop) to receive anonymous tips. As the first step >in the protocol, the Onion Service will contact a bunch of Tor relays >and ask them to act as its introduction points by establishing long-term >circuits to them. These circuits are anonymized circuits, so the server >does not reveal the service location to the introduction points. >The Onion Service will hide and protect itself behind the Tor network by >only allowing access through three introduction points that it connects >to through a two-hop Tor circuit. >Act 2: Where the Onion Service publishes its descriptors >Now that the introduction points are set up, we need to create a way for >clients to be able to find them. >For this reason, the Onion Service assembles an Onion Service descriptor, >containing a list of its introduction points (and "authentication keys"), >and signs this descriptor with the Onion Service's identity private key. >The identity private key used here is the private part of the public key >that is encoded in the Onion Service address. >The Onion Service upload that signed descriptor to a distributed hash >table, which is part of the Tor network, so that clients can also get it. >It uses an anonymized Tor circuit to do this upload so that it does not >reveal its location. >Act 3: Where a client wants to visit the Onion Service >Say you want to anonymously send some tax fraud data to your local >newspaper through its SecureDrop. You find the onion address for the >newspaper's SecureDrop from a public website or friend. >Act 4: Where the client introduces itself to the Onion Service >All the previous steps were just set up for the Onion Service so that >it's reachable by clients. Now let's fast-forward to the point where an >actual client wants to visit the service. >In this case, the client has the onion address of SecureDrop and want >to visit it, so they connect to the service with Tor Browser. Now the >next thing that needs to happen is that the client goes to the >distributed hash table from Step 2 and ask for the signed descriptor of >SecureDrop's Onion Service. >Act 5: Where the client verify onion address signature >When the client receives the signed descriptor, they verify the >signature of the descriptor using the public key that is encoded in the >onion address. This provides the end-to-end authentication security >property, since we are now sure that this descriptor could only be >produced by that Onion Service and no one else. >And inside the descriptor, there are the introduction points that allow >the client to introduce themselves to SecureDrop's Onion Service. >Act 6: Where the client establishes a rendezvous point >Before the introduction takes place, the client (in this case, you) >picks a Tor relay and establishes a circuit to it. The client asks the >relay to become their rendezvous point and give it an "one-time secret" >that will be used as part of the rendezvous procedure. >Act 7: Where the Onion Service rendezvous with the client >The introduction point passes your details (secret string and >rendezvous address) on to the Onion Service, which runs multiple >verification processes to decide whether you're trustworthy or not. >Act 8: Where the rendezvous point verifies the client's secret >The Onion Service connects to the rendezvous point (through an >anonymized circuit) and sends the "one-time secret" to it. The >rendezvous point makes one final verification to match the secret >strings from you and service (the latter also comes from you but has >been relayed through the service). >The rendezvous point simply relays (end-to-end encrypted) messages >from client to service and vice versa. >Act 9: Where the Onion Service rendezvous with the client >In general, the complete connection between client and Onion Service >consists of 6 relays: 3 of them were picked by the client, with the >third being the rendezvous point, and the other 3 were picked by the >Onion Service. This provides location hiding to this connection. >Finally, using the rendezvous point, a Tor circuit is formed between >you and your newspaper's SecureDrop Onion Service. >Further resources >This was just a high-level overview of the Tor Onion Services >protocol. Here are some more resources if you want to learn more: > The Tor design paper describing the original design. > The Tor v3 Onion Services protocol specification. > Presentations about Onion Services: Understanding Tor Onion >Services and Their Use Cases - HOPE XI 2016, DEF CON 25 - Roger >Dingledine - Next Generation Tor Onion Services. [end quote] https://blog.torproject.org/introducing-proof-of-work-defense-for-onion-services/ >Introducing Proof-of-Work Defense for Onion Services >by pavel | August 23, 2023 >Today, we are officially introducing a proof-of-work (PoW) defense for >onion services designed to prioritize verified network traffic as a >deterrent against denial of service (DoS) attacks with the release of >Tor 0.4.8. >Tor's PoW defense is a dynamic and reactive mechanism, remaining dormant >under normal use conditions to ensure a seamless user experience, but >when an onion service is under stress, the mechanism will prompt incoming >client connections to perform a number of successively more complex >operations. The onion service will then prioritize these connections >based on the effort level demonstrated by the client. We believe that >the introduction of a proof-of-work mechanism will disincentivize >attackers by making large-scale attacks costly and impractical while >giving priority to legitimate traffic. Onion Services are encouraged to >update to version 0.4.8. >Why the need? >The inherent design of onion services, which prioritizes user privacy by >obfuscating IP addresses, has made it vulnerable to DoS attacks and >traditional IP-based rate limits have been imperfect protections in these >scenarios. In need of alternative solutions, we devised a proof-of-work >mechanism involving a client puzzle to thwart DoS attacks without >compromising user privacy. >How does it work? >Proof of work acts as a ticket system that is turned off by default, but >adapts to network stress by creating a priority queue. Before accessing >an onion service, a small puzzle must be solved, proving that some "work" >has been done by the client. The harder the puzzle, the more work is >being performed, proving a user is genuine and not a bot trying to flood >the service. Ultimately the proof-of-work mechanism blocks attackers >while giving real users a chance to reach their destination. >What does this mean for attackers and users? >If attackers attempt to flood an onion service with requests, the PoW >defense will kick into action and increase the computational effort >required to access a .onion site. This ticketing system aims to >disadvantage attackers who make a huge number of connection attempts to >an onion service. Sustaining these kinds of attacks will require a lot >of computational effort on their part with diminishing returns, as the >effort increases. >For everyday users, however, who tend to submit only a few requests at >a time, the added computational effort of solving the puzzle is >manageable for most devices, with initial times per solve ranging from >5 milliseconds for faster computers and up to 30 milliseconds for slower >hardware. If the attack traffic increases, the effort of the work will >increase, up to roughly 1 minute of work. While this process is >invisible to the users and makes waiting on a proof-of-work solution >comparable to waiting on a slow network connection, it has the distinct >advantage of providing them with a chance to access the Tor network even >when it is under stress by proving their humanity. >Where do we go from here? >Over the past year, we have put a lot of work into mitigating attacks on >our network and enhancing our defense for onion services. The >introduction of Tor's PoW defense not only positions onion services >among the few communication protocols with built-in DoS protections but >also, when adopted by major sites, promises to reduce the negative >impact of targeted attacks on network speeds. The dynamic nature of this >system helps balance the load during sudden surges in traffic ensuring >more consistent and reliable access to onion services. [end quote] Tor Browser 12.5.2 (2023-8-2): https://blog.torproject.org/new-release-tor-browser-1252/ https://www.torproject.org/ https://www.torproject.org/download/
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads