Network attacks
Pivoting
Using a host you already control as a relay to reach a network that has no route from where you stand — the compromised box bridges the two segments.
Pivoting is using a host you already control as a relay to reach a network you have no route to. The host sits in both networks, so connections sent through it come out on the inside. With SSH, ssh -D 1080 opens a [[socks-proxy|SOCKS proxy]] on your machine, and curl --socks5-hostname 127.0.0.1:1080 then reaches internal addresses. Nothing is routed between the networks: the owned host is the only bridge.
Read next
- SOCKS proxy A circuit-level gateway: it opens any TCP connection a client asks for and relays the bytes unread.
- Port forward One port on the router's public address passed to one device and port inside.
- Network discovery Mapping what a foothold can reach before acting on it — which segments, which hosts, which one box bridges to a network you cannot touch directly.
- Lateral movement Moving from a host you already own onto another host inside the network — usually with reused or stolen valid credentials, not a fresh exploit.