Attackers Hijacked 333 Tor Exit Relays to Steal SSH Passwords

In the first week of October, attackers quietly took control of hundreds of Tor exit relays and used them to steal login passwords. It is one of the most instructive attacks of the year — not because most small businesses use Tor, but because of what it reveals about passwords, trust warnings, and one reused password that opened the door to everything.

Here is what happened, in plain language.

What Tor exit relays do

Tor (The Onion Router) is a network that routes internet traffic through a chain of volunteer-run computers, called relays, to hide where it comes from. The last computer in the chain is the exit relay: it is where traffic leaves the Tor network and heads to its real destination.

SSH (Secure Shell) is the standard way administrators log in to servers remotely. It runs on port 22, and it normally protects your login with encryption. If you connect to a server over Tor, your traffic passes through an exit relay on its way there.

How the attack worked

Between October 1 and October 5, attackers rewrote the configuration files on compromised relays so those relays would carry SSH traffic — opening port 22 on 342 relays that had previously blocked it, and turning 24 computers that were not exits at all into exits. At the peak on October 4, the hijacked relays made up 7.46% of Tor’s exit capacity.

When an SSH connection passed through one of these exits, it was redirected to one of 12 interception servers instead of its real destination. The interception server presented its own host key — the digital fingerprint a server shows to prove it is who it claims to be.

That is where the human moment came in. A user who had connected to the real server before would have seen a warning that the host identification had changed. A first-time user would have seen the usual prompt to accept a new key. Anyone who accepted the key and then typed a password handed that password straight to the attacker. The interceptor then connected to the real server, so the session worked normally — and the attacker could watch every command and quietly log back in with the stolen password.

One important detail: logins with SSH keys, rather than passwords, could not be relayed this way. The cryptographic signature in a key login is tied to that one session, so it is useless to an interceptor. Passwords, by contrast, travel inside the session and can be read by whoever is at the other end.

How it was caught and stopped

A researcher who publishes as “kaba” noticed something wrong on the morning of October 2, when an SSH connection over Tor returned a changed-key warning. He scanned all of Tor’s roughly 3,000 exit relays and found 333 redirecting SSH traffic to the same 12 interception servers. He reported it to the Tor Project’s network health team that evening.

The Tor Project began flagging the affected relays on October 4, marking them so Tor clients would never use them as exits. By the afternoon of October 5, none of the hijacked relays remained in the network’s directory. The exposure window was short — but for anyone caught in it, the damage was real.

The deeper problem: one reused password

The largest group of affected relays belonged to an operator known as Zimmer, who published a candid post-mortem on October 7. His own words are worth quoting, because they describe a mistake small businesses make every day:

The root cause, he wrote, was one password reused for SSH login, sudo (the command that grants administrator privileges), and the backup passphrase — stored in plaintext on both servers — plus password login left enabled on an internet-facing management server.

The attacker logged in to his management server on August 28 with that password on the first try, gained full administrator access within five minutes, and installed Ebury — a backdoor and credential stealer for OpenSSH that has been active since 2009 and, by one estimate, has infected around 400,000 servers over the years. From there, the attacker reached the relay servers and rewrote their configurations. No login, no command, and no scheduled job appeared in the logs when the configurations were changed on October 2, because Ebury’s backdoor logins leave no record.

That is the real lesson here. The Tor hijack was the headline, but a reused password was the key.

What this means for your business

Most small and medium-sized businesses (SMBs) do not run Tor relays, and many never use Tor at all. The lessons still apply directly:

  1. Use SSH keys, not passwords, for server logins. This attack only worked against password logins. Key-based authentication would have stopped the credential theft cold. If your business still logs in to servers with passwords alone, that is the first thing to fix.
  2. Never ignore a changed host key warning. That warning exists for exactly this scenario. If a server’s fingerprint suddenly changes, stop and verify through another channel before typing anything. A warning dismissed in a hurry is an open door.
  3. Never reuse a password across systems. One password for login, administrator access, and backups meant one stolen credential gave the attacker everything. Every system deserves its own credential, and administrator access deserves multi-factor authentication (MFA) — a second proof of identity beyond the password.
  4. Disable password login on internet-facing servers. If a server must be reachable from the internet, key-only login plus MFA closes off the entire class of attack that started this incident.
  5. Watch your servers for changes you did not make. The Tor Project’s notice asked relay operators to check for exit policies, configuration lines, and settings they did not set. The same discipline applies to any business server: unexpected configuration changes are a signal, not a curiosity.

If you were in the window

To have been exposed, you would have had to connect to an SSH server over Tor between October 1 and the afternoon of October 5, landed on a hijacked exit, had the connection intercepted, accepted the interceptor’s host key, and logged in with a password. If that sounds like you — or if you accepted an unfamiliar or changed host key over Tor in that window — treat the password you typed as stolen: change it, and check that server for signs of compromise.

One reassurance worth stating plainly: if you only browsed regular HTTPS websites over Tor during that window, these reports describe no risk to you. Encrypted web traffic passed through normally; the interception targeted SSH logins and plaintext mail.

The bottom line

The attackers are unknown, and how many servers were truly compromised remains an open question. But the pattern is familiar: a hidden backdoor, a reused password, a warning dismissed, and a small window that was enough. Security is rarely defeated by one brilliant trick. It is defeated by the ordinary habits we let slide.

Are your server logins still password-only? That is the question this attack should make every business owner ask.

Glossary

  • Tor: A network that bounces your internet traffic through a chain of volunteer-run computers so its origin is hidden.
  • Exit relay: The last computer in a Tor chain — the point where your traffic leaves the Tor network and heads to its real destination.
  • SSH (Secure Shell): The standard secure way for an administrator to log in to a server from somewhere else.
  • Port 22: The numbered “door” that SSH traffic uses. A relay only carries traffic for ports its rules allow.
  • Host key: A server’s digital fingerprint. Your computer remembers it and warns you if it suddenly changes.
  • Consensus: Tor’s official directory list, which Tor software uses to choose relays.
  • BadExit flag: A label the Tor Project puts on a relay to tell all Tor software never to use it as an exit.
  • Ebury: A hidden backdoor for OpenSSH, the server software behind SSH logins, that steals credentials. Active since 2009.
  • Rootkit: Malware designed to hide itself from the very computer it is running on.
  • Sudo: The command that grants administrator privileges on a Linux server.
  • MFA (multi-factor authentication): Proving your identity with two different kinds of proof — for example, a password plus a code from your phone.
  • known_hosts: The file where your SSH software stores the fingerprints of servers you have connected to before.
  • Interception server: In this attack, the attacker’s server that stood between the user and the real server, pretending to be it.

Sources:

  • The Hacker News, “Attackers Hijacked Over 300 Tor Exit Relays to Intercept SSH Connections” (October 2026): https://thehackernews.com/2026/10/attackers-hijacked-over-300-tor-exit.html
  • kaba, “How I got over 300 Tor exit nodes removed” — the researcher’s firsthand account (October 20, 2026, kaba.cx)
  • Tor Project network health team notice to relay operators (October 5, 2026, via the tor-relays mailing list)
  • Zimmer post-mortem on the Quetzalcoatl relay family (October 7, 2026, via the tor-relays mailing list)
  • ESET, “Ebury is alive but unseen” (May 2024) — the 15-year history of the Ebury backdoor, covered by SecurityWeek: https://www.securityweek.com/400000-linux-servers-hit-by-ebury-botnet/amp/
  • Safeguard, “Tor Exit Relays Hijacked: SSH Interception, Ebury 1.8.3 and IoCs” (October 2026) — timeline and indicators summary: https://safeguard.sh/resources/blog/tor-exit-relays-hijacked-ssh-interception-ebury