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 thing that makes it trackable is the default listener. ReverseSSH answers on TCP 3232, and the large majority of the live set sits on exactly that port. A host answering as SSH on 3232, rather than on 22, is already a narrow enough signal to hunt on.

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)

  • 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

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

HuntSQL

Mapping ReverseSSH servers with 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 default port is the fingerprint, so group the active servers by port to see how tightly they cluster on it:

group results
SELECT port, uniq(ip) AS servers
FROM malware
WHERE malware.name = 'ReverseSSH'
  AND is_active = true
GROUP BY port
ORDER BY servers DESC

Most of the live set answers on 3232, the tool's out-of-the-box listener, with only a thin scatter on 2096, 2095, 443, and a few other high ports where an operator changed the default. SSH on 3232 is specific enough that the port alone is a reasonable starting filter before you confirm the service.

And the servers themselves, newest first:

list the active servers, newest first
SELECT ip, port, asn.name, asn.country_code, timestamp
FROM malware
WHERE malware.name = 'ReverseSSH'
  AND is_active = true
ORDER BY timestamp DESC

Output example:

Live ReverseSSH servers in Hunt.io's SQL results, mostly on port 3232 across Chinese, Hong Kong, and Azure hostingFigure 02. The active ReverseSSH servers the query returns, newest first, with 3232 listeners concentrated on Alibaba, Azure, China Telecom, and Hong Kong hosting.
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

Working out whether a ReverseSSH server is worth escalating

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 03. 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, and most of the live set sits on it. Operators occasionally move it to 2096, 2095, 443, or another high port, but 3232 carries most of the signal.

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.