Sample captures, Scans, tunnels and evasion
Commands tunneled in ICMP echo
Four pings whose payloads carry commands, and replies that carry the output.
- Packets
- 8
- Duration
- 3.034 s
- Size
- 1000 bytes
- Protocols
- ICMP
- License
- CC0
What it shows
Echo requests from 192.0.2.10 carry cmd:whoami and similar commands in their 64-byte payloads, and the echo replies carry the output. Ordinary pings carry filler bytes.
For rules on ICMP type, payload size (dsize) and content.
Rules for this capture
Suricata 8 and 7
Try these rulesalert icmp any any -> any any (msg:"Command in an ICMP echo request"; itype:8; dsize:>32; content:"cmd:"; depth:4; sid:1000001; rev:1;) alert icmp any any -> any any (msg:"Command output in an ICMP echo reply"; itype:0; content:"out:"; depth:4; sid:1000002; rev:1;)
Snort 3
Try these rulesalert icmp any any -> any any (msg:"Command in an ICMP echo request"; itype:8; dsize:>32; content:"cmd:", depth 4; sid:1000001; rev:1;) alert icmp any any -> any any (msg:"Command output in an ICMP echo reply"; itype:0; content:"out:", depth 4; sid:1000002; rev:1;)
Packets
| No. | Time | Source | Destination | Protocol | Info |
|---|---|---|---|---|---|
| 1 | 0.000 | 192.0.2.10 | 203.0.113.66 | ICMP | Echo request, cmd:whoami |
| 2 | 0.034 | 203.0.113.66 | 192.0.2.10 | ICMP | Echo reply, out:corp\jsmith |
| 3 | 1.000 | 192.0.2.10 | 203.0.113.66 | ICMP | Echo request, cmd:hostname |
| 4 | 1.034 | 203.0.113.66 | 192.0.2.10 | ICMP | Echo reply, out:WIN-7Q2LK4 |
| 5 | 2.000 | 192.0.2.10 | 203.0.113.66 | ICMP | Echo request, cmd:ipconfig /all |
| 6 | 2.034 | 203.0.113.66 | 192.0.2.10 | ICMP | Echo reply, out:IPv4 Address. . . : 10.0.0.24 |
| 7 | 3.000 | 192.0.2.10 | 203.0.113.66 | ICMP | Echo request, cmd:exit |
| 8 | 3.034 | 203.0.113.66 | 192.0.2.10 | ICMP | Echo reply, out:bye |
More Scans, tunnels and evasion samples
- TCP SYN scan: One host sends SYNs to 40 ports in 40 milliseconds; three answer.
- HTTP request in IP fragments: An HTTP request split into 24-byte IP fragments.
- HTTP request in 8-byte TCP segments: An HTTP request sent 8 bytes per packet.
- HTTP download over IPv6: The HTTP download between two IPv6 addresses.
- HTTP download with VLAN tags: The HTTP download with 802.1Q VLAN 100 tags, as captured on a trunk port.