ICMP
ICMP (Internet Control Message Protocol) is the control and diagnostic layer of IP. It carries the ping that checks whether a host is alive, the time exceeded messages that let traceroute map a path, and the destination unreachable messages a router sends back when it cannot deliver a packet. It is small, old and usually ignored, which is exactly why it is worth watching. The same messages that keep a network healthy also reveal reconnaissance, attempts to intercept traffic, and the occasional covert channel smuggled inside a ping.
Nzyme observes ICMP passively and turns it into both a traffic view and a set of detections. The Traffic tab shows what ICMP is on the wire. The Redirects, Traceroutes and Tunnels tabs are detections that run every minute and raise findings you can review and alert on. The Unreachable Ports and Unreachable Hosts tabs are analyst views built from the error messages hosts and routers send back, and are useful for spotting scanning. You can find all of these on the ICMP page under Ethernet → Protocols in the sidebar of your Nzyme web interface.
A short primer for analysts
Every ICMP message has a type and a code. A few types matter here:
- Echo request (8) and echo reply (0) are ping. A host sends an echo request, the target answers with an echo reply. Both can carry a payload, which is normally a small, fixed filler, and which a tunnel abuses to carry data.
- Destination unreachable (3) is sent back when a packet cannot be delivered. The code says why: host unreachable (1) and network unreachable (0) come from a router that has no path to the target, and port unreachable (3) comes from the target itself when a UDP packet reaches a closed port.
- Time exceeded (11) is sent when a packet's time-to-live runs out. Traceroute relies on this to discover each hop.
- Redirect (5) is a router telling a host to use a different gateway for some destination.
Most ICMP error messages quote the start of the packet that caused them: its IP header and the first bytes of its payload, which for TCP and UDP include the ports. Nzyme parses this quoted packet, which is what lets it tie an unreachable message back to the exact flow that triggered it.
ICMPv6
IPv6 has its own version of ICMP. Nzyme records ICMPv6 together with ICMP and shows both on the same tabs. Every detection and view on this page works over both versions, and ICMPv6 messages are marked as ICMPv6 in the tables.
The messages are the same, but their type numbers are not:
| Message | ICMP | ICMPv6 |
|---|---|---|
| Echo request | 8 | 128 |
| Echo reply | 0 | 129 |
| Destination unreachable | 3 | 1 |
| Host or network unreachable | 3, codes 1 and 0 | 1, codes 3 and 0 |
| Port unreachable | 3, code 3 | 1, code 4 |
| Time exceeded | 11 | 3 |
| Redirect | 5 | 137 |
The numbers overlap: type 3 is destination unreachable in ICMP and time exceeded in ICMPv6. The type filter of the Traffic tab therefore lists the types of both versions by name, and the IP Version filter field of every tab selects one version. A monitor that was saved with an ICMP type keeps matching that type of ICMP only.
Some ICMPv6 messages are not listed on the Traffic tab:
- Neighbor solicitations, neighbor advertisements, router solicitations and router advertisements are the Neighbor Discovery Protocol and have pages of their own. See NDP.
- An ICMPv6 redirect is an NDP message as well, but it does what an ICMP redirect does and is listed on the Redirects tab.
- Multicast listener discovery is not recorded.
ICMPv6 has no timestamp and address mask requests, so a ping sweep over IPv6 consists of echo requests only.
Traffic
The Traffic tab is the raw view of all ICMP on the wire for the selected taps and time range. Queries and replies are aggregated per source, destination, type and code, while error messages are kept per packet so their quoted packet is preserved.
The page shows a chart of echo traffic and error messages over time, a breakdown of the ICMP message types seen, and
the top sources and destinations by volume. The table lists each flow with its type, source, destination and packet
count. The Details column stays empty for ordinary queries and replies and only carries information where it adds
something: for a redirect it shows the advertised gateway and destination, and for an error message it shows the
quoted flow that caused it, for example UDP 10.0.0.5:4444 to 8.8.8.8:53. Everything can be filtered, including by a
specific ICMP type.
Redirects
An ICMP redirect tells a host to send traffic for a particular destination through a different gateway. On most networks nothing sends these legitimately, so a redirect is worth looking at. An attacker on the same segment can forge one to insert themselves into a victim's path, which is a classic man-in-the-middle technique. The one benign case is a segment with two routers, where the default gateway points hosts at the other router.
Detection runs every minute over the redirects in the detection window and records every combination of sender, advertised gateway and told host as one finding, with the destinations the redirect covered. The Redirects tab lists them; each row links to a details page you can share.
The sender's address and MAC can differ
A redirect's source IP and the MAC it arrived with can belong to different devices, for example when a firewall forwards it. Nzyme resolves the sender's address to the asset that owns the IP, and shows the frame's MAC and its own asset separately in the Sender MAC column.
Traceroutes
A traceroute maps the path to a destination by sending packets with a deliberately small time-to-live and collecting the time exceeded messages each router returns. Administrators run traceroutes routinely, and so do attackers mapping a network after gaining a foothold. Review the traceroutes that are normal on your network before you enable the alert.
Nzyme detects a traceroute from the time exceeded messages that several routers return for the same destination. A path can be a single hop, so one router is enough when the trace clearly completed, when the probes used the UDP port range traceroute has always used, or when a run of TCP packets with a climbing time-to-live gives it away. Each traceroute records the tracing host, the destination, the probe protocol, the routers that answered and whether the destination was reached. The Traceroutes tab lists them, with an over-time chart and breakdowns by tracing host, destination and probe protocol, and each row links to a shareable details page.
A traceroute that is seen again within the detection window continues the same finding. One that returns after it was not seen for that long is recorded as a new finding, so the list and the chart show every time it was run.
Unreachable Ports
When a UDP packet reaches a closed port, the target sends back an ICMP port unreachable. A burst of these for one port is the signature of a UDP scan of that service, which makes this view a useful, always-on companion to the UDP scan detection in Recon. It is not itself a thresholded detection; it is a lens on the raw traffic for an analyst to read.
The Unreachable Ports tab groups port-unreachable messages by host, source, protocol and port. The host is the one that sent the unreachable, so it holds the closed port; the source is whoever sent the packet that hit it. The page has an over-time chart and four breakdowns, Top Host and Port, Top Ports, Top Hosts and Top Sources, and a filterable table. Because closed TCP ports answer with a reset rather than an ICMP message, this view is almost entirely UDP, and it shows plenty of benign return traffic too, which the filters are there to cut through.
Unreachable Hosts
Host unreachable and network unreachable messages come from a router that cannot deliver a packet, usually because the target does not exist or is down. A single source reaching for many unreachable destinations is the shape of a host sweep. Unlike port unreachables, these messages are about Layer 3 reachability and do not depend on the protocol, so this view covers TCP, UDP and ICMP alike and is the one that reveals TCP reconnaissance.
The roles are flipped from the ports view, because the target never answers: the unreachable host is the quoted destination, the source is whoever sent the original packet, and the reporting router is the device that returned the message. The Unreachable Hosts tab groups events by source, unreachable host, protocol and reason, with an over-time chart and breakdowns for top unreachable hosts, top sources, protocol and top reporting routers. Like the ports view, it is an analyst lens rather than an alerting detection, and it complements the host-sweep detection in Recon.
Tunnels
ICMP tunneling hides a data channel inside echo traffic. Tools like Loki, icmpsh and ptunnel pack command-and-control or exfiltrated data into the payload of ping requests and replies, which are normally a small, fixed filler. Nzyme flags echo flows whose payloads are unusually large and that reach a minimum packet count, grouped by source and peer.
Large one-off pings and path-MTU testing can look the same, so these are review-first findings. A careful attacker can also run a tunnel slowly with small payloads to stay under the size threshold, so treat this as a detector of loud tunnels rather than a guarantee. The Tunnels tab lists findings with their source, peer and the largest payload seen, an over-time chart, and Top Peers and Top Sources breakdowns. Top Peers counts how many distinct internal hosts reach each peer, so a peer shared by many hosts, the shape of a command-and-control endpoint, stands out. The thresholds are on the Settings tab.
A tunnel that is seen again within the detection window continues the same finding. One that returns after it was not seen for that long is recorded as a new finding, so the list and the chart show when it was active and when it was quiet.
Exclusions
Exclusions keep known-good sources out of the redirect, traceroute and tunnel detections, for example a legitimate second router that sends redirects or a monitoring host that runs traceroutes. They are managed on the Exclusions tab of the ICMP page and require the Manage Ethernet Monitoring permission.
An exclusion has a name, an optional description and one or more criteria, and a detection is suppressed when all filled criteria match: the detection types it applies to (redirect, traceroute, tunnel, or any combination), a source address or network, a source MAC, and, for redirects only, the advertised gateway. The gateway criterion never matches a traceroute or tunnel, which have no gateway. A matching detection is suppressed before it is stored or alerted, and each exclusion records how many detections it suppressed and when it last matched. A disabled exclusion is kept but no longer applied.
Alerts
ICMP detection can raise three kinds of detection alerts. All of them are disabled by default and are enabled in the configuration:
| Detection Type | Raised when |
|---|---|
ICMP_REDIRECT |
A redirect is detected. Redirects are rarely legitimate. |
ICMP_TRACEROUTE |
A traceroute is detected. Administrators run traceroutes routinely. |
ICMP_TUNNEL |
A suspected tunnel is detected. Large one-off pings can look the same. |
The alerts belong to the Ethernet subsystem and carry the finding's addresses as attributes. An alert is raised once when a finding is first detected and not again while the finding continues. A finding that is later recorded at another location raises an alert there. Alerts about findings that match an exclusion are not raised. See the alerting documentation for how alerts are grouped and re-triggered.
Traceroute and tunnel alerts are grouped by source and destination address. A traceroute or tunnel that returns as a new finding does not create another alert. The existing alert is re-triggered, which also re-opens it if it was marked as resolved, and it links to the latest finding. A redirect remains one finding, and its alert is not raised again when the redirect returns.
Configuration
Users with the Manage Ethernet Monitoring permission configure ICMP detection on the Settings tab of the ICMP page. All settings are per tenant and take effect with the next detection run. The Traffic, Unreachable Ports and Unreachable Hosts views are computed directly from the stored packets and have nothing to configure. Ping sweeps and operating-system fingerprinting are detected by Recon and configured there.
Detection
| Key | Default | Description |
|---|---|---|
| Redirect detection enabled | true | Detect ICMP redirects. |
| Traceroute detection enabled | true | Detect traceroutes. |
| Tunnel detection enabled | true | Detect suspected ICMP tunnels. |
| Detection window (Minutes) | 30 | How far back each run looks. Between 5 minutes and 24 hours. A traceroute or tunnel that was not seen for this long is a new finding when it returns. |
| Traceroute: Minimum routers answering | 2 | How many routers must return time exceeded for the same destination before a traceroute is recorded, unless the trace is unmistakable for another reason. |
| Tunnel: Minimum echo payload (Bytes) | 128 | The smallest echo payload that counts toward a tunnel. Normal pings are far smaller. |
| Tunnel: Minimum packets | 10 | How many large echo packets a source and peer must exchange before a tunnel is recorded. |
| Detection retention time (Days) | 365 | How long redirect, traceroute and tunnel findings are kept. |
Alerting
| Key | Default | Description |
|---|---|---|
| Alert on redirect | false | Raise ICMP_REDIRECT alerts. |
| Alert on traceroute | false | Raise ICMP_TRACEROUTE alerts. |
| Alert on tunnel | false | Raise ICMP_TUNNEL alerts. |
You can also tune pipeline performance in your Nzyme tap configuration files:
| Variable | Description |
|---|---|
pipeline_size |
The tap process moves data internally using in-memory pipelines. Raise this if you see ICMP pipeline warnings in the tap logs. |
Retention
ICMP packets follow the retention time of the Ethernet: Layer 4 data category. The redirect, traceroute and tunnel findings follow the detection retention time configured above and are removed once they have not been seen for that long. Because the Traffic, Unreachable Ports and Unreachable Hosts views read the stored packets directly, they can only reach as far back as the Ethernet: Layer 4 category is retained. See Configuring Retention Times for how to change retention times.