Skip to content

Gray Hat SSH: SSHenanigans & Advanced Tunneling Tradecraft

Evan Anderson

Evan Anderson explores advanced SSH tunneling techniques, local/remote port forwarding, SOCKS proxies, and stealthy lateral movement strategies.

Summary

SSH as the Swiss Army Knife of Network Pivoting

Secure Shell (SSH) is universally trusted and enabled across enterprise servers, making it an ideal vehicle for red team lateral movement and tunneling.

Mastering Dynamic Port Forwarding and Reverse SOCKS Proxies

Evan Anderson demonstrates leveraging SSH's built-in `-D`, `-L`, and `-R` flags to establish multi-hop encrypted tunnels across segmented corporate enclaves.

Abusing SSH ControlMaster and Agent Forwarding

The speaker explains hijacking cached SSH agent sockets (`SSH_AUTH_SOCK`) and multiplexing sessions with ControlMaster to pivot without entering credentials.

Blue Team Telemetry and Hunting Anomalous SSH Tunnels

The presentation provides defenders with detection strategies to audit persistent SSH tunnels, anomalous port bindings, and suspicious client connection flags.

Related talks