What Is a Tor Hidden Service?
A Tor hidden service, officially known as an Onion service, is a network service or website that operates entirely within the Tor network to provide mutual anonymity and end-to-end encryption. Unlike traditional web services that expose their public IP address to direct traffic, hidden services allow publishers to host websites, messaging platforms, or databases without revealing their physical location, network address, or server identity to visitors or internet service providers. This article explains how Tor hidden services work, their primary security benefits, and their practical use cases.
The Core Concept of Onion Services
In a standard internet connection, a client sends a request directly to a server’s IP address, allowing both parties—and any network intermediaries—to identify who is communicating with whom. Tor hidden services disrupt this model by establishing connections through the Tor overlay network.
Hidden services are identified by special addresses ending with the
.onion top-level domain (for example,
expyuz5wqqfdgah56...onion). These addresses are not
standard domain names resolved by the traditional Domain Name System
(DNS). Instead, an onion address is a cryptographic public key generated
automatically when the service is configured. Because the address itself
contains the public key, connections to onion services are
self-authenticating and inherently encrypted.
How a Tor Hidden Service Works
The connection between a user and an onion service relies on a multi-step cryptographic handshake:
- Setting Up Introduction Points: When a hidden service starts, it chooses several random Tor relays to act as its “introduction points” and builds encrypted circuits to them.
- Publishing a Service Descriptor: The service signs a descriptor containing its public key and the list of its introduction points, then publishes this descriptor to Tor’s distributed hash table (DHT).
- Client Lookup: When a user enters a
.onionaddress into a Tor-enabled browser, the client retrieves the service descriptor using the address as the lookup key. - Establishing a Rendezvous Point: The client selects an independent Tor relay to serve as a “rendezvous point,” builds a circuit to it, and assigns a one-time secret authorization token.
- Connecting Through Introduction Points: The client sends an encrypted message to one of the service’s introduction points, asking it to forward the rendezvous point details and the secret token to the hidden service.
- The Rendezvous: The hidden service connects to the chosen rendezvous point via its own multi-hop circuit. The rendezvous point joins the two circuits together without knowing the identity or IP address of either party.
Through this design, the client never learns the server’s IP address, and the server never learns the client’s IP address.
Key Benefits of Tor Hidden Services
- Bidirectional Anonymity: Both the publisher and the consumer remain completely anonymous to one another and to network observers.
- End-to-End Encryption: Traffic inside the Tor network between the client and the onion service is multi-layered and fully encrypted, removing the strict necessity for third-party SSL/TLS certificate authorities.
- NAT and Firewall Traversal: Because hidden services establish only outgoing connections to Tor relays, they can run behind firewalls, NAT routers, or non-routable private networks without requiring open inbound ports or port forwarding.
- Resistance to Censorship and Spoofing: Because
.onionaddresses are cryptographically tied to the server’s private key, domain hijacking and man-in-the-middle attacks become virtually impossible within the Tor protocol.
Common Use Cases
Tor hidden services are used in a variety of contexts where privacy, security, and resistance to censorship are paramount:
- Journalism and Whistleblowing: Platforms like SecureDrop rely on hidden services to allow sources to submit sensitive documents to journalists without leaving a digital footprint.
- Circumventing Censorship: Major news organizations (such as the BBC and The New York Times) and search engines (such as DuckDuckGo) host onion mirrors to allow users in restrictive regimes to access unfiltered information.
- Secure Communications: Decentralized chat applications and peer-to-peer networks utilize onion routing to prevent surveillance and metadata harvesting.
- System Administration: Administrators use hidden services to access SSH servers and internal management consoles securely without exposing open ports to the public internet.