Wren Linux

wren-linux / docs / what-is-an-onion-site.md (as plain text)

What is an onion site?

An onion site is a website you can reach only through Tor, at an address ending in .onion. Normally, when you visit a website, Tor hides where you are. An onion site hides where the site is too.

How it works

On the ordinary web, a site has an IP address, which says roughly where its server is and who pays for it. An onion site doesn't use one. The whole connection stays inside Tor:

  1. The site picks a few Tor relays as introduction points and keeps connections open to them, through other relays, so they don't learn where it is.
  2. It publishes a signed note saying which relays those are (a descriptor), in a directory spread across the Tor network.
  3. Your Tor Browser fetches that note and checks the signature against the address itself.
  4. Your browser picks another relay as a meeting place (a rendezvous point), and sends a one-time secret, through an introduction point, to the site.
  5. The site connects to the meeting place, shows the same secret, and the two are joined.

You and the site each build three hops, the last of yours being the meeting place, so the connection runs over six relays. Neither side learns the other's IP address.

The address is the key

A modern onion address is 56 letters and digits, then .onion. It looks like gibberish because it's made from the site's public key. That gives it a property normal web addresses don't have: the address proves itself. If you have the right address, Tor checks that you've reached the holder of that key, with no certificate company or DNS provider to trust.

The catch is that you need the right address to begin with, and nobody can memorise one. A fake that shares the first few characters is easy to make. So get an address from somewhere you trust, and compare all of it. This is why Wren Linux's own site shows its address and signing key in more than one place.

What it gives you

What it doesn't give you

In Wren Linux

Also see the history of Tor, and what Wren Linux does and doesn't protect against.

Sources