← All Threat Hunting ReportsThreat Hunting Exercise

Threat Hunting Exercise: Analyzing Firewall ICMP Tunnel Data Exfiltration Dataset

This hunt uses a simulated perimeter firewall dataset (firewall_icmp_tunnel_2022-08-25T170000.json) capturing T1048.003: Exfiltration Over Alternative Protocol (ICMP Tunneling), where an attacker encodes stolen data within ICMP echo request/reply payloads to exfiltrate it past firewalls that permit outbound ping but do not deeply inspect its contents.

Step 1: Hypothesis Formation

Hypothesis: A host generates a sustained, high-volume stream of ICMP echo requests to a single external IP, with payload sizes and/or entropy far exceeding the default ICMP echo payload (typically 32-64 bytes of a fixed pattern), indicating the ICMP payload is carrying encoded data rather than serving a diagnostic ping purpose. Indicators:

Null Hypothesis: A legitimate network monitoring tool (e.g., an MTU-discovery or link-quality test) is sending large ICMP packets as part of routine diagnostics. Invalidate by confirming the tool/process and destination against approved network-operations tooling and IPs.

Rationale: Because most perimeter firewalls default to allowing outbound ICMP for basic connectivity troubleshooting, and rarely inspect payload content, ICMP tunneling is a durable low-and-slow exfiltration channel; this hunt validates payload-size and entropy-based ICMP inspection as a control independent of standard ICMP allow/deny policy.

Step 2: Data Sources and Scope

Step 3: Key Findings

Parsed events (5 shown) confirm WKS-FIN-062 sent over 4,200 oversized, high-entropy ICMP echo requests to a single external IP over 90 minutes, consistent with a covert exfiltration tunnel.

Timestamp (UTC)HostEventDetailIOC/Why Suspicious?
2022-08-25 17:00:03WKS-FIN-062Firewall (allow, ICMP type 8)Payload size 1,400 bytes to 91.219.237.99Payload-Size IOC: default Windows/Linux ping payloads are 32-56 bytes; 1,400 bytes is consistent with data-carrying tunneling tools (e.g., icmpsh, ptunnel).
2022-08-25 17:00:03 - 18:29:50WKS-FIN-062Firewall (aggregate)4,214 ICMP echo requests to the same destination, average payload 1,380 bytes, Shannon entropy 7.6Volume + Entropy IOC: sustained high-volume, high-entropy payloads over 90 minutes - inconsistent with any legitimate diagnostic ping burst, and the entropy rules out a fixed diagnostic byte pattern.
2022-08-25 17:15:22WKS-FIN-062(EDR process check)Unsigned binary netdiag.exe (in reality an icmpsh-family tool) actively generating raw ICMP socketsTooling IOC: raw-socket ICMP generation from a non-network-utility binary confirms deliberate tunnel client activity.
--(destination check)91.219.237.99: no reverse DNS, no reputation history, hosting provider flagged in threat-intel as previously associated with C2 infrastructureCorroborates the destination as attacker-controlled infrastructure, not a legitimate monitoring endpoint.
-WKS-FIN-062(file access correlation)EDR shows the same process reading files from a mapped finance share (\\FS01\Finance$) in the minutes preceding each ICMP burstExfil-Source IOC: file reads from a sensitive share immediately correlate with the ICMP transmission bursts, indicating the tunneled data originates from that share.

Validation:

Step 4: Recommendations & Next Steps

Hypothesis confirmed - an attacker used an ICMP tunneling tool to exfiltrate data read from a sensitive finance share, sending over 4,200 oversized, high-entropy ICMP packets to an external C2-associated IP over 90 minutes!