Safekipedia

Tor (network)

Adventurer · ages 7–10Adapted from Wikipedia
The high-level design of Tor. Tor protects client anonymity by nesting layers of encryption over three proxy hops, known as relays, or onion routers: a guard relay, followed by a middle relay, then an exit relay. Nodes running Tor are here represented as onions.

Tor is a free network that helps people communicate privately online. This means it is harder for others to know who is sending or receiving information. It is built on free and open-source software and is run by over seven thousand volunteer-operated relays around the world. Millions of people use it to send their internet traffic through these relays.

The way Tor works is called onion routing. Traffic is sent along random paths through the relays, so the data takes a winding route before it reaches its destination. Because of this, no single point on the internet, other than the user's own device, can see both where the traffic started and where it is going.

This makes it harder to follow a user's online activity. Tor helps hide a person's location and what they are doing from anyone carrying out network surveillance or traffic analysis from such a point. In this way, it helps protect people's freedom and their ability to communicate privately.

History

The main idea behind Tor, called onion routing, was created in the mid-1990s. Workers at the United States Naval Research Laboratory, mathematician Paul Syverson, and computer scientists Michael G. Reed and David Goldschlag worked on it. They wanted to help protect American intelligence communications online. Onion routing uses encryption in the application layer of the communication protocol stack. The layers are nested, like the layers of an onion. The alpha version of Tor was made by Syverson and computer scientists Roger Dingledine and Nick Mathewson. At first it was called The Onion Routing project. Later it got the short name "Tor." It launched on 20 September 2002, and the first public release came a year later.

A cartogram illustrating Tor usage in 2015

In 2004, the Naval Research Laboratory released Tor's code under a free license. The Electronic Frontier Foundation (EFF) began paying Dingledine and Mathewson to keep improving it. In 2006, Dingledine, Mathewson, and five others started The Tor Project. It is a nonprofit organization based in Massachusetts. It works on research and education, and it keeps Tor running. In its early years, the EFF acted as its fiscal sponsor. Some early supporters who gave money included the U.S. Bureau of Democracy, Human Rights, and Labor and International Broadcasting Bureau, Internews, Human Rights Watch, the University of Cambridge, Google, and Stichting NLnet, which is based in the Netherlands. Over time, people have found weaknesses in Tor, and some were misused. Studying attacks on Tor is an active area of academic research, and The Tor Project welcomes it.

Further information: Dark web

Tor lets people browse the Internet, chat, and send instant messages anonymously. Many kinds of people use it, for both licit and illegal purposes. Criminal groups, hacktivism groups, and police agencies have all used Tor. Sometimes they used it at the same time and even against each other. Some U.S. government agencies, such as the U.S. State Department, have paid for Tor. Others have tried to weaken it. Tor does not fully solve the problem of anonymity on the web. It is designed to make it harder for websites to trace actions and data back to a user. Tor can also be used for illegal activities, such as selling controlled substances, weapons, and stolen credit card numbers. It is also linked to money laundering and identity theft. The Economist has described Tor as "a dark corner of the web." The National Security Agency and GCHQ tried to target it but had little success. The National Crime Agency had more success.

The Electronic Frontier Foundation supports Tor as a way for whistleblowers and human rights workers to talk with journalists safely. The Tor Project says its users include ordinary people who want to keep their online activities private. They also include people worried about being watched and people who want to avoid censorship, such as activists, journalists, and military professionals. Tor is also used by people who have been hurt at home, through domestic violence, and by the social workers who help them. News organizations such as The Guardian, The New Yorker, ProPublica, and The Intercept use Tor, along with SecureDrop, to protect whistleblowers' privacy.

Operation

Tor tries to hide who its users are and what they do online from people who watch the internet. It uses onion routing, which wraps messages in layers of encryption. The messages are sent through relays run by volunteers around the world. The layers give the method its name. The relays also use perfect forward secrecy to protect data sent between them. Users stay anonymous about where they are on the network. Tor's onion services also let people share content without showing where it is. Some entry relays, called bridge relays, are kept secret so that users can get around Internet censorship that blocks public Tor relays.

The high-level design of Tor. Tor protects client anonymity by nesting layers of encryption over three proxy hops, known as relays, or onion routers: a guard relay, followed by a middle relay, then an exit relay. Nodes running Tor are here represented as onions.

Because the IP address of the sender and the recipient are never both in cleartext at the same point, someone watching the connection cannot easily see both ends. The recipient sees the last Tor node, called the exit node, as the source of the message, not the real sender.

Originating traffic

An onion router in Canada

Users can set their SOCKS-aware apps to send their traffic through Tor. Tor builds paths through the network and passes traffic from router to router until it reaches an exit node. The exit node then forwards it to its destination. Tor works at the Transmission Control Protocol (TCP) level, so it can protect many kinds of apps, including Internet Relay Chat (IRC), instant messaging, and World Wide Web browsing.

Onion services

See also: List of Tor onion services

The high-level design of onion services. The client and onion service each select three relays (a guard and two middle relays) to route traffic to each other, never leaving the Tor network, and never transmitting plaintext.

Further information: Dark web

Servers that receive connections through Tor are called onion services (formerly, hidden services). They are reached through an onion address, usually with the Tor Browser. Onion services were first specified in 2003 and have been on the Tor network since 2004. They can be used for many kinds of services, not just websites. In 2023, the Tor Project unveiled a new defense to protect onion services from denial-of-service (DoS) attacks. It was released with Tor 0.4.8.

Further information: CERT Coordination Center § Operation Onymous, and Operation Onymous § Tor 0-day exploit

Screenshot of Namuwiki, notifying that the website is blocking Tor traffic

Like all software with an attack surface, Tor has limits. Its design and software have been open to attacks at different times. Most of these problems were small and were fixed, but some were more serious. Tor is built to protect users from an attacker who can watch only one point of a connection, such as one of its three relays, the destination server, or the user's internet service provider. Like other low-latency anonymity networks, it cannot stop an attacker who watches both the entry and exit points of the network at the same time. Tor's consensus mechanism uses nine directory authority nodes that vote every hour. If most of them were taken over, the network's settings could be changed to help an attacker. Tor does not hide the IP addresses of exit relays. Because of this, some websites, such as Wikipedia and the BBC through its iPlayer service, limit Tor users. Their defenses may show captchas or apply geo-blocking. In 2014, the Tor Project reported a "relay early traffic confirmation attack." It used a Sybil attack to try to learn who onion service users were. After Operation Onymous, in which Europol and the FBI made 17 arrests, a 2015 court document linked the attack to a research group, the CERT Coordination Center of Carnegie Mellon University. Experts from ICSI, UC Berkeley, Princeton University, and the Tor Project raised concerns about the case. These concerns included the involvement of Edward Felten and the lack of disclosure.

Many attacks on Tor users come from flaws in applications used with Tor. In 2011, researchers at Inria attacked BitTorrent users. Some applications can also reveal a device fingerprint, such as screen size, fonts, or language settings. This can make a user easier to identify. Tor does not encrypt traffic between an exit relay and the destination server. So applications should add end-to-end encryption, such as TLS in HTTPS or Secure Shell. Malicious exit relays have recorded passwords and changed Bitcoin addresses. In 2011, the Dutch authority, while investigating a crime, passed an IP address to the FBI. This led to "Operation Torpedo" and the arrest of Aaron McGrath, who was sentenced to 20 years in prison. The FBI used a Network Investigative Technique that took advantage of an unpatched Firefox and Flash weakness. In 2013, an FBI operation linked to the owner of Freedom Hosting was acknowledged in a court filing in Dublin. Later, Edward Snowden's leaked documents named the exploit. In 2022, Kaspersky researchers found fake Tor Browser malware linked from a YouTube search. The OnionScan program, written by Sarah Jamie Lewis, checks onion services for flaws.

Software

See also: The Tor Project § Tools, and Guardian Project (software) § Projects

The main version of Tor is mostly written in C. Starting in 2020, the Tor Project began rewriting it in Rust. This project, called Arti, was announced in July 2021. The web browser Tor Browser was made by Steven J. Murdoch and announced in January 2008. It can connect to the Tor network. It works on Microsoft Windows, macOS, Android, and Linux. It includes NoScript and can run from removable media, such as a USB drive. The default search engine is DuckDuckGo. It used to be Startpage.com. When you close a session, the browser deletes private information, such as cookies and browsing history. This helps reduce web tracking and may help prevent a filter bubble. Tor Browser also has three security levels: Standard, Safer, and Safest. Each higher level turns off more features that can be risky, such as JavaScript. The Safer level blocks JavaScript on websites that are not secured by TLS. Downloads are shared through a GitHub repository. This means people can get the software even where the Tor Project website may be blocked.

Orbot logo

Tor Messenger was an instant messaging program that used the Tor network. It was released as a beta in October 2015. It was built on Instantbird, with OTR included, and was used from 2015 to 2018. Unlike Pidgin and Adium, it did not rely on libpurple. In April 2018, the Tor Project shut it down. Instantbird was no longer supported, the team had limited resources, and there were known problems with metadata. In 2016, a smartphone prototype that works with Tor was announced. It was based on CopperheadOS. Several other programs also support Tor, including Vuze, BitTorrent, Bitmessage, TorChat, Briar, and OnionShare. The Guardian Project makes free apps for the Android operating system, such as ChatSecure and Orbot. Onion Browser is a privacy browser for iOS. It can be found in the App Store. Brave added Tor support to its private-browsing mode in 2018. In September 2024, Tails, a security-focused operating system, became part of the Tor Project. Other security-focused systems that use Tor include Hardened Linux From Scratch, Liberté Linux, Qubes OS, Subgraph, Parrot OS, and Whonix.

Reception, impact, and legislation

Tor has been praised for giving privacy to people who need it. This includes political activists who worry about being watched or arrested, everyday web users who want to avoid censorship, and people who have been threatened by stalkers. The U.S. National Security Agency (NSA) called Tor "the king of high-secure, low-latency Internet anonymity." BusinessWeek magazine called it "perhaps the most effective means of defeating the online surveillance efforts of intelligence agencies around the world." Supporters say Tor helps protect freedom of expression, including in countries where the Internet is censored.

Tor was first developed for the U.S. intelligence community, and it still receives some U.S. government funding. As of 2012, most of The Tor Project's money came from the United States government. The U.S. State Department and the National Science Foundation were major supporters. Other groups that helped fund it include DARPA, Human Rights Watch, Reddit, and Google.

Some critics say Tor is not as safe as it claims to be. They point to times when U.S. law enforcement shut down websites that used Tor, such as Freedom Hosting and Silk Road. In 2013, The Guardian reported, based on documents leaked by Edward Snowden, that the NSA had tried many times to break Tor's main security. It did not succeed, though it had some success attacking the computers of certain Tor users. When Tor users are arrested, it is usually because of human error, not because the core technology was broken. In 2011, The Tor Project received the Free Software Foundation's Award for Projects of Social Benefit.

Improved security

Tor has fixed earlier weaknesses and become more secure. However, mistakes by users can still lead to someone finding them. The Tor Project website gives tips on how to use the Tor browser correctly, because Tor is not safe when it is used the wrong way. Tor warns that only traffic sent through the Tor browser is protected. Users are told to use HTTPS versions of websites, not to torrent with Tor, not to turn on browser plugins, and not to open downloaded documents while connected to the internet. They are also told to use safe bridges. Users cannot give their name or other revealing details on web forums over Tor and stay anonymous at the same time.

In 2013, intelligence agencies claimed that 80% of Tor users would be identified within 6 months. That still has not happened. As late as September 2016, the FBI could not identify the Tor user who broke into the email account of a staff member on Hillary Clinton's email server. When used properly, the chances of being identified through Tor are said to be extremely low. Tor co-founder Nick Mathewson said that running a few computers to watch traffic is not the network's biggest threat. Tor also does not protect against end-to-end timing attacks. In these attacks, someone watches both the traffic leaving a computer and the traffic arriving at its destination. They can then use statistics to connect the two.

Quiz time!

4 questions about Tor (network)

Question 1 of 4

What is Tor mainly used for?

Pictures

A phone screenshot showing the Orbot app connected to the Tor network, with a Tor Check website open in the Firefox browser.

Keep exploring

This article is a child-friendly adaptation of the Wikipedia article on Tor (network), available under CC BY-SA 4.0.

Images from Wikimedia Commons. Tap any image to view credits and license.