pivoting-tunneling

Establish SSH, Ligolo-ng, Chisel, socat, and DNS/ICMP tunnels through compromised hosts.

253|37|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/blacklanternsecurity/red-run --skill pivoting-tunneling
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pivoting-tunneling
Source: https://github.com/blacklanternsecurity/red-run/tree/main/skills/network/pivoting-tunneling
Command: npx skills add https://github.com/blacklanternsecurity/red-run --skill pivoting-tunneling

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enables you to bypass network segmentation and access internal resources from a compromised host, effectively extending your reach into restricted network segments.

Core Features & Use Cases

  • Network Pivoting: Establish secure tunnels (SSH, Ligolo-ng, Chisel) to traverse from a compromised external host to internal networks.
  • Port Forwarding & Proxying: Create SOCKS proxies or forward specific ports to access internal services like web servers, databases, or RDP.
  • Use Case: After compromising a perimeter server, use this Skill to establish an SSH tunnel to an internal Active Directory domain controller, allowing you to perform further reconnaissance or exploit internal vulnerabilities.

Quick Start

Use the pivoting-tunneling skill to establish an SSH dynamic SOCKS proxy through the compromised host '192.168.1.100' to access the internal network.

Frequently Asked Questions about pivoting-tunneling

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up an SSH tunnel for network pivoting through a compromised host?

Network pivoting via SSH tunneling involves creating local, dynamic, or remote port forwards through a compromised host to access restricted internal networks. You can establish an SSH dynamic SOCKS proxy to route traffic and reach internal services like databases or web servers across network boundaries.

What is the difference between Chisel and Ligolo-ng for creating a SOCKS proxy?

Chisel creates SOCKS proxies via HTTP tunneling, while Ligolo-ng establishes a transparent VPN-like connection for pivoting. Both tools facilitate network pivoting to access internal networks, but Ligolo-ng provides transparent routing rather than relying on proxy-aware client configurations.

Can I use DNS or ICMP tunneling to bypass network segmentation?

Yes, DNS and ICMP tunneling are supported techniques to bypass network segmentation restrictions. These protocols are used to encapsulate traffic when standard ports are blocked, allowing you to maintain access to internal networks and services across restrictive boundaries.

When should I use a jump host instead of a dynamic SOCKS proxy for lateral movement?

Use an SSH jump host for targeted access to specific internal servers, whereas a dynamic SOCKS proxy is better for broad lateral movement across an internal network. Jump hosts provide direct connections to known targets, while SOCKS proxies offer flexible routing for varied reconnaissance.

Does socat support port forwarding to access internal Active Directory services?

Yes, socat supports port forwarding to relay traffic to internal Active Directory services. By configuring socat on a compromised host, you can forward specific local ports to remote internal network addresses, enabling access to otherwise restricted internal resources.

What are the limitations of using SSH remote port forwarding for internal network access?

SSH remote port forwarding limitations include requiring an active SSH daemon on the compromised host and potential instability if the connection drops. Additionally, complex routing to multiple internal network segments often requires manual configuration of multiple forwarding rules.