Recon
Reconnaissance is the stage of an intrusion where an attacker maps a network: which hosts are alive, which ports are open, which services answer. It is also what a scanning tool, a vulnerability scanner or a worm does before it moves. The traffic it produces has a recognizable shape. One device reaches out to many ports on one host, or to one port on many hosts, far more often than it gets a useful answer. That asymmetry, many probes and few replies, is what separates scanning from a client that simply has a lot of legitimate conversations.
Nzyme detects this reconnaissance passively from the Ethernet traffic its taps already record. It does not send probes of its own and needs no signatures. It groups the connections of each device inside a time window, counts how many ports or hosts the device touched and how many of those probes went unanswered or were refused, and flags the devices whose behavior crosses the thresholds. Everything that passes becomes a scan that you can review, inspect, exclude and alert on.
You can find detected scans on the Recon page under Ethernet in the sidebar of your Nzyme web interface. Port scans and sweeps are on the Scans tab, operating system fingerprinting attempts on the Fingerprinting tab, and the Probed Hosts tab turns the view around to show which hosts are being probed, by however many devices.
How Nzyme Detects Scans
Scan detection runs on nzyme-node every minute, for every tenant that has the Ethernet subsystem and scan detection
enabled. Each run reads the connections of the tenant's taps inside the configured detection window (30 minutes by
default), groups them by source device, measures the behavior of each device and writes the results to the scan
tables. In a cluster, a tenant is processed by one node at a time; the others skip it for that run. How long each run
takes is reported as Recon Detection timers on the node details page under System → Cluster.
Several taps often see the same traffic. Their observations are merged by source and target, not added up, so a probe two taps reported is still one probe, and a scan lists every tap that saw it.
Data Sources
Each data source reveals a different kind of reconnaissance, and each can be enabled or disabled individually in the configuration. All are enabled by default.
| Data Source | Reveals |
|---|---|
| TCP sessions and stateless probes | Port scans and host sweeps, including whether each port answered, was refused with a reset, or stayed silent. Stateless probes are the segments of NULL, FIN, Xmas and crafted ACK scans, which the tap records separately (see TCP). |
| UDP conversations | Port scans and host sweeps where the only signal is whether the target answered. See the note on UDP below. |
| ARP requests and neighbor solicitations | Sweeps of the local network segment, where a device asks for the MAC address of many IP addresses in turn. ARP does this for IPv4 and NDP for IPv6. |
| ICMP echo and discovery | Ping sweeps, where a device sends echo, timestamp or address-mask requests to many hosts to find live ones. |
| DNS queries | Reverse DNS sweeps, where a device asks a resolver for the names of many addresses instead of probing the hosts. |
| OS fingerprinting probes | The unusual ICMP messages, TCP segments and UDP datagrams that operating-system fingerprinting tools send. See OS Fingerprinting. |
TCP is the richest source, because a TCP handshake tells Nzyme not only that a probe happened but how the target answered: a completed handshake means the port is open, a reset means it is closed (refused), and silence means the probe went unanswered. Stateless TCP probes never complete a handshake, but a closed port answers them with a reset while an open port stays silent, and the tap matches those resets to the probes. For a FIN, NULL or Xmas scan a reset therefore means closed and silence means open or filtered, which is exactly what the scanner learned; the scan's findings list the silent ports. UDP has no handshake, so a UDP probe only reveals whether the target answered at all. Because one-way UDP is common in perfectly normal traffic, Nzyme never counts UDP probes to the dynamic port range or probes carrying DNS, NTP, STUN and similar payloads, and it uses the ICMP port unreachable messages a target sends for a closed UDP port to tell refused probes apart from merely unanswered ones. The ICMP source feeds ping sweep detection. The fingerprinting source reads ICMP packets, TCP sessions, the stateless TCP probes the tap records alongside sessions (see TCP) and UDP conversations, and feeds OS fingerprinting detection.
Scan Types
A scan is one source device exhibiting one kind of reconnaissance. Nzyme distinguishes the following types, split across the two tabs of the Recon page.
| Type | Tab | A device is flagged when it |
|---|---|---|
TCP Port Scan |
Scans | probed many ports on a single host over TCP. |
UDP Port Scan |
Scans | probed many ports on a single host over UDP. |
TCP Host Sweep |
Scans | probed the same port on many hosts over TCP. |
UDP Host Sweep |
Scans | probed the same port on many hosts over UDP. |
ARP Sweep |
Scans | asked for the MAC address of many IP addresses on the local segment. |
NDP Sweep |
Scans | asked for the MAC address of many IPv6 addresses on the local link. See NDP Sweeps. |
ICMP Sweep |
Scans | sent echo, timestamp or address-mask requests to many hosts (a ping sweep). |
Reverse DNS Sweep |
Scans | asked a resolver for the PTR names of many addresses. See Reverse DNS Sweeps. |
Slow Scan |
Scans | accumulated many unanswered or refused targets over days without ever crossing a threshold inside a window. See Slow Scans. |
OS Fingerprinting |
Fingerprinting | sent the ICMP, TCP or UDP probes characteristic of operating-system detection tools. |
Thresholds
A candidate becomes a scan when it crosses the thresholds for its type:
- A port scan needs at least the minimum number of ports on one host (10 by default).
- A host sweep needs at least the minimum number of hosts (10 by default).
- An ARP sweep needs at least the minimum number of addresses (25 by default, since ARP is chattier on a busy segment). An NDP sweep uses the same number.
On top of that, every TCP and UDP detection also requires that at least the minimum share of probes went unanswered or was refused (50% by default). This is the check that separates a scanner from a busy but legitimate client. A mail server, a web browser or a peer-to-peer client talks to many destinations, but it gets answers; a scanner, by definition, mostly does not. ARP, NDP, ICMP and reverse DNS sweeps are request-based and are not subject to the failure share; a reverse DNS sweep needs the minimum number of hosts like a host sweep.
A scan stays open while the device keeps probing within the detection window, and is extended rather than duplicated as long as it keeps going. A quiet period longer than the window closes it; a later burst from the same device starts a new scan.
NDP Sweeps
An IPv6 network is too large to sweep address by address: a single /64 has more addresses than a scanner could ever try. Scanners therefore look for hosts in other ways, and the one that shows on the local link is neighbor discovery. A device that wants to know which addresses of its link are in use sends neighbor solicitations for them, for the low addresses that are assigned by hand, for addresses derived from known MAC address prefixes, or for addresses it learned elsewhere.
Nzyme reads the neighbor solicitations each device sent inside the detection window and raises an NDP Sweep when
a device asked for at least the minimum number of addresses of an ARP sweep. Only solicitations that were sent
to a multicast address count. A host also sends solicitations directly to the neighbors it already knows, one by
one, to check that they are still there, and those are not a sweep. A target counts as answered when it sent a
neighbor advertisement back.
The scan's details show how many /64 networks the targets are in. A share of the network that was covered is not shown, because no sweep covers a meaningful share of a /64.
Routers resolve the addresses of the hosts they forward traffic to and can cross the threshold on a busy link, for example when an outside scanner sends packets to many addresses of the network and the router asks for each of them. Such a sweep says that something is probing the network through the router. Add an exclusion for a router that keeps showing up.
Reverse DNS Sweeps
A reverse DNS sweep maps a network without sending the hosts a single packet. The scanner asks the resolver for the
PTR name of every address in a range, such as 57.8.168.192.in-addr.arpa, or a name under ip6.arpa for an IPv6
address, and sorts the answers: an address with a
name is a host, and the name usually says what it is. nmap -sL does exactly this, and nmap's regular scans do it too
unless told not to. The traffic is a burst of ordinary queries to the resolver everyone uses, so the targets, and any
monitoring on them, see nothing.
Nzyme reads the reverse lookups each device sent inside the detection window, turns the reverse names back into the
addresses they ask about and raises a Reverse DNS Sweep when a device asked about at least the minimum number of
hosts. The targets of the sweep are the addresses, not the resolver; an address counts as answered when the resolver
returned a name for it, which is what the scanner learned. Which resolver was asked does not matter, a device sweeping
through a public resolver is sweeping all the same, but a resolver that forwards a sweep upstream repeats the same
names it was just asked and is recognized as forwarding rather than scanning. The external targets setting decides
whether addresses outside your network count. The scan's details show the resolver used, how much of the swept /24
networks was asked about, and the addresses that resolved. For IPv6 addresses the details count the /64 networks
instead, without a share.
Mail servers, intrusion detection systems and packet analyzers with name resolution turned on look up the addresses they see and may cross the threshold on a busy network. Their lookups are scattered across the hosts that exist, so their range coverage stays low, and the usual exclusions keep them out of the list. Nzyme taps look up the names of the hosts they see as well, to attach them as context, but a tap recognizes its own lookups and keeps them out of the DNS data it reports, so they never reach scan detection.
Slow Scans
The thresholds above are measured inside the detection window, and a scanner that knows this can stay under them:
nmap -T0 waits five minutes between probes, so ten ports take almost an hour, and a scanner that touches a different
port on each of a few hosts trips neither the port scan nor the host sweep threshold. Widening the window does not
help against a patient attacker, so Nzyme keeps a probe history instead.
Every detection run adds the distinct (target, port) pairs each device probed to the history, where they are kept for
the slow scan memory (7 days by default). Probes that a regular scan accounted for are marked as such and do not
count again. When the unanswered or refused pairs of a device, across all hosts and ports, reach the slow scan
minimum (25 by default) and the device's failure share is above the minimum like for any other scan, Nzyme raises a
Slow Scan. It does not matter how slowly the device went or how it spread the probes, only how many distinct places it
knocked and got nothing. A slow scan stays open and keeps collecting targets while the device continues; its targets
age out of the history after the memory period. Slow scan detection can be turned off separately.
Site-Local and External
Nzyme tracks whether the source of a scan and its targets are site-local, meaning
internal or loopback addresses. Internal addresses are the private, unique local and
link-local ranges, the configured and learned networks of your site and, if
configured, the carrier-grade NAT range 100.64.0.0/10. By default Nzyme only
reports scans whose source is inside your network and whose targets are inside your network as well. Two separate
settings loosen this:
- Scans from external sources are off by default because the internet continuously probes every reachable address. Reporting them would bury the scans that actually matter under background noise from the outside.
- Scans against external targets are off by default because so much normal outbound traffic looks like a sweep of the internet: a mail server trying a provider's pool of addresses, a client reaching a content delivery network, or peer-to-peer software contacting many peers. Enable this to also catch internal devices scanning the internet, for example a compromised host enumerating external infrastructure.
ARP and NDP sweeps are always local, because neither crosses a subnet.
OS Fingerprinting
Operating-system detection works by sending a target packets that the standards leave undefined and watching how its
network stack reacts, because every stack reacts a little differently. The packets themselves are the giveaway: they
have shapes that normal software never produces. Nzyme knows the probes that nmap, by far the most common tool, sends
during OS detection, and groups everything one device sends to one target into a single OS Fingerprinting finding.
Unlike port scans, a fingerprinting finding has no threshold. One matching probe is enough, because nothing else sends
it.
Nzyme recognizes three families of probes:
| Family | Signatures |
|---|---|
| ICMP | An echo request with a non-zero code, an echo request with an unusual type-of-service value and a large payload, and an information request. Timestamp and address-mask requests are also recorded. Over IPv6, an echo request with a non-zero code and a node information query. |
| TCP | A sequence of SYN segments to an open port with fixed, tiny window sizes and option layouts no real stack uses; a SYN with the ECN flags and a window of 3; and segments with impossible flag combinations: no flags at all, SYN together with FIN, or FIN, PSH and URG without ACK, as well as bare ACK segments that carry options only valid in a SYN. |
| UDP | A single datagram with a 300 byte payload sent to a closed port, over IPv4 or IPv6. |
Most signatures are strong and raise a finding on their own. A few are weak, because legitimate software
occasionally produces something similar: ICMP timestamp and address-mask requests, which some discovery tools use; a
single one of the SYN sequence shapes, where two or more distinct shapes are required instead; and the UDP datagram,
which is unremarkable without context. Weak signatures only count toward a finding alongside a strong one, and are
then listed with it.
The Fingerprinting tab lists these attempts with the signatures that were seen. The detail page additionally shows
the protocols involved, the TCP ports that were probed, how many of the six SYN sequence shapes were observed, and
whether the target answered. A fingerprinting attempt is almost always preceded by a port scan of the same target,
because the tool needs to know an open and a closed port first; that scan appears separately on the Scans tab.
Fingerprinting detection can be turned off separately from the rest of scan detection.
Scans and Targets
A scan is the device and its behavior. Its targets are the individual hosts and ports it probed, each with the outcome Nzyme observed:
| Outcome | Meaning |
|---|---|
Open |
The target answered. For TCP, the handshake completed; for a reverse DNS sweep, the address resolved to a name. |
Closed |
The target refused the probe. For TCP, a reset; for UDP, an ICMP port-unreachable. A stateless probe answered with a reset lands here as well. |
Unanswered |
The probe got no response at all. For a stateless probe this usually means the port is open or filtered. |
The scan details page shows the targets, a timeline of when the scan was active, the ports or address ranges it touched, and the enrichment that applies to the type, such as the ICMP signatures of a fingerprinting attempt.
Probed Hosts
Scans are detected per source device, so a scan spread across many devices, a botnet or an attacker rotating through addresses, never crosses a threshold. The Probed Hosts tab asks the question from the other side: which hosts received connection attempts, from how many devices, on how many ports, and how many of those ports never answered anyone. It is built from the same probe history that slow scan detection uses and therefore covers every connection attempt of every device, including the ones that stayed under all thresholds. Because of that, it reaches back at most as far as the slow scan memory.
This is a view of plain connection attempts, not of scans. Every host that any device tried to reach is in it, and most rows are ordinary traffic: a service that was briefly down, a laptop that left the network or a stale address in someone's configuration all show up as a host with an unanswered port. A host is not a scan target because it appears here. The rows worth a look are the hosts with many probing devices and many unanswered ports, which is the shape of a scan spread across devices that no single scanner reveals.
Two things keep the view focused:
- Default filters. The tab opens with the filters Probing Devices > 1 and Unanswered Ports > 0, because a host cannot be mapped by a distributed scan from a single device, and a host whose every port answered was not mapped at all. Remove or change them to see everything, and filter by host address, probed ports or unanswered ports to narrow the list further.
- Detected scanners are left out. Probes from a device that scan detection already attributed to a scan are explained by that scan, which is on the Scans tab, so they are not counted. Tick Include probes from devices already detected as scanners to count them as well.
Opening a host shows the devices that tried to reach it with the ports each one touched, and the probed ports with how many devices tried each and whether any of them got an answer. A device marked as a scanner is attributed to a detected scan; it only appears when such probes are included. The time range selected on the host page applies to all of its cards.
Working With Scans
The Scans tab lists the scans of the selected tenant that were active at any point in the selected time range, with their type, source device, target counts, probe and answered counts, and when they were first and last seen. The Active Scans chart shows how many scans were active over time in the same range, and Scans by Type breaks the matching scans down by type; clicking a type there filters the list to it. The time range and the filters apply to the list, the chart and the breakdown alike. The list and its filters work like every other Ethernet search page, and the small filter icons next to values add that value to the filters. The short, copyable ID at the start of each row links to the scan's details page and is a stable link you can share. Scans that match an exclusion are marked as excluded and are no longer updated.
The tap selection at the top of the page limits the list to scans observed by the selected taps. Slow scans are built from the probe history of the whole tenant rather than from one tap's observations and are always shown. Detection itself always runs across all taps of the tenant.
Exclusions
Exclusions keep known-good devices out of scan detection. Use them for your own vulnerability scanners, monitoring systems and asset-discovery tools, which scan the network as part of their job. Exclusions are managed on the Exclusions tab of the Recon page and require the Manage Ethernet Monitoring permission.
An exclusion has a name, an optional description and one or more criteria, and traffic is excluded when all filled criteria match. The criteria cover the scan type, the source address or network, and the source MAC. While you fill in the form, Nzyme shows which existing scans the criteria would match, and you can delete those matching scans in the same step. Existing scans that are not deleted stay in the list, marked as excluded, and are no longer updated.
Exclusions take effect with the next detection run and record when they last matched traffic, so you can tell which ones are still needed. A disabled exclusion is kept but not applied, and traffic it matched is detected again.
Alerts
Scan detection can raise two kinds of detection alerts. Both are disabled by default and are enabled in the configuration:
| Detection Type | Raised when |
|---|---|
RECON_SCAN_NEW |
A device starts a port scan or sweep. |
RECON_FINGERPRINTING_NEW |
A device starts an operating-system fingerprinting attempt. |
An alert is raised when a scan is first detected, and not again while the scan continues. Alerts are grouped by scanning device and scan type. A device that starts another scan of the same type later 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 scan. A device that scans the network regularly, like a router that sweeps its segment, is one alert per scan type, until an exclusion covers it. A scan that is later recorded at another location raises an alert there. The alerts belong to the Ethernet subsystem and carry the scan type and source as attributes, so they can be used in action templates and subscriptions. Alerts about scans that match an exclusion are not raised. See the alerting documentation for how alerts are grouped and re-triggered.
Configuration
Super administrators, organization administrators and users with the Manage Ethernet Monitoring permission can configure scan detection on the Settings tab of the Recon page. All settings are per tenant and take effect with the next detection run.
Detection
| Key | Default | Description |
|---|---|---|
| Scan detection enabled | true | Turns scan detection off for the tenant. Existing scans are kept. |
| Include scans from external (non site-local) sources | false | Also report scans whose source is outside your network. Noisy, because the internet is always scanning. |
| Include scans against external (non site-local) targets | false | Also report scans whose targets are outside your network, for example an internal host scanning the internet. |
| Detection window (Minutes) | 30 | How far back each run looks for connections. Between 5 minutes and 24 hours. |
| Port scan: Minimum ports on one host | 10 | How many ports a device has to probe on a single host to count as a port scan. |
| Host sweep: Minimum hosts | 10 | How many hosts a device has to probe on the same port to count as a host sweep. |
| ARP sweep: Minimum hosts | 25 | How many addresses a device has to ask for to count as an ARP sweep or an NDP sweep. |
| Minimum share of unanswered or refused probes (Percent) | 50 | How much of a device's TCP or UDP probing has to go unanswered or be refused. Separates scanning from busy clients. |
| Scan retention time (Days) | 365 | How long detected scans and their targets are kept. |
| Slow scan detection enabled | true | Keep the probe history and detect slow scans from it. The Probed Hosts tab depends on this as well. |
| Slow scan: Memory (Days) | 7 | How long probed targets are remembered. Between 1 and 90 days. |
| Slow scan: Minimum unanswered or refused host and port pairs | 25 | How many distinct targets a device has to probe without success, over the memory period, to count as a slow scan. |
Data Sources
| Key | Default | Description |
|---|---|---|
| TCP sessions and stateless probes | true | Analyze TCP sessions and stateless probes for port scans and host sweeps. |
| UDP conversations | true | Analyze UDP conversations for port scans and host sweeps. |
| ARP requests and neighbor solicitations | true | Analyze ARP requests and NDP neighbor solicitations for sweeps of the local segment. |
| ICMP echo and discovery requests (ping sweeps) | true | Analyze ICMP echo, timestamp and address-mask requests for ping sweeps. |
| DNS queries (reverse sweeps) | true | Analyze reverse DNS lookups for sweeps of address ranges. |
| OS fingerprinting probes (ICMP, TCP, UDP) | true | Detect operating-system fingerprinting from its ICMP, TCP and UDP signatures. |
Alerting
| Key | Default | Description |
|---|---|---|
| Alert on new scan | false | Raise RECON_SCAN_NEW alerts. |
| Alert on new OS fingerprinting attempt | false | Raise RECON_FINGERPRINTING_NEW alerts. |
The settings page also offers to delete all scans of the tenant, including their targets. Device and asset data, exclusions and the settings themselves are not affected. Scans are detected again if the devices keep probing, unless an exclusion matches them. This is useful after tuning the thresholds or adding exclusions, to start from a clean list.
Retention
Scans and their targets follow the scan retention time configured above and are removed at the start of a detection run once they have not been seen for that long. Scan detection reads the TCP and UDP sessions, TCP probes, ARP requests, NDP messages, ICMP packets and DNS queries that Nzyme stores for the tenant, so the detection window cannot reach further back than those data categories are retained. The probe history behind slow scans and the Probed Hosts tab follows the slow scan memory and is trimmed with every detection run. See Configuring Retention Times for how to change retention times.
Relationship to ICMP
Ping sweeps and operating-system fingerprinting are detected by recon because they are reconnaissance, even though they ride on ICMP. The ICMP page covers the rest of ICMP: its traffic, redirects, traceroutes, unreachable-port and unreachable-host analysis, and tunnels.