Unknown hackers hijacked more than 300 Tor exit nodes and reconfigured them to favor unencrypted email traffic and redirect SSH connections through servers they controlled, a researcher reported Tuesday. The hijacking began in late August, when according to Tor volunteers, the attacker used a valid password that had been reused to gain access to a Tor management server. The attacker then installed Ebury, a backdoor written for Linux that was discovered 12 years ago.
Then the attacker connected from the management server to a second Tor server, called Switzerland2, through SSH, using an RSA key that, for unknown reasons, investigators couldn’t find among Switzerland2’s authorized keys. With administrative control of Switzerland2, the attackers installed Ebury there as well. Finally, the attacker reconfigured settings on two exit nodes that Switzerland2 hosted.
Ultimately, 333 exit relays were involved in the SSH and email interception campaign, although investigators haven’t established how the attackers gained control of all the underlying servers. The attackers then reconfigured the servers. One set of changes redirected SSH traffic traversing Tor to one of 12 attacker-controlled interceptor servers. Tor users who ignored warnings that the SSH host key had changed would then enter their SSH passwords.
A second set of changes caused the exit nodes to block ports 25, 465, 587, 993 and 995—used to accept various forms of encrypted email—while continuing to allow ports for receiving unencrypted email. If email services downgraded the connections, the attackers used their access to the exit nodes to obtain unencrypted messages. It’s unclear whether any such downgrade attempts succeeded. The hijacking occurred from October 2 to October 5.
How the Compromise Unfolded
According to Tor volunteers, the intrusion chain began when an attacker reused a valid password to break into a Tor management server. With that access, the intruder installed Ebury—a Linux backdoor first identified over a decade ago. The attacker then pivoted from the management server to a secondary Tor node known as Switzerland2, again using SSH with an RSA key that investigators later said did not appear in Switzerland2’s authorized keys list. Once administrative control of Switzerland2 was established, Ebury was installed on that node as well. The final step involved reconfiguring settings on two exit nodes hosted by Switzerland2.
These reconfigurations produced two distinct effects. One change redirected SSH traffic moving through the Tor network to one of 12 servers controlled by the attacker. Users who connected via SSH and ignored warnings that the host key had changed would unknowingly transmit their credentials to the attacker. Kaba, the Tor volunteer who authored the detailed report, described encountering this exact situation on a Friday morning: “If you happen to get a circuit that exits over one of those 333 infected exit nodes, you won’t notice anything at first. Encrypted web traffic is forwarded as usual, but if you attempt an SSH connection over Port 22, you’re unknowingly redirected to one of 12 SSH interception servers.” Kaba then received a warning about the SSH host key having changed.
The second reconfiguration altered which network ports the compromised exit nodes would accept. The nodes continued to allow ports for receiving unencrypted email but blocked ports 25, 465, 587, 993 and 995—the standard ports used for encrypted email protocols. The theory is that if email services attempted to downgrade connections to unencrypted versions, the attackers positioned at the exit node could capture the resulting plaintext messages. Whether any such downgrade attempts succeeded remains uncertain.
Ebury and the Infrastructure of the Attack
Ebury is a well-documented backdoor for Linux systems, originally discovered more than a decade before this incident. Once installed on a machine, it can harvest credentials, provide remote access, and facilitate man-in-the-middle attacks. Its presence on both the management server and Switzerland2 suggests the attacker prioritized persistence across multiple points of the Tor infrastructure. The reuse of a single password to reach the management server indicates a lapse in credential hygiene, possibly involving a password reused across unrelated systems.
Investigators have not yet determined how the attacker obtained control of the remaining servers needed to reach the total of 333 compromised exit relays. The report notes that Tor volunteers partially outlined the initial compromise of the management server and Switzerland2, but the full path to the other nodes remains under examination.
What This Means for Tor Users
If a user’s traffic exits through one of the 333 compromised nodes, the immediate impact depends on the type of connection. Unencrypted web traffic passes through as normal, so browsing HTTPS sites remains safe. However, SSH connections on Port 22 are redirected to attacker-controlled interceptors. Any user who proceeds past a host-key warning and enters credentials risks having those credentials captured. The email-related changes mean that any connection relying on the blocked ports for encryption could be downgraded, potentially exposing message content—though whether this downgrade was actively exploited is unknown.
The hijacking was active from October 2 to October 5, a four-day window during which any Tor circuit exiting through an infected node was vulnerable. Because the compromise relied on reconfiguring exit nodes rather than altering the Tor protocol itself, the vulnerability disappeared once the nodes were taken out of rotation—or so the theory goes. The incident highlights how a single compromised credential can cascade through infrastructure relied on by thousands of daily users.
Defensive Takeaways
Users who encounter an unexpected SSH host-key warning should treat it as a potential indicator of man-in-the-middle interference and abort the connection rather than proceeding. For administrators running Tor exit nodes, the incident underscores the importance of isolating management credentials and avoiding password reuse across systems. The reintroduction of Ebury, a backdoor that has existed for years, also serves as a reminder that patching and credential rotation remain critical, even for infrastructure projects with long histories.
Tor volunteers and researchers continue to analyze the full scope of how the attacker gained control of the remaining exit nodes. Until the complete chain of compromise is mapped, the incident stands as a recent example of how trusted infrastructure can be subverted when access controls are weakened.