Best Practices for Using Centralized Nmap Discovery to Scan Networks That Don't Have Tanium Clients

What is Centralized Nmap and why use it?

Tanium Discover has always leveraged the Tanium architecture for network discovery of unmanaged interfaces. This has been a huge strength to Discover, as we can use a “neighborhood watch” approach, deputizing every managed endpoint to provide an infinitely scalable approach to network discovery. These distributed discovery methods allow users to find all unmanaged and unmanageable interfaces with lightning speed on any network where they have Tanium Clients.

The release of Discover 3.2 introduced the concept of a “Centralized Nmap Scanner”. This is a network scanner like any other - it scans from a central location out to various locations it can reach. It has limits by firewalls and routing where our distributed methods do not. The advantage? We can use the centralized Nmap scans to scan networks where there is not a Tanium client. This could be by design - maybe a SCADA, manufacturing, or medical device network where there are no capable clients to run a Tanium client. Or this could be a portion of the network where you need to find capable devices and deploy Tanium to it. Either way, the centralized Nmap profile can give you visibility where traditional Tanium discovery methods could not.

Continuous Improvement

We have been able to realize a 50-90% speed improvement with the release of Discover 3.3 with a new feature to centralized Nmap - a two pass approach! One of the drawbacks of most central scanners is they take a very long time to complete. They will process each IP one by one and do its scanning. Long lists mean a long time to get results.

We knew this when we added the feature to Discover 3.2 and immediately started considering the issue. Parallel scanning was already available by adding multiple profiles: each runs on its own schedule and allows for faster results.

Now in Discover 3.3, we also are trying to limit the slow portion of the main scan pass (scanning all the designated ports) to only the interfaces determined to be online by a quick first pass.

How Two-Pass Centralized Nmap works

A few elements affect how long an Nmap scan takes on a remote network. This includes the number of IP addresses to scan, the number of ports to scan, the number of ports actually found and how long each IP is given as a timeout. If we timeout before completing a scan of a particular IP, we miss ports to scan. If we have a large number to scan, we often will time out and not have a complete picture of what ports are open on that endpoint. Our attempt is to optimize these timings to give the best possible results in the least time.

On the interfaces page, results from search and detail passes are merged into single results. So, the data appears quite similar if not identically; scans simply finish faster.

First pass: Search Phase. During the search phase only the top 10 most used TCP ports are used for this search. This first pass includes a 60 second host timeout. This method allows a very fast search to find what IP addresses respond against the most known ports on the internet.

  • If you add optional ports, they will also be added to this list. For example, if you add the default Tanium Client port 17472, this will now search top 10 + 17472 ports (11 total) during the search phase. Allowing the addition of ports helps customize this phase to what is known inside your network as well and not limit to what is generally expected.


BestPracticesCentral_5779705d-5ed5-43de-a1ae-617904a684d5.png
  • If “Only specified ports” is selected, this port range is then honored (not the top 10). 

Excluded ports are also honored during this phase.

Second pass: Details Phase. During the details phase, only the IP addresses found in the search phase get a deeper scan. This scan generally will use the 1000 most used TCP ports with a 120 second timeout. (his timeout is adjustable - consult your TAM.) Since only a subset of IP addresses have been selected, this pass runs extremely fast in most cases and produces the best scan data possible.

  • Like any other Nmap method in Discover, if you add additional ports, you will get top 1000 + your additions, or,

  • If you use the “Only specified ports” option, the details phase will only scan the ports you have listed.

  • Excluded ports are also honored during this phase.

The details phase is the primary source of data. However, both sets of data are merged. Why? Because, what if an endpoint went offline during the time between the first and second phase? It will not be found by the details pass. But, the recorded data from the search phase will still identify a) that this is an interface on the network and b) when it was found, even if full port data was not available.

Similarly, if the detail pass times out scanning a particular endpoint, it is guaranteed to return at least the partial result found in the search pass.

Best Practice: Use Locations to Identify Unmanaged Networks

Using Centralized scans with Discover implies some knowledge of your network. Consulting with the network team to build out Discover Locations will help dramatically in identifying when you have zero clients on a particular sub-network. 

In the above example, it is easy to spot that Canada has nothing populated in its network. We can see there are no managed or unmanaged devices found in that network. Because there are no Tanium Clients deployed there, we NEED to use a centralized scan to probe that network., then we can use the results to utilize Tanium Client Management to start deploying Tanium into that network. Once there is a client foothold, this centralized scan can then be removed, and the speed and scale of Tanium can be obtained by moving back to using Discover Distributed scans.


BestPracticesCentral_105fba94-2061-4b45-9ccf-ff56acfa23c3.png

If you have a network with no Tanium clients by design (such as a manufacturing, medical device or SCADA network), a centralized scan can also be used to gain a base level of visibility. Reducing the ports used in a scan allows you to safely find what's on the network for inventory use cases.

On the whole, most networks are not fully populated. The figures above are based on sparse networks as well as half-populated networks, giving the 50-90% improvement figures. This is still true in most cases But on the other hand, a fully populated network will give about the same speed results as the original centralized Nmap scan introduced in Discover 3.2.