Tor anonymity: how it works and how to use it
The Onion Router (TOR) network is intended to help protect the privacy of Internet users and promote greater freedom of expression online. Tor is a system of volunteer servers that acts as a buffer between Internet users and the resources they connect to. If you connect as a Tor client, your online access is channeled through this buffer before it reaches the general Internet. To understand clearly how Tor functions, you must first have a good idea of what proxy servers are, and of the role they play during network transmissions.
A proxy server acts as a middleman between a client computer and the target server or resource it is accessing. As such, proxies can be configured to log user activity and restrict Internet access; for example, by blocking certain websites or protocols. However, proxies can also help protect the client user’s privacy because the target server is only aware that it is communicating with the proxy, not with the client. For example, if you connect to a web proxy and then load a website, the site is only aware that it is being accessed by the proxy and it has no knowledge of your computer and IP address. The illustration below depicts network data flow when a proxy is deployed. Resources within the Internet icon (such as web servers) are only aware of the proxy server, not of the three clients behind it.
Now what if instead of using a single proxy server, you could connect to a network of them for increased bandwidth and availability? And what if you could encrypt your communication sessions for increased confidentiality? Using Tor, you can.
How Tor works
When you connect to the Tor network, your data packets are relayed multiple times through multiple Tor hosts before being passed off to the ultimate destination, such as the website you want to view. Simply put, you initially connect to the first Tor node, and then that node connects to the second Tor node, and then the second node connects to the exit node. Obviously each node forwards your packets to the next node in this circuit (data path). Because the internal Tor connections are encrypted, each node knows only about the nodes before and after it in the circuit, and no single node can infer both endpoints of an active circuit.
The transmission is encrypted to protect the data in transit. As you can see, the main advantage of using Tor is that the origin of your traffic is disguised as it gets mixed in with the traffic of other Tor users, and random nodes within Tor forward it along.
Tor handles proxy chaining and hopping on its own. What this means is that periodically you get a new ‘identity’ in the network (Tor discards the current relay path and builds an entirely new path using new nodes). This presents a difficulty for censoring/spying authorities because the list of participating nodes is always changing.
Tor also implements websites with the top level domain of “.onion”. These .onion sites are sites stored on volunteer Tor hosts and hence, are only accessible through Tor using Tor DNS. .Onions are different than regular websites because not only is your IP address hidden from them, but their IP addresses are also hidden from you. This implementation gives them leverage to host content more freely; i.e., without the fear that a repressive authority will locate their web servers and shut them down.
There is no single repository of all .onion sites. However, the Hidden Wiki (accessible only from within Tor) is a useful place to start. TORDIR and Sites Deep Web are other collections of user-submitted links. If it’s a search engine you want, give Torch a try. There are several other sites with similar functionality listed on the Hidden Wiki page.
How to use Tor
The first step to utilizing the Tor network is to install the client software that can allow your PC to communicate with Tor servers (a Linux version is available, but check first if it can be obtained from your distribution’s software repositories via a package manager like Synaptic). The Tor Browser Bundle contains everything you need to run Tor on your PC. In Windows, you just unzip the .exe file to a location you specify, and then launch
Start Tor Browser.exe. In Linux you need to unntar the tar.gz file and run
start-tor-browser. In Mac OSX just run
Tor will start running and a separate browser will launch. This browser is a copy of Firefox that is pre-configured to work correctly with Tor. If you are connecting from within a country that censors Internet access or from some other restrictive environment, you should now be able to access the entire Internet. To verify that you can access Tor properly, you can use this web page.
Be aware that if your Internet service provider (ISP) is actually worried about Tor usage, it can throttle Tor connections in the same manner it can throttle torrents and other P2P traffic. If your ISP were monitoring the connection between your PC and the outside Internet, what it would see would be an SSL connection on port 443 to a few select IP addresses. They could probably deduce that it’s a Tor connection and they can ascertain the amount of data transferred, but they would not be able to tell which sites you’re connecting to or what files you’re downloading or uploading.
Tor and anonymity
Now that you can connect to the Tor network, a question you might have is how truly anonymous your online activities are. The first rule of thumb to remember is that as long as your are using an IP address that can be tied back to you, you can never achieve total secrecy. Also bear in mind that Tor’s main strength is source anonymization, i.e. the hiding of your IP address. It as not as effective at securing data in transfer through its nodes. The biggest problem with Tor is that the exit node sees all your traffic and can potentially modify it unless otherwise protected (encrypted). Exit nodes can see exactly what the server (and any eavesdroppers on an unanonymized connection) can see. The main point to remember, though, is that the data can be decoded at the exit point – he won’t know who sent the file, but he’ll know what it is. The first Tor node (the one you connect to) will know who you are but not what data you are sending. So if you transmit sensitive data unencrypted over Tor, you are still not fully anonymous even though you are using an “anonymizing” network and therefore, it’s advisable to keep identifiable information going over Tor to a minimum. Using HTTPS for Web traffic helps mitigate the risk.
There is also the interesting paradox that using Tor might actually decrease your level of anonymity because Tor traffic is more likely to be monitored and scrutinized by agents and organizations searching for illegal activity. Why? Because any technically savvy user intending to engage in unlawful online activity is going to try to conceal his online tracks using Tor and similar tactics and technology (I say ‘illegal’ knowing that the definition of this term varies from country to country). Think about it: if you were tasked with finding users engaged in criminal online activity, where would you first look and concentrate your efforts? Would you be surprised to learn that the government or anti-piracy groups are running their own exit nodes? Remember that running a Tor exit node can put you at risk because the traffic traversing it can be traced back to you if it is unencrypted.
I2P: an alternative to Tor
I2P is an anonymous network consisting of multiple peers. Like Tor, I2P traffic goes through several peers (for example from you to peer A, from peer A to peer B, etc.) before eventually reaching the destination. Furthermore, each peer only knows about the preceding peer and the upcoming peer after itself. Inside this ‘private’ I2P network, users can host servers such as IRC, web servers, email servers, torrents, etc. The specific differences between I2P and Tor are spelled out here. Some places to search for I2P torrents are Tracker2, Difftracker, the I2P Torrent Repo, and Colombo-bt.
General online privacy
BillStClair.com, Network forensics evasion: How to exit the Matrix
Boum.org, Tails, a Linux distro for online privacy
DontTrack.us, Search engines and privacy concerns
EFF.org, Defensive Technology
FreeHaven.net, Selected papers in anonymity
Pastebin.com, How to secure your computer and surf fully anonymous
ArsTechnica.com, Flaws in Tor anonymity network spotlighted
ArsTechnica.com, Not anonymous: attack reveals BitTorrent users on Tor
Cornell University Library, How China is blocking Tor
Cryptome.org, Tor made for US government spying, says maker
Daily Cyber Grind, Nmap through the Onion (Tor)
EFF.org, The EFF Tor Challenge
EFF.org, HTTPS and Tor: Working together to protect your privacy online
Forbes.com, Mysterious scans on Tor from China’s firewall
Google-opensource.blogspot.com, Google and the Tor Project
Hal.inria.fr, Exploiting P2P Applications to Trace and Profile Tor Users
HowToForge.com, Ultimate security proxy with Tor
Makezine.com, How not to use Tor
SMH.com.au, The Tor hack of the year
SpyBlog.org.uk, Why you need extra courage to operate a Tor exit node
TechnologyReview.com, Router with Tor built in
TenableSecurity.com, Active and passive Tor detection
ThreatPost.com, How the Chinese Firewall blocks Tor
TorProject.org, Tor and the Beast SSL attack
TorProject.org, Tor Frequently Asked Questions (FAQs)
TorProject.org, Tor Abuse Frequently Asked Questions (FAQs)
TorProject.org, Transparently Routing traffic through Tor
TorrentFreak.com, BitTorrent Hydra: anonymous hidden tracker via Tor
USCyberLabs.com, Attacking a Tor network
V3.co.uk, Swedish researchers uncover key to China’s Tor-blocking system
If you found the content of this article helpful and want to expand your knowledge further, please consider buying a relevant book or two using the links below. Thanks!