Dual-use reverse SSH pivot

ReverseSSH

ReverseSSH is an open-source tool that turns a normal SSH connection around. Instead of the operator connecting to a victim, the victim connects out to a ReverseSSH server and the operator gets an interactive shell, a SOCKS proxy, and file transfer back through that one connection.

It was built for red-team pivoting through firewalls and NAT, and the same property that makes it useful in a sanctioned engagement makes it a clean way for an attacker to hold access on a host that can only make outbound connections.

  • Actively tracked
  • First seen 2021
Overview

A pivot tool that mostly turns up on operator boxes

ReverseSSH is dual-use, but the live set does not look much like a lab. Most of the servers sit on Chinese and Hong Kong cloud and on Azure ranges, and the ones that leave a directory open tend to share the box with a C2 framework, a webshell, or stolen credentials. So while the tool itself is a legitimate open-source project, a live ReverseSSH server is worth treating as offensive infrastructure until the hosting says otherwise.

The default listener is TCP 3232, and most of the live set sits on it. On its own that is a weaker signal than it looks, because plenty of ordinary SSH servers also run on 3232, and the ReverseSSH listener does not behave like a normal SSH daemon when you scan it. What makes it trackable is Hunt.io's C2 detection of that non-standard handshake, not the port.

Hunt.io tracks ReverseSSH in its C2 Infrastructure view, where a month of live server activity sits beside the tool description:

ReverseSSH in Hunt.io's C2 Infrastructure view, with the past month of live server activity and the tool descriptionFigure 01. The ReverseSSH profile in Hunt.io's C2 Infrastructure view, with the past month of live server activity above the tool description.
Reference

The basics on ReverseSSH, for quick reference

  • Aliases: reverse_ssh, Reverse SSH

  • Type: dual-use reverse-connection SSH server and pivot tool

  • Lineage: open-source (NHAS/reverse_ssh on GitHub)

  • Written in: Go

  • First seen: 2021

  • Common port: 3232 (default listener, but the listener evades a standard SSH scan)

  • MITRE ATT&CK: T1572 protocol tunneling, T1090 proxy, T1021.004 remote services (SSH), T1219 remote access software

  • Project: https://github.com/NHAS/reverse_ssh

Live servers

ReverseSSH IOC feed: live servers

Over the trailing 30 days Hunt.io has — live ReverseSSH servers in the C2 infrastructure data, most of them on the default 3232 listener. Last updated on —.

The full set, with the ports, hosting, and history behind each server, is free with an account.

HuntSQL

Why you cannot hunt ReverseSSH by the port alone, in HuntSQL

ReverseSSH carries its own family tag, so the live-server count is one query over the malware table:

count unique active servers
SELECT uniq(ip) AS unique_ips
FROM malware
WHERE malware.name = 'ReverseSSH'
  AND is_active = true

The obvious next step is to treat 3232 as the fingerprint and sweep for SSH on that port. Do it and you learn why that does not work. Hunt.io scans SSH services into their own table, with the version banner and the host-key hashes, so ask what actually answers SSH on 3232:

group results
SELECT version, uniq(ip) AS hosts
FROM ssh
WHERE port = 3232
GROUP BY version
ORDER BY hosts DESC

Output example:

HuntSQL results for SSH versions on port 3232, dominated by ordinary OpenSSH banners across 73 distinct versionsFigure 02. SSH versions answering on port 3232 over 30 days. 73 distinct versions, led by stock OpenSSH builds. This is noise, not ReverseSSH.

Port 3232 holds 73 different SSH versions, and the top of the list is stock OpenSSH: OpenSSH_9.6p1 on 59 hosts, OpenSSH_9.2p1 on 53, OpenSSH_7.4 on 29. These are ordinary servers that happen to listen on a high port. The Go default banner ReverseSSH ships with, SSH-2.0-Go, shows up on just 4. So an SSH-on-3232 filter is mostly false positives, and the ones that matter mostly do not announce themselves as Go.

Now check a server the C2 feed does tag. Run the SSH history on one of the tagged ReverseSSH IPs, 106.15.10.2, and its 3232 listener is not in the SSH table at all. What you see instead is the box's real operating-system SSH on another port, an OpenSSH build on 22 or 65535. The same holds across the tagged set: their 3232 listeners never land in the SSH scan data.

The reason is the tool. ReverseSSH speaks just enough of the SSH protocol to present a banner, then refuses the scanner's key exchange because it only accepts the operator's own keys. A normal SSH scan never completes, so no version and no host key get recorded, and the listener stays invisible to a port-and-banner sweep. That is exactly why the C2 feed, which fingerprints the handshake behaviour rather than the banner, is the thing that catches it. The lesson for a hunt is to stop trusting SSH-on-an-odd-port as an indicator and lean on the behavioural tag and the host's company instead.

The same check runs from a chat window with the Hunt.io MCP server connected:

A Claude chat using the Hunt.io MCP server to count ReverseSSH servers and show that SSH on 3232 is mostly ordinary OpenSSHFigure 03. The ReverseSSH hunt through the Hunt.io MCP server. 59 tagged servers, 73 SSH versions on port 3232 led by ordinary OpenSSH, and a tagged IP whose 3232 listener never shows up in the SSH scan data.
In the wild

Where ReverseSSH turns up in the wild

Reverse SSH is a technique as much as a tool, so reporting tends to name it as the tunneling layer inside a custom backdoor rather than as a standalone family:

In both cases reverse SSH is the quiet persistence and pivot layer under a louder payload, which is why a confirmed ReverseSSH server usually sits next to a C2 framework or a webshell rather than on its own.

Triage

From a 3232 tag to the operator's full kit

The hosting does most of the qualifying. A 3232 listener on a short-lived Chinese or Hong Kong VPS reads very differently from one on a consultancy's static range, and the open directories tie a ReverseSSH host to the rest of its kit.

That is where AttackCapture earns its place, because a malware-name search returns the exposed hosts and the tooling they share a box with:

Exposed ReverseSSH hosts in Hunt.io's AttackCapture, co-located with AdaptixC2, Cobalt Strike, and webshellsFigure 04. A malware-name search for ReverseSSH in Hunt.io's AttackCapture, surfacing exposed hosts co-located with AdaptixC2, Cobalt Strike, and webshells.

One host makes the cross-pivot concrete. 172.247.228.250 answers as a ReverseSSH server on 3232 in the live feed, and the same IP shows up in AttackCapture on 4788 and 18080 running AdaptixC2, with more than 150 exposed files tagged for password extraction. The live listener tells you ReverseSSH is there; the open directory on the same box tells you it is sitting under a full C2 framework and stolen credentials. Other exposed hosts pair ReverseSSH with Cobalt Strike or a stack of webshells on Singapore and Hong Kong hosting, which is the company this tool usually keeps.

FAQ

ReverseSSH, answered

What port does ReverseSSH use?

The default listener is TCP 3232, but the port is a weak indicator on its own: most SSH servers Hunt.io sees on 3232 are ordinary OpenSSH, and the ReverseSSH listener does not even complete a standard SSH scan. Use Hunt.io's behavioural C2 tag and the host's co-located tooling, not the port.

Is ReverseSSH malware?

No. It is a legitimate open-source red-team tool for pivoting through firewalls and NAT. In the live set it mostly turns up on offensive operator infrastructure, so a confirmed server is worth qualifying by its hosting and co-located tooling.

How is ReverseSSH different from normal SSH?

Normal SSH has the operator connect in to a server. ReverseSSH has the target connect out to the operator's server, which gives an interactive shell and a proxy back through a single outbound connection, useful when the host cannot accept inbound traffic.

Who uses ReverseSSH?

Red teams use it for pivoting, and the technique shows up inside APT backdoors, including the Russian-speaking Awaken Likho and the Chinese-nexus UAT-9686 toolkit, as a reverse tunneling and persistence layer.

How do you detect a ReverseSSH server?

Hunt for SSH answering on 3232 in Hunt.io's live feed, then qualify the host by its hosting and any open directory, since a confirmed server often sits on the same box as a C2 framework or stolen credentials.