P.K. SHARMA

Cyber security intelligence, AI governance, practitioner analysis

333 Tor exits redirected SSH: the host-key warning was the decisive boundary

A researcher found 333 Tor exits routing SSH through 12 interception servers. A separate directory analysis found 377 relays with matching policy changes, which is not a compromise count. The evidence narrows who could have lost a password and leaves initial access unresolved.

By Parminder Kumar Sharma · · 7 min read

Editorial illustration of network servers with a blue route diverted through a red intermediary node, representing reported SSH interception at Tor exit relays. Headline identifies 333 measured exits and 12 interception servers.

The scan found a redirect, not 333 stolen passwords

The decisive moment in this case is an SSH host-key prompt. On 2 October, a researcher writing as kaba tested specific Tor exits and found 333 relays sending SSH connections to 12 interception servers instead of the intended destination. In roughly a dozen tests, the intermediary presented a substitute host key. If the user stopped at the warning, the password stayed out of that session; if they accepted the substitute key and typed a password, the intermediary could receive it. The reports do not count how many people did either.

A Tor client is routed by a compromised exit to an SSH interception server rather than the intended host. If the displayed host key differs from the known key, the client warns and stopping prevents password disclosure. If a user accepts the substitute key and enters a password, the interceptor can read it and open a separate session to the real host. The number of such users is unknown.
The measured redirect led to an identity check. Password exposure was conditional on accepting a substitute host key and entering a password; the number of affected users is unknown.

The Tor Project's network-health team separately said operators had reported hacked Linux relay hosts, edited Tor configurations and SSH interception. It removed suspect relays from exit use while investigating how the hosts were entered. That corroborates a host-level incident, but does not turn kaba's 333 redirected exits into a victim count.

Two numbers measure different things

Source scopes and time windows, read 21 October 2026. The figures must not be added together or treated as victim counts.

MeasureResultWhat it establishes
Active probe of SSH routing333 exits in kaba's 2 October scan; 12 interception serversA measured redirection path for port 22 at that test time. It does not measure successful password capture.
Tor directory-policy analysis377 relays with one of two policy changes across 1 to 4 October; 147 IP hosts, 59 ContactInfo-defined operatorsA policy match in published descriptors, explicitly not proof each host was compromised.
Peak network share351 matching relays, 7.46% of usable-exit consensus weight at 01:00 UTC on 4 OctoberA share of exit selection weight at a particular hour, not a share of Tor users intercepted.
Confirmed Ebury caseTwo servers described by one relay operatorFirsthand host-level evidence; it does not prove Ebury was present on all matching relays.

The directory analysis reconstructed public descriptors and consensus votes through 9 October. Its 377-relay set is broader than kaba's 333 active SSH redirects because it asks a different question: who published the distinctive exit policy, rather than what a live SSH test reached. It found 342 of 366 relays with a previous policy newly opened port 22. The same changes closed encrypted IMAPS and POP3S on 334 and, for many relays, left plaintext-capable POP3 and IMAP open. The policy data shows a traffic-selection opportunity, not actual mail contents read or the attacker's motive.

At 5 October 17:00 UTC, no relay with either identified policy was listed in the analysis's consensus data. That is a time-bounded historical observation. It is stronger than a vague 'taken down' claim and narrower than a guarantee that no compromised operator host remained.

Where the SSH protection held, and where it could fail

The malicious exit was a routing position. It could redirect a port-22 connection to an interceptor, but it could not invisibly become a previously trusted SSH server. SSH binds the encrypted session to a server host key. When kaba's connection was intercepted, OpenSSH displayed its prominent changed-host-key warning. A first-time connection has no saved key for comparison, so the user must validate the fingerprint through an independent channel rather than accept a new prompt automatically.

In a honeypot test, kaba saw the intermediary use Paramiko, a Python SSH library. The test showed an attempt to assess privileges and run a base64-decoded Perl installer on the target. This is evidence of attacker behaviour in the controlled test, not proof the same installer succeeded on every real destination.

Password and public-key authentication differ here. A password typed into an accepted connection is available to the server at the other end, which would be the interceptor. A public-key signature for one SSH session contains that session's identifier, so it cannot simply be replayed into a different connection to the genuine host. The interceptor could still deceive the user with a fake session; this is not permission to disregard a host-key warning.

One operator found Ebury; the broader entry route is still unknown

A Quetzalcoatl relay operator's account describes Ebury 1.8.3 on two of its servers: a management host and a FranTech VPS running two exits. The operator reconstructed an August intrusion using logs and files, while warning that logs had been truncated, timestamps altered and some steps inferred. That account establishes an Ebury case on those machines. It does not show how every other operator's host was entered.

The public directory analysis grouped 377 policy-matching relays under 59 operator identifiers and found a strong concentration among certain FranTech-hosted relays. Those are correlations requiring investigation, not evidence that the hosting provider itself was breached. Kaba explicitly described a provider compromise as a theory, and the Tor Project notice did not identify an entry route or responsible group. An actor's use of Ebury also does not, on its own, identify the actor.

Evidence ladder for the incident. Each row supports only the conclusion in its right-hand column.

Observed recordSupported inferenceStill open
Changed Tor exit policy and port-22 redirectionA set of relays could steer selected SSH connectionsHow each operator host was accessed
Substitute SSH host key in some testsAn interception server was reachable and impersonating the destinationHow many users accepted it and supplied a password
Ebury found on two operator serversThose two servers had a host-level backdoorWhether other policy-matching hosts had Ebury or a different intrusion

What users and relay operators should check

Take this with you

Response depends on whether you used SSH over Tor or operated a relay

  • If you used SSH through Tor exits during 1 to 5 October, review client logs and known_hosts records for changed-key warnings or newly accepted keys. Treat a dismissed warning followed by password entry as a credential-exposure lead, not automatic proof of theft.
  • If a password could have reached the interceptor, change it from a trusted route and inspect the destination host for unexpected logins, new keys, privilege changes and persistence. Rotate any reused password. Prefer key-based authentication and verify host fingerprints independently.
  • If you operate a Tor relay, compare torrc and included files with your approved exit policy. Inspect NAT rules redirecting port 22, unknown listeners and connections, unexpected users or authorised keys, cron and systemd entries, and package integrity. The Tor Project also flagged unusual kernel modules, tunnel interfaces and memory use.
  • If a relay host appears compromised, take it offline, preserve disk and logs, rebuild from trusted media, generate a new relay identity and rotate credentials held on that host. The Tor Project provides bad-relays@lists.torproject.org for incident reports.

This incident concerns SSH connections leaving Tor through an exit relay. A direct connection or an onion service has a different path. Likewise, a malicious exit cannot by itself decrypt correctly authenticated HTTPS or SSH. The practical control is to verify the endpoint identity and to treat any compromised relay host as an infrastructure intrusion, not just a configuration mistake.

Sources

  1. PrimaryFirsthand exitmap scan and SSH honeypot investigation, published 20 October 2026KABA.CXaccessed 2026-10-21
  2. Primary5 October relay-operator incident notice and response guidanceTor Project Network Healthaccessed 2026-10-21
  3. PrimaryIndependent public-directory analysis: 377 policy matches, not proof of compromise, through 9 OctoberTor relay mailing list / 1AEOaccessed 2026-10-21
  4. PrimaryFirsthand report of Ebury 1.8.3 on two servers and qualified August timelineQuetzalcoatl relay operatoraccessed 2026-10-21

Share this briefing

Know someone who owns this problem? Send it to them.

Related briefings

The briefing, in your inbox

Practitioner analysis of cyber and AI security news. No vendor noise.

How often

Every new briefing in one email, at 7am, or at 7am, 12:30pm and 6pm. Nothing is sent when nothing is new. Unsubscribe any time.