CyberKit

Reverse Shell

Also called connect-back shell.

A compromised host that dials out to give the attacker a shell.

What it is

A remote shell in which the victim machine initiates the outbound connection to the attacker and then hands over command-line access. Because the victim connects out, it sidesteps inbound firewall rules that would block a listener.

Why it matters

Reverse shells are extremely common in intrusions precisely because outbound connections are usually permitted, so unexpected outbound sessions from servers are a high-value thing to hunt.

In practice

Tracing an outbound connection from a web server to a strange IP on a high port that turned out to be a reverse shell spawned by an exploited service.

What to look for

  • Shells or interpreters with outbound network connections.
  • Web server processes spawning shells.
  • Outbound connections to unusual ports.

Common mistake

Only blocking inbound. Reverse shells call out, so watch outbound connections from servers.

Practice it nearby

CyberKit has no tool for this term itself. These are the closest places to practice it.

In the field

Well-known tools where this shows up on the job. They are listed to show the landscape, not as a recommendation.

  • CrowdStrike Falcon Commercial

    An EDR agent that records process, file and network activity on each host and flags this kind of behavior.

  • Microsoft Defender for Endpoint Commercial

    Microsoft's EDR, with advanced hunting tables you can query for this activity across Windows, macOS and Linux.

  • Velociraptor Open source

    Collects and hunts for artifacts across many hosts at once, often during live response. Our notes.

  • Sysmon Free

    Free Windows logging of process starts, network connections and more, which many detections rely on. Our notes.

Read next

  • Bind Shell: A shell that listens on a port for the attacker to connect in.
  • Web Shell: A malicious script on a web server giving remote command access.
  • Protocol Tunneling: Smuggling one protocol's traffic inside another to evade controls.

Sources