In early August 2013, a large share of the onion sites that existed at the time went offline at once. When some of them came back, they were serving a page that said they were down for maintenance, along with a hidden piece of JavaScript that, on the right machine, would quietly report the visitor's real IP address to a server in Virginia.
Those sites all lived on Freedom Hosting, and the episode is still the clearest example of something people tend to underestimate: you don't have to break Tor to unmask a Tor user. You just have to break their browser.
What Freedom Hosting was
Freedom Hosting was a free (and cheap paid) hosting provider for hidden services, as they were then called. Setting up your own onion server took some skill, and Freedom Hosting removed that barrier. By 2013 it hosted a significant fraction of all onion sites. Exactly what fraction gets quoted many different ways, so I won't add another number to the pile. Its tenants included ordinary things like forums, personal pages and TorMail, an anonymous email service that a lot of people used. They also included a number of sites distributing child sexual abuse material, which is what put the operator on law enforcement's radar years earlier.
In 2011, Anonymous had attacked Freedom Hosting under the name "Operation Darknet", targeting one of those abuse sites and publishing what it said were user names. The hosting service kept running.
The arrest in Dublin
The operator was Eric Eoin Marques, a dual US-Irish citizen living in Ireland. He was arrested in Dublin in late July or early August 2013 on a US extradition request (reports at the time differ by a day or two). FBI investigators had traced Freedom Hosting's infrastructure to a hosting company in France, and with the cooperation of the authorities there they gained control of the servers.
Rather than simply shutting everything down, the FBI kept some of the sites running and modified them.
The exploit
The injected JavaScript targeted a memory-handling bug in Firefox 17 ESR, the Extended Support Release that the Tor Browser Bundle was based on at the time. Mozilla had already fixed the bug in June 2013, and the Tor Project had shipped an updated bundle. But plenty of people hadn't updated, and the exploit was aimed at them.
It only worked on Windows. When it ran, it didn't install anything persistent. The payload gathered the computer's hostname and MAC address and sent them, along with an identifier for the session, to a server under FBI control. The important part was that this connection was made directly over the internet rather than through Tor, so it carried the user's real IP address. Researchers who pulled it apart noticed it didn't look like typical criminal malware: there was no attempt to take over the machine, steal data, or stick around. It did one job.
Security researchers named the payload "Magneto" based on strings found inside it, and Wired reported that it matched what the FBI called a "computer and internet protocol address verifier". The Bureau's broader term for this sort of tool was a "Network Investigative Technique", or NIT, which is the phrase you'll see in court documents from then on.
The FBI confirmed in a court hearing in Ireland in September 2013 that it had been behind the operation. TorMail users, many of whom had nothing to do with any abuse sites, later learned that the FBI had obtained a copy of the TorMail server and its stored mail.
What the Tor Project said
The Tor Project's response at the time was blunt. The Tor software was not compromised, the vulnerability was in Firefox, it had been patched weeks earlier, and anyone running the current Tor Browser Bundle or using a non-Windows system was not affected. All true. It also didn't change the fact that a lot of Windows users running an outdated bundle had their real addresses sent to the FBI.
The episode pushed the project in a few directions over the following years. Tor Browser got an automatic updater so that people weren't sitting on months-old versions. The browser's security slider, now called security levels, gave users an easy way to turn off JavaScript and other risky features on sites they didn't trust. There's more on why JavaScript matters in JavaScript and Anonymity. Projects like Tails and Whonix also became more appealing, because they route every connection through Tor at the system level, so an exploit that tries to phone home directly just fails.
The legal aftermath
Marques fought extradition for years. He was finally sent to the US in 2019, pleaded guilty in 2020 to conspiracy to advertise child pornography, and in September 2021 was sentenced in federal court in Maryland to 27 years in prison.
The NIT approach outlasted Freedom Hosting. In 2015 the FBI took over a child abuse site called Playpen and ran it for about two weeks while deploying another NIT, under a single warrant issued in Virginia, that reached computers all over the world. That case, sometimes called Operation Pacifier, produced a wave of litigation over whether one magistrate judge could authorise hacking computers whose locations were unknown. Several courts suppressed the evidence; others didn't. The controversy fed directly into a 2016 change to Rule 41 of the Federal Rules of Criminal Procedure, which now explicitly allows such warrants when a computer's location has been concealed through technological means. The EFF and other groups opposed the change.
If you take one practical lesson from 2013, it's the boring one. Keep Tor Browser updated, and use a higher security level on sites you have reason to distrust. The people caught by this exploit were, almost by definition, the ones who hadn't.