Skip to main content
T1572Command and Controlhard difficulty

Protocol Tunneling

Protocol Tunneling hides traffic by encapsulating one protocol inside another, for example wrapping C2 inside DNS, ICMP, or an SSH tunnel, often adding a layer of encryption and pairing with proxies. For defenders the carrier protocol behaves abnormally: DNS with unusually high query volume and long, high-entropy subdomains, ICMP carrying large or frequent payloads, or SSH and HTTPS sessions whose duration and volume do not fit their stated purpose.

Practice detecting Protocol Tunneling on realistic Firewall, SIEM alerts in SOCSimulator Operations.

FirewallSIEM

What is Protocol Tunneling?

Protocol Tunneling is documented as technique T1572 in MITRE ATT&CK® v19.1 under the Command and Control tactic. Detection requires visibility into Firewall, SIEM telemetry.

Detection Strategies

The following detection strategies help SOC analysts identify Protocol Tunneling activity. These methods apply across Firewall, SIEM environments and can be implemented as detection rules, correlation queries, or behavioral analytics in your security platform.

  1. 1

    Monitor DNS traffic for volume anomalies and subdomain length distributions, as DNS tunneling generates significantly higher query volumes and longer subdomain strings than normal DNS usage patterns.

  2. 2

    Detect ICMP tunneling by monitoring ICMP packet sizes and payloads, as legitimate ICMP ping traffic has predictable small payloads while ICMP tunneling tools use maximum-size ICMP packets with encoded data.

  3. 3

    Alert on SSH connections from servers and workstations that should not be creating outbound SSH sessions, particularly when the SSH port is 22 on non-standard server ranges indicating masquerading as legitimate SSH.

  4. 4

    Monitor for protocol anomalies in allowed traffic flows, including HTTP requests with abnormally large headers, unusually high-frequency keep-alive connections, and WebSocket connections with consistent binary payload patterns.

  5. 5

    Analyze outbound traffic for signs of data encapsulation including base64-encoded content in protocol fields not designed to carry data, non-standard use of protocol features, and statistical anomalies in traffic patterns.

Example Alerts

These realistic alert examples show what Protocol Tunneling looks like in your security tools. Use them to tune detection rules and train analysts to recognize true positives versus false positives in live environments.

CriticalFirewall

DNS Tunneling Data Exfiltration Detected

DNS tunneling detected from internal server 10.0.5.234: generating 2,400 DNS TXT record queries per hour to subdomains of cdn-resource.net with base64-encoded subdomain labels averaging 58 characters. Total data throughput estimated at 1.2MB/hour over DNS. Traditional DNS queries from this server average 200 per hour with short hostnames. Pattern matches iodine or dnscat2 DNS tunneling tools.

HighFirewall

ICMP Tunnel Communication

Network monitoring detected ICMP echo request/reply traffic between internal workstation 192.168.12.45 and external IP 185.220.101.88 with payload sizes of 1440 bytes (maximum ICMP payload). Normal ping traffic uses 32-64 byte payloads. The traffic has been ongoing for 6 hours at 200 packets per minute. This pattern is characteristic of ICMP tunneling tools used for covert command-and-control communication.

HighFirewall

SSH Tunnel Established from Workstation

SSH connection established from finance workstation FIN-WS-011 to external server on port 22 with persistent connection maintained for 4 hours. Local port forwarding configuration detected tunneling internal network traffic through the SSH connection. The destination server is hosted on a commercial VPS provider and the workstation user has no legitimate reason to establish SSH tunnels to external infrastructure.

Frequently Asked Questions

How do SOC analysts detect Protocol Tunneling?
Detection centers on Firewall, SIEM telemetry for the command and control phase of the attack. Monitor DNS traffic for volume anomalies and subdomain length distributions, as DNS tunneling generates significantly higher query volumes and longer subdomain strings than normal DNS usage patterns. Detect ICMP tunneling by monitoring ICMP packet sizes and payloads, as legitimate ICMP ping traffic has predictable small payloads while ICMP tunneling tools use maximum-size ICMP packets with encoded data.
What does a Protocol Tunneling alert look like?
A representative Firewall detection is "DNS Tunneling Data Exfiltration Detected" (critical severity): DNS tunneling detected from internal server 10.0.5.234: generating 2,400 DNS TXT record queries per hour to subdomains of cdn-resource.net with base64-encoded subdomain labels averaging 58 characters. Total data throughput estimated at 1.2MB/hour over DNS. Traditional DNS queries from this server average 200 per hour with short hostnames. Pattern matches iodine or dnscat2 DNS tunneling tools.
Which tools detect Protocol Tunneling, and how can I practice?
Protocol Tunneling (T1572) is best surfaced with Firewall, SIEM telemetry, which exposes the command and control signals described above. Practice detecting it on those exact consoles in SOCSimulator Operations, free.
Glossary

What is Command and Control? SOC Glossary

Command and Control (C2) refers to the infrastructure and communication channels adversaries use to remotely direct malw…

Read more
Glossary

What is NDR? SOC Glossary

Network Detection and Response (NDR) is a security platform that passively monitors network traffic, using machine learn…

Read more
Glossary

What is Firewall? SOC Glossary

A firewall is a network security control that inspects traffic crossing a boundary and permits or denies it against a co…

Read more
Glossary

What is IOC? SOC Glossary

An Indicator of Compromise (IOC) is an observable artifact, such as a file hash, IP address, domain name, URL, registry …

Read more
Career Path

SOC Analyst (Tier 2) Career Guide: Salary & Skills

Tier 2 SOC Analysts handle the investigations that Tier 1 escalates. You dig into multi-stage attacks, coordinate contai…

Read more
Career Path

Threat Hunter Career Guide: Salary & Skills

Threat Hunters do not wait for alerts. You develop hypotheses based on threat intelligence and adversary behavior models…

Read more
Tool

Firewall Training Console: SOCSimulator

The Firewall console in SOCSimulator replicates the log analysis experience of enterprise platforms like Palo Alto Netwo…

Read more
Tool

SIEM Training Console: SOCSimulator

The SIEM console in SOCSimulator replicates the workflow of enterprise platforms like Splunk Enterprise Security, Micros…

Read more
Comparison

SOCSimulator Vs. Letsdefend: Platform Comparison

SOCSimulator wins on operational realism. You get multi-tool shift simulation with SLA pressure, noise injection, and al…

Read more
Playbook

Command and Control Traffic Investigation: Investigation Playbook

When network monitoring detects periodic outbound connections to suspicious external hosts, unusual DNS patterns, or tra…

Read more
Playbook

DNS Tunneling Investigation: Investigation Playbook

When DNS monitoring detects anomalous query patterns, high-entropy subdomains, unusually long query strings, excessive T…

Read more
Glossary

SOC Glossary: Security Operations Terminology

Complete glossary of Security Operations Center terminology for aspiring SOC analysts.

Read more