Choosing the Right Discovery Method: NMAP Pros and Cons

I am often asked the question “What Discover Method should I use?” - this is not a simple question. The real question is “What are you planning on doing with the discovery information and what limitations do you have on your network (process restrictions or physical constraint)?”

Tanium Discover has multiple types of discovery methods. Passive methods (Arp, Connected) use what the endpoints in the environment know without scanning the network. Active methods (Ping, NMAP) probe the network to gather this information.

What method is best? Taking environmental considerations out of the equation, the NMAP method is best to generate the most actionable information because it can:

  • automatically disclose all identifiable devices on the network

  • allow automated and ongoing scheduled scans

  • automatically determine:

    • OS Platform, OS Generation, and  open ports as well as IP Address, MAC address (Device vendor and type), hostname, first seen, last seen and for Tanium if it is manageable, [already] managed, manageable or a lost interface which are available in other methods.

    • leverage an analytic and reporting tool to provide additional visualization reports, allowing users to take action on insights

However, you need to consider what works best in the context of your environment:

  • Are there considerations on process driven restrictions: Can you use NMAP on your network? Is there an issue on installing NPCAP?

  • Or are there actual network restrictions: Will NMAP generate unexpected traffic causing issues? Will NMAP cause instability of endpoints when scanned? Will NPCAP driver cause problems with other software on scanning machines?

An understanding of how Discover uses NMAP in scanning is critical.

Nmap usage in Tanium

Tanium Discover

Nmap scanning is one of four endpoint discovery methods that can be enabled with Discover:


ChoosingRightDiscove_679869f2-3f05-4e0f-bd73-f25d335a4793.png

Further details: Running distributed scans (tanium.com)

Tanium Comply

New capability in Comply leverages Nmap to identify network devices and deliver vulnerability analysis reports.

The Discovery Scan Process

Tanium Discover finds unmanaged assets by automatically distributing a scanning package to managed assets, then scanning only in the gaps between the managed assets. Scanning only in the gaps eliminates many common issues with network scanners that generate increased network traffic and trigger alarms.


ChoosingRightDiscove_c0ed592c-60d5-4a99-b5b4-71b87f818358.png
 

Managed assets are connected to each other in a linear chain architecture. On a single managed asset, the scanning package calculates a range of IP addresses to scan by looking at its peers in the linear chain. This range is from the backward peer in the linear chain, to either the forward peer or the end of the subnet.

After the range is calculated, the scanning package checks the targeted IP addresses using either ARP cache, netstat, ping, or NMAP information. After finding the assets, hostnames are resolved using either dns, ping or nmap. Isolated endpoints do not scan by default. These are endpoints that are on an isolated subnet, or appear to be on an isolated subnet because the endpoint has no peers.

When the scanning results are imported into the Tanium Module server, the Discover service checks to see if assets are managed or unmanaged. The MAC and Device Type are also resolved using the publicly available MAC address vendor codes.

NMAP Considerations

Pros

Cons

  • Operating System Platform (Windows, Linux, AIX, iOS, etc) is determined when NMAP can scan open ports (at least one open and one closed on a system being scanned).

  • Open (listening) ports are determined (often you can use this data even if NMAP does not identify an operating system)

  • An attempt to identify the operating system generation is made by active probing. This is a “guess” based on the information determined from the probe and should not be considered authoritative (*)

  • Security may not allow it (NMAP can be used as a hacker tool, but it is in the end - just a tool)

  • NPCAP is required and installs a FILTER driver in the network stack (**)

  • Port scan may trigger Host Intrusion Detection (HIDS and IDS)

  • NPCAP and NMAP are designed to be transparent, however they may have software interactions with installed software in an environment (***)

  • Scanned devices (the target) may respond in unexpected ways (eg. medical devices, network gear).

  • Can be blocked by LOCAL firewalls on both the system performing the scan and the system being scanned, limiting data available (often OS Platform and OS Generation affected)

  • Can be blocked by Antivirus software on both the system performing the scan and the system being scanned. This can affect the depth and accuracy of the data provided by NMAP.

  • The Tanium methodology described tries to be as efficient as possible and uses the LAN where bandwidth is generally not constrained, but there is still network traffic generated on the local LAN where scanning takes place.

(*) OS Generation is determined by an algorithm looking at the open ports and the responses of the port probes. Many items may cause this to mis-identify including client based firewalls blocking ports and other security controls. Additionally, as this is an external scan, there is no login to ask the system this information. Finally, it is generation not version. Microsoft releases server and workstation versions within a generation, so results for Windows 10 and Server 2016 look very similar from this scan and may overlap.

(**) NPCAP may interact with other software and cause issues in rare cases, but is a risk and should be tested before a wide deployment.

(***) This is a concern of anything loaded on an environment, and we recommend testing before any deployment.