As reported by The Hacker News, a coordinated attacker compromised more than 300 Tor exit relays in early October 2026, rewriting their exit policies to intercept SSH connections and route them to credential-harvesting servers. At peak, the malicious relays controlled 7.46% of Tor's total exit capacity — a significant slice that makes this one of the most impactful exit-node manipulation campaigns observed to date.
Why This Attack Worked
The attack exploits a structural reality of Tor's architecture: exit relays are operated by volunteers, and the network's trust model assumes that most operators are honest. An exit relay can only carry traffic to ports listed in its torrc exit policy. The attackers gained access to Linux hosts running relays (or machines that could become relays) and modified those configuration files to open port 22 — SSH — while closing encrypted mail ports like IMAPS and POP3S.
Once port 22 was permitted, Tor clients seeking an exit for SSH traffic could select one of the compromised relays. The relay then redirected the connection not to the user's intended destination, but to one of 12 interception servers. Those servers presented their own SSH host keys. Users connecting for the first time would see the standard "authenticity of host can't be established" prompt and, if they accepted, their passwords were captured.
The critical nuance: this attack only succeeds against password-based SSH authentication. Key-based authentication would have triggered an OpenSSH host key mismatch warning for users who had previously connected to the real server — though first-time connections remained vulnerable if the user blindly accepted the new key.
Who Is Affected
torrc files and restart the Tor service.Broader Implications
This incident underscores a persistent weakness in volunteer-operated overlay networks: exit capacity is only as trustworthy as its least secure operator. The attacker controlled 59 operators' relays, which suggests either a broad credential-gathering campaign against relay operators or automated exploitation of a common misconfiguration. The Tor Project's network health team noted that non-exit relays were also converted into exits, indicating the attacker had direct host access rather than just influence over relay configurations.
The deliberate closure of encrypted mail ports (IMAPS, POP3S) while opening plaintext alternatives (IMAP, POP3) is particularly noteworthy. This suggests the attacker may have had a secondary objective — capturing plaintext email credentials — or was shaping traffic patterns to maximize interception value across multiple protocols.
Shield53 Recommendations
For Tor Users
- Assume SSH credentials used via Tor between October 1–5 are compromised. Rotate passwords for any SSH-accessible accounts that were reached through Tor during that window.
- Migrate to SSH key-based authentication and disable password auth where possible. This is the single most effective mitigation against credential interception via exit relay manipulation.
- Pin and verify host keys — never blindly accept a new SSH host key when connecting through Tor. Use
sshwithStrictHostKeyChecking=yesfor sensitive destinations. - Use Tor's
IsolateDestPortandIsolateDestAddrstream isolation options to reduce predictable routing patterns.
For Relay Operators
- Audit host security immediately. If your relay was active during October 1–5, assume the host may have been accessed. Check
torrcmodification timestamps, review SSH access logs, and rotate credentials. - Harden the relay host: disable password SSH auth, enforce key-only login, apply principle of least privilege for the Tor service account, and use file integrity monitoring (AIDE, Tripwire) on
torrcand related configuration files. - Monitor exit policy changes. Set up alerts that flag any modification to exit policy configurations — unexpected changes should trigger immediate investigation.
For Organizations
- Block or restrict SSH access from known Tor exit nodes unless there is a documented business need. Maintain awareness that exit node lists change frequently.
- Enforce MFA on all externally accessible SSH gateways and bastion hosts, regardless of whether Tor is in use.
- Brief security teams that Tor-based credential interception is not theoretical — this campaign demonstrates active, coordinated exploitation of the trust model.
The Tor Project removed all flagged relays from the consensus by October 5, but the credentials captured during the four-day window are likely already in attacker hands. The window between compromise and remediation is where damage is done — and in this case, that window was wide enough to matter.