Skip to content
OSINTblogs

How to tell a real .onion address from a fake

Onion addresses are long, random and easy to imitate, and clones of popular onion sites are common. How v3 addresses work, why a search result or link list proves nothing, where to get the right address, how to check it character by character, and why lookalike vanity addresses fool people.

· 8 min read

A five-step flow for checking an onion address: get it from the source, check HTTPS, count 56 characters, compare every character and bookmark it.

An onion address looks like a string of random letters and digits, and in a sense it is. That randomness is what makes onion services secure, and also what makes them easy to fake. Nobody can remember 56 characters, so most people find addresses through search engines, link lists or a post on a forum, and copy whatever they are given.

Fraudsters rely on this. A clone of a well-known onion site, with an address that looks similar at a glance, can collect logins, payments and the attention of researchers who think they are looking at the real thing. This guide covers how to establish that an address belongs to who you think it does, using only the organisation's own channels and what Tor Browser supports.

What an onion address is

An onion service is a site reachable only through the Tor network. Its address is not registered with anyone. It is generated from a cryptographic key pair created by whoever runs the service.

The Tor specification for encoding onion addresses sets out what goes into a current, version 3 address: the service's 32-byte public key, a two-byte checksum and a one-byte version number, encoded in base32 and followed by .onion. The result is always 56 characters before the .onion.

Three practical consequences follow.

  • The address authenticates the service. The Tor Browser manual explains that, because of the cryptography involved, the address lets Tor make sure it is connecting to the right place. If you have the correct address, you reach the holder of that key and nobody else. No certificate authority or domain registrar sits in between.

  • Only certain characters appear. Base32 uses the letters a to z and the digits 2 to 7. A 0, 1, 8 or 9 in an address means it is not a valid v3 address. Because of the way the version byte is encoded, every valid v3 address also ends in d before .onion.

  • Random typos are caught, deliberate fakes are not. The checksum means that a mistyped character usually produces an address Tor rejects. A fraudster does not mistype. They generate a new key pair, which gives a different, fully valid address.

Older version 2 addresses were 16 characters long. Tor removed support for them in 2021, so any short address you find in old notes or lists no longer works.

Why clones are common and listings prove nothing

The security of an onion service rests entirely on having the right address in the first place. Everything after that is automatic. That makes the first step the weak point.

  • There is no central directory. Onion search engines index what they find, including clones. A top result is not an endorsement.

  • Link lists are easy to poison. Lists of onion links are copied from site to site, often without checks, and some are maintained by people who swap in their own addresses.

  • Clones can copy everything visible. The page design, logo, text and even the login form can be identical. Only the address differs.

  • Criminal sites are cloned most. Phishing copies of markets and forums are routine. Ransomware groups often run several mirrors of their leak sites, which is one more reason to monitor them through public trackers rather than by visiting, as our guide to ransomware leak sites explains.

The same pattern exists on the ordinary web, where fraudsters register lookalike domains. The difference is that on the clear web you can at least look up who registered a domain and when. An onion address has no registration record.

Getting the address from a trustworthy source

The principle is simple: get the onion address through a channel the organisation controls and that you can verify independently, usually its ordinary HTTPS website.

The organisation's own website

Many legitimate organisations list their onion address on their main site. The Tor Project, for example, publishes a page at onion.torproject.org listing every onion service it runs, served from its own domain over HTTPS. That page gives 2gzyxa5ihm7nsggfxnu52rck2vv4rvmdlkiu3zzui5du4xyclen53wid.onion as the onion address for www.torproject.org.

Type the organisation's ordinary address yourself or use a bookmark you trust, rather than following a link to it. Then copy the onion address from that page.

The Onion-Location header

A website can tell Tor Browser that it has an onion version by sending an Onion-Location header or an equivalent HTML meta tag. When it does, Tor Browser shows a purple ".onion available" button in the address bar, and clicking it loads the onion site.

The Tor Project's Onion-Location documentation sets the conditions: the page that sends it must be served over HTTPS and must not itself be an onion site. That is what makes it useful. The onion address arrives with the authority of the HTTPS site, so if you trust that you are on the real clear-web site, you can trust the onion it points to. Several large sites send the header, including the Tor Project, The Guardian and Deutsche Welle.

You can see the header without visiting through Tor at all:

curl -sI https://www.torproject.org/ | grep -i onion-location

HTTPS certificates on onion sites

Some onion sites also use HTTPS certificates. According to the Tor Project's page on HTTPS for onion services, only two certificate authorities currently issue them: DigiCert, with Extended Validation certificates, and HARICA, with Domain Validation certificates.

The type matters. The Tor Browser manual explains that an Extended Validation certificate means the certificate authority has checked that the site belongs to the organisation it claims to belong to. A Domain Validation certificate does not tell you that. Click the onion icon in the address bar to view the certificate and see which organisation, if any, is named. If the same certificate also lists the organisation's ordinary domain, the authority has checked control of both names.

Certificates are also recorded in public certificate transparency logs, which the Tor Project notes can reveal onion names. Searching those logs for an organisation's domain can show onion addresses that appear on its certificates.

Signed announcements

Some services publish their addresses in a message signed with a PGP key, so that anyone who already holds the key can confirm the list has not been altered. This is only as good as your copy of the key. A key obtained from the same unverified source as the address proves nothing.

Checking the address itself

Once you have an address from a trusted source, compare it with the address you are actually visiting. Do it every time you arrive from a link you did not create yourself.

  1. Check the length. Count 56 characters before .onion. Copy both into a text editor if needed.

  2. Check the characters. Only a to z and 2 to 7, ending in d.

  3. Compare the whole string. Not the first eight characters and the last four. Put the two addresses one above the other in a text editor and go through them in blocks of eight.

  4. Use the computer. Paste both into a file and compare them with a diff tool, or search for one inside the other. A machine does not get bored at character 31.

  5. Bookmark the verified address. Next time, use the bookmark instead of searching again.

Clear-web habits help here too. Our guide to checking a suspicious link covers reading an address before you click, and the same discipline applies.

The lookalike vanity address problem

Because an address comes from a key, an operator can generate millions of keys until one produces an address beginning with a chosen word. The Tor Project's page on vanity addresses describes how, naming the tool mkp224o. The Guardian's onion address begins guardian2 and Deutsche Welle's begins dwnews, almost certainly generated this way.

The same page sets out the risk. Anyone with ordinary computing power can generate other addresses that start with the same few characters. A fraudster can copy the prefix of a real address, and if the real site has no vanity prefix, a fake with a readable name may even look more convincing than the genuine one.

What a fraudster cannot do is match the full 56 characters. Each extra character to be matched makes the search far longer, so lookalikes typically match the start, and sometimes the end, while the middle differs. That is why step 3 above says to compare the whole string. A readable prefix tells you nothing about who runs the site.

Safe handling while you check

Verifying an address does not make the site safe to visit. It only tells you whose site it is. The basic set-up still applies: an isolated machine or Tails, an unmodified Tor Browser at the Safest security level, no personal logins and no downloads. Our guide to dark web OSINT covers the set-up step by step, and OPSEC for OSINT covers keeping your research identity separate from your own.

If you are researching rather than using a service, record how you verified the address: the source page, the date in UTC, and a screenshot or capture of where the address was published. A report that rests on an onion site should show the reader that the site was the real one.

Frequently asked questions

How long is a real onion address?

A current version 3 address has 56 characters before .onion, using only the letters a to z and the digits 2 to 7. Shorter 16-character addresses are the retired version 2 format and no longer work.

Can two onion sites have the same address?

Not in practice. The address is derived from the service's public key, and reproducing it means obtaining that key. A fake site has to use a different address, though it can be made to look similar.

Does the onion icon in Tor Browser mean the site is genuine?

No. It means you are connected to an onion service securely. The Tor Browser manual notes that the icon alone does not tell you that you are on the right site, unless the site uses an Extended Validation certificate.

Is an address from an onion search engine safe to use?

Not without checking. Search engines index clones as readily as real sites. Confirm the address against the organisation's own website or its Onion-Location header first.

What is the safest way to find a news site's onion address?

Visit the news site's ordinary website in Tor Browser and look for the ".onion available" button, or find the address on a page of the site itself. Then bookmark the onion address.

Share this post

Written by

Dheeraj Yadav

Founder of OSINTverse, where I build OSINT tools for investigators and journalists. Self-taught ethical hacker working in bug hunting, malware analysis and digital forensics. Previously ran OSINTCon, now OSINT Collective.

Terms used in this post

Dark web
Websites reachable only through anonymity networks such as Tor, used for privacy and dissent as well as criminal markets and leak sites.
Onion service
A website or service reachable only through Tor, at a .onion address derived from its cryptographic key.
Tor
An anonymity network that passes traffic through three volunteer-run relays in layers of encryption, hiding who is visiting which site.

More definitions in the OSINT glossary.

Newsletter

New OSINT write-ups by email

An email when there are new posts on OSINTblogs. No fixed schedule and no account needed.

We email a link to confirm. Unsubscribe at any time. See the privacy policy.

More from Dheeraj Yadav

Report this post