Executive Summary
Between October 1 and October 5, 2026, attackers compromised a large set of Tor exit relays and used them to redirect Secure Shell (SSH) connections to interception servers that stole login passwords. A researcher scanning the network found 333 exit relays redirecting SSH traffic to 12 interception servers. At the peak on October 4, the affected relays represented 7.46% of Tor’s exit capacity. The Tor Project flagged the relays and removed them from the network directory by the afternoon of October 5.
This paper documents what happened, separates confirmed facts from open questions, and draws out the implications for small and medium-sized businesses (SMBs). Its central finding is that the incident’s most transferable lesson is not about Tor at all: the attack succeeded against password-based logins and failed against key-based logins, and the largest cluster of compromised relays traced back to a single reused password. For any organization operating internet-facing servers, the required controls are key-based authentication, multi-factor authentication (MFA) for administrative access, unique credentials per system, host-key verification discipline, and configuration-change monitoring.
1. Problem Statement
Tor is a volunteer-run anonymity network. Traffic passes through a chain of relays; the final relay, the exit relay, forwards traffic to its destination. SSH is the standard protocol administrators use to log in to servers remotely, normally over port 22.
The security problem exposed in October 2026 has three parts:
- Exit relays are trusted infrastructure operated by volunteers with uneven security practices. Compromising a relay operator’s servers can convert trusted infrastructure into an interception platform.
- Password-based SSH authentication is vulnerable to interception. A password typed into an intercepted session is readable by the interceptor, while a cryptographic key signature is bound to a single session and cannot be replayed.
- Credential reuse converts a single compromise into a total compromise. When one password unlocks login, administrative privilege, and backups, stealing it once is sufficient.
SMBs face the same three problems on their own servers, even if they never use Tor: internet-facing SSH, password-only logins, and reused administrative credentials are common in small environments.
2. Evidence
2.1 Timeline
- August 28, 2026: An attacker logs in to a relay operator’s management server with the operator account’s password on the first try, gains root (full administrative) access within five minutes, and installs the Ebury backdoor.
- October 1–4, 2026: An analysis of public Tor directory data counts 377 relays, run by 59 operators, switching to the attacker’s exit policy. The analysis characterizes this as “a policy match, not proof of compromise” — the directory data shows the policy change, not the intrusion method, for most relays.
- October 2, 2026 (morning): Researcher “kaba” encounters a changed host-key warning on an SSH connection over Tor, then scans all of Tor’s roughly 3,000 exit relays using exitmap, a scanning tool also used by the Tor Project’s network health team. The scan finds 333 relays redirecting SSH traffic to the same 12 interception servers. Kaba reports the findings to the health team that evening.
- October 4, 2026: The Tor Project contacts the operator of the largest affected relay family, Quetzalcoatl, who confirms the change was unauthorized, asks for the relays to be marked as bad, and stops Tor on the affected server. Directory authorities begin voting BadExit and MiddleOnly flags on affected relays at 18:00 UTC; the flags enter the consensus by 21:00 UTC.
- October 5, 2026: A scripted restart sweeps through 55 of Quetzalcoatl’s hosts in the morning, with the attacker’s policy still in place; directory authorities are by then rejecting affected relays from the network. By 17:00 UTC, no relay carrying the attacker’s policy remains in the consensus.
- October 7, 2026: The Quetzalcoatl operator publishes a detailed post-mortem.
- October 9, 2026: The directory-data analysis finds 41 relays still publishing the attacker’s policy but no longer listed in the consensus.
- October 18, 2026: Tor Metrics’ count of relays carrying the Exit flag remains about 370 below its pre-incident level.
- October 20–21, 2026: Kaba publishes a firsthand account; The Hacker News publishes a summary of the incident.
2.2 Attack mechanics
An exit relay only carries traffic to ports its exit policy allows. The attackers rewrote that policy in the relays’ torrc configuration files to allow port 22, enabling SSH on 342 relays that had previously blocked it, and converting 24 computers that had not been exits at all into exits. The same change closed the encrypted mail ports (IMAPS and POP3S) and, on most relays, opened the plaintext-capable mail ports (POP3 and IMAP). Kaba’s account reads the mail-port change as a second goal: collecting as much unencrypted mail as possible, though successful mail capture has not been established.
With port 22 open, an SSH connection through an affected exit was redirected to one of the 12 interception servers instead of its destination. The interception server presented its own host key. A user who had connected to the real server before would have seen OpenSSH’s warning that the remote host identification had changed; a first-time user would have seen the usual prompt to accept a new key. A user who accepted the key and typed a password handed it to the interceptor. The interceptor then connected to the real server, so the session worked normally, while every command could be watched and the stolen password could be used to log in separately — including an attempt to install Ebury on the victim’s server, observed in kaba’s honeypot.
Key-based SSH logins could not be relayed this way. Under the SSH authentication protocol, the client’s signature includes an identifier unique to each session, so a signature made for the interceptor’s session is useless against the real server. The interceptor could accept a key login itself and present a fake shell, but it could not reach the real server with it.
2.3 Exposure conditions
To have been exposed, a person had to meet all of the following conditions: connect to an SSH server over Tor between October 1 and the afternoon of October 5; land on a hijacked exit; have the connection intercepted rather than passed through; accept the interceptor’s host key; and log in with a password. No count of victims exists.
Persons who only browsed HTTPS websites over Tor during the window faced no risk described in these reports: encrypted web traffic passed through normally. The interception targeted SSH logins and plaintext mail.
2.4 The Ebury backdoor
Ebury is a backdoor and credential stealer for OpenSSH, active since 2009. ESET estimated in 2024 that it had infected approximately 400,000 servers, with more than 100,000 still infected in late 2023. In the Quetzalcoatl case, Ebury version 1.8.3 was found on two servers: a management server that served as the family’s virtual private network (VPN) gateway and SSH jump host, and a virtual private server (VPS) running two exits. Version 1.8.3 is newer than ESET’s public indicators at the time, which stopped at 1.8.2; an updated detection script covering 1.8.3 was subsequently published.
The Quetzalcoatl operator’s stated root cause was: one password reused for SSH login, sudo (the command granting administrative privileges), and the backup passphrase, stored in plaintext on both servers, plus SSH password authentication left enabled on the internet-facing management server. The operator also reported that the family’s supposedly offline master keys were not offline: copies sat in the workstation backup on the management server, encrypted with the password the attacker already had. The operator retired every relay and bridge in the family and deleted both servers.
Ebury’s backdoor logins leave no record. On October 2, the exits’ configuration files were rewritten with no login, sudo command, or scheduled job in the logs. A routine reboot on October 4 killed the attacker’s hidden tools, but Ebury returned immediately. Standard package-verification checks did not detect the implant, because the packaged library was untouched and only a symlink was redirected.
2.5 How the compromise spread
How most operators’ hosts were entered remains the main open question. Among relays listed on October 1, 71 of 101 hosted on FranTech Solutions — the network behind the BuyVM hosting brand — switched to the attacker’s policy, against 13 of 9,054 hosted elsewhere. Forty relays of 21 operators changed within five and a half minutes on October 1, most by configuration reload, which the directory-data analysis reads as one actor already holding access to all 40. One researcher’s assessment is that the password may have come from a host already running Ebury, with a compromised hosting provider as another possibility; ESET has previously seen providers whose management servers ran Ebury and whose customers’ virtual servers ended up infected. Whether all cases share one actor is open.
3. Analysis
The attack was a credential-interception operation, not a cryptographic break. Neither Tor’s encryption nor SSH’s encryption failed. The attack succeeded at the trust decision: a user accepting an unverified host key, and then offering a reusable password to an unknown party. Any defense that removes either element — verified keys or non-reusable credentials — breaks the attack chain.
Password authentication was the single point of failure. The incident provides a clean natural experiment: password logins were stolen; key logins were not relayable. Organizations still permitting password-only SSH on internet-facing systems carry this exact exposure, regardless of whether they use Tor.
Reuse amplified a single credential into infrastructure compromise. The Quetzalcoatl post-mortem is unusually candid and therefore unusually useful: one password, three uses, plaintext storage, and an internet-facing password login. Each of those four facts alone is a known-bad practice; together they meant the attacker needed only one guess to obtain everything, including backup encryption keys.
Detection came from outside the compromised hosts. The attack was found because a researcher noticed a host-key warning and scanned the network, and because the Tor Project’s directory monitoring spotted the policy change. Host-level checks on the compromised servers passed: package verification, process listings, and log review showed nothing, because the implant hides from the system it runs on. The implication is that configuration and directory-level monitoring — watching for changes you did not make — is more reliable than assuming a clean host check means a clean host.
The incident is contained but not fully explained. The affected relays were removed from the network, but the attacker is unidentified, the victim count is unknown, the entry method for most operators is unknown, and researchers assess that other compromised relays likely remain. Any claim that the problem is “over” overstates the evidence.
4. Decision Framework and Recommendations
For an SMB operating one or more internet-facing servers, in priority order:
- Move SSH to key-only authentication. Disable password authentication on every internet-facing server. This single change defeats the interception demonstrated here.
- Require MFA for administrative access. Passwords alone should never grant administrative privilege, and administrative credentials must not be reused across systems.
- Give every system its own credentials. Separate credentials for login, sudo, and backup encryption. Store them in a password manager or vault, never in plaintext on a server.
- Treat host-key warnings as stop signs. Train anyone with server access: a changed host key means stop and verify through a separate channel before typing anything. Never type a password into a server you suspect is compromised.
- Monitor configurations, not just hosts. Alert on unexpected changes to server configurations, scheduled jobs, authorized keys, and user accounts. A clean malware scan does not rule out a backdoor of this class.
- Segment management systems. Management servers and jump hosts should not be reachable from the internet with password login, and backup material — including key backups — must be genuinely offline or separately encrypted.
- If exposure is suspected, rebuild rather than clean. The Tor Project’s guidance for affected relays applies generally: take the system offline, preserve disk and logs, reinstall rather than clean in place, generate new identities and keys, and rotate every credential that was on the host. The implant in this incident survived a reboot; cleaning in place is not sufficient.
5. Limitations
- The attacker or attackers are unidentified; attribution claims would be speculation.
- No victim count exists, and the number of compromised hosts beyond the confirmed cases is unknown.
- The directory-data analysis counts relays by policy match, which is not proof of compromise for every relay counted.
- The Ebury findings are confirmed for two servers of one operator; other operators reported different persistence methods, and whether all cases share one actor is unresolved.
- Vendor and researcher estimates (such as ESET’s infection totals) are reported as those parties’ estimates, not independently verified figures.
- This paper addresses the October 2026 incident as reported through October 21, 2026; later findings may revise the timeline or the assessment.
6. References
- 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” — 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) — 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): https://safeguard.sh/resources/blog/tor-exit-relays-hijacked-ssh-interception-ebury

