Lateral Movement · Learn

What is network pivoting?

Pivoting is using a compromised machine as a bridge to reach networks the attacker cannot touch directly. With port forwarding, SOCKS proxies, and tunneling tools, the internal network becomes reachable from outside. Here is how it works.

Lateral Movement · LearnAll services
TL;DR

Network pivoting is using a compromised host as a relay to reach systems the attacker cannot connect to directly, typically an internal network segment behind the first machine. It is built from port forwarding, SOCKS proxies, and tunneling tools (SSH, chisel, ligolo-ng) that route the attacker’s traffic through the foothold. Pivoting turns a single compromised, internet-facing box into a doorway onto the whole internal network, which is why segmentation and egress control matter.

By John Dill, Red Team Lead, SecureLayer7Updated

What pivoting is

Networks are segmented: the machine an attacker first compromises (say a public web server) can often reach internal systems that the attacker, sitting on the internet, cannot.

Pivoting turns that first machine into a bridge. The attacker routes their traffic *through* the compromised host so that, from the internal network’s point of view, the connections come from a trusted insider. The internal network becomes reachable from the attacker’s laptop.

How it works: forwarding, proxies, tunnels

Pivoting is assembled from a few building blocks, each with its own page:

  • Port forwarding: relay one port from the attacker, through the pivot, to one internal service.
  • SSH tunneling: local, remote, and dynamic forwards over SSH, the most common manual method.
  • SOCKS proxies and proxychains: route any tool through the pivot, not just one port.
  • chisel and ligolo-ng: purpose-built tunneling tools for pivoting over HTTP or a virtual interface.

Why it matters

A single exposed host with weak internal segmentation can expose the entire internal network. Pivoting is what converts "they popped one server" into "they can reach the database, the file shares, and the domain."

It also helps attackers evade controls: traffic to internal systems originates from a trusted internal host, not a suspicious external IP.

References

  1. [1]MITRE ATT&CK: Lateral Movement (TA0008)(MITRE)
  2. [2]NIST SP 800-115 Technical Guide to Security Testing(NIST)
  3. [3]Linux man-pages: ssh(1)(man7.org)
Related terms

Common questions

Lateral movement, asked often

Want your network tested for these paths?

Scope an engagement

Find the lateral-movement paths before an attacker does.

We run internal and network penetration tests that follow the real route from one compromised host across your network, then hand your team a report with reproducible evidence and a fix for every step. Free re-test included.

See all services30-min scoping call, fixed-price proposal in 48 hours.