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:
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.
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 |
|---|---|
|
|
(*) 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.