Running distributed scans
Distributed scans use managed endpoints that are running the Tanium Client to find unmanaged interfaces on the networks those endpoints can reach.
After identifying unmanaged interfaces, you can apply labels to them. You can use these labels as deployment targets in Tanium Client Management to install the Tanium Client, bringing the interfaces under management by Tanium Cloud. For more information about how to deploy the Tanium Client in Tanium Classic, see Deploying the Tanium Client using Client Management.
Profile configuration
Distributed scans use one of four discovery levels, each with a different network impact and data return.
There are four levels of distributed scanning. You can create multiple profiles that include passive and active discovery methods. Each profile is scoped by different network inclusions, exclusions, and schedules. With an active discovery method, you might scope the discovery to run on a specific subnet a few times a day. Because passive discovery methods have less network impact, you might scope the discovery to scan a broader part of the network every hour.
For distributed scanning, the best data is provided by a level 4 (Nmap scan with host discovery and OS fingerprinting) profile. This profile type provides data that includes open ports, attempts to identify the OS Platform and OS Generation.
If Nmap is not allowed in your environment, the level 2 (ping) scan generates some OS Platform information.
Levels 1 and 3 provide the least information. Level 3 is a quick scan without port probing, but finds all IP addresses using active ARP probing. The level 1 scan is passive and looks at connections or ARP cache to determine what the endpoint knows about without any network probing.
For more information about the data provided by each profile type, see Reference: Data returned by profile type.
Level 1 (ARP/NDP cache and interface connections)
Level 1 is a passive discovery method that reads the cache on each managed endpoint and generates no network scanning activity. If host name lookup is on for the profile, passive discovery generates some network traffic.
Level 1 scans support IPv6 when IPv6 compatibility is enabled in your environment. For more information, see Toggle IPv6 compatibility.
IPv4 discovery
Level 1 discovery for IPv4 addresses combines ARP cache and interface connections discovery.
Level 1 discovery for IPv4 addresses is a passive discovery method that combines ARP cache and interface connections discovery. No endpoints are scanned with level 1 discovery because the results are returned from the local ARP cache on each endpoint.
Tanium reads the full local ARP cache and filters the results against the profile scan inclusions and exclusions. For IPv4, the results are bounded by the local subnet of the endpoint, capped at the /22 range (1,024 IP addresses). For more information, see Scan range calculation.
The interface connections method sends actions to the endpoints to trigger the collection of all current IP connections that are on each managed endpoint. Then, the related MAC address is resolved by looking up the interfaces in the local ARP cache.
Value on Interfaces pages: arp, connected
IPv6 discovery
Level 1 discovery for IPv6 addresses combines NDP cache and interface connections discovery.
Level 1 discovery for IPv6 addresses is a passive discovery method that combines NDP cache and interface connections discovery. No endpoints are scanned with level 1 discovery because the results are returned from the local NDP cache on each endpoint.
On each endpoint, Tanium filters the NDP cache for ff00::/8 multicast addresses, adhering to any profile network inclusions and exclusions, and returns a maximum of 4,096 results.
The interface connections method sends actions to the endpoints to trigger the collection of all current IP connections that are on each managed endpoint. Then, the related MAC address is resolved by looking up the interfaces in the local NDP cache.
Value on Interfaces pages: ndp, connected
Level 2 (ping)
The level 2 discovery method uses an ICMP ping to find unmanaged interfaces.
The level 2 discovery method uses a ping discovery method to find unmanaged interfaces.
When level 2 discovery is initiated on a managed endpoint, the scan range is calculated based on its peers in the linear chain. For more information, see Scan range calculation.
After the range is calculated, the scanning package pings the targeted IP addresses with an Internet Control Message Protocol (ICMP) ping. Pings without a response take 3 seconds. Pings that return a response take much less time.
By default, isolated endpoints do not run scans. Isolated endpoints are endpoints that are on an isolated subnet, or appear to be on an isolated subnet because the endpoint has no peers. To allow isolated endpoints to run scans, turn off the Exclude isolated endpoints switch when configuring a distributed scan profile. For more information, see Configure profile for distributed scan.
When Tanium imports the results, the following actions occur:
-
Resolves host names
-
Checks if the interface is managed or unmanaged
-
Resolves MAC address and Manufacturer
-
Resolves OS Platform based on time to live (TTL) value in the ping response: Windows, Linux/macOS, or Solaris/AIX (Solaris endpoints do not detect OS Platform)
The ping discovery causes a small amount of network traffic over time. You might run the scan on a smaller part of the network or at a longer schedule interval.
When you configure level 2 discovery on a sparsely populated network, set a longer Run every interval to prevent scans from overlapping. If scans overlap, the scan might never gather data for the upper end of the scan range.
Value on Interfaces pages: ping
Level 3 (Nmap scan with host discovery)
The level 3 discovery method uses the Network Mapper (Nmap) utility on each endpoint to find information about network interfaces.
When a level 3 scan starts on an endpoint, the scan range is calculated based on its peers in the linear chain. For more information, see Scan range calculation.
Nmap scan host discovery finds unmanaged interfaces by using the Nmap and Npcap endpoint tools that Endpoint Configuration deploys to managed endpoints (Npcap on Windows only). Then, an Nmap scan runs with an ARP broadcast scan only. If an ARP reply to the target is found, the interface is listed as available. No operating system or open port information is returned about the interfaces. Because level 3 discovery performs an ARP broadcast, you might see a spike in network activity at the beginning of the scan.
For more information, see Manage the Npcap driver.
Level 4 (Nmap scan with host discovery and OS fingerprinting)
Level 4 uses Nmap to find unmanaged interfaces and also performs OS fingerprinting.
Like the level 3 discovery method, level 4 also uses Nmap to find unmanaged interfaces. Level 4 discovery also includes OS fingerprinting.
By default, Discover scans 1,000 commonly used TCP ports to calculate the OS Generation field. For more information, see Top 1,000 TCP and UDP ports (nmap default). In the profile settings, you can configure different ports to scan and can change the source port from which the scan originates. The value of the OS Generation field is an estimate from Nmap and does not appear for managed interfaces.
To edit the port configuration of a level 4 scan, see Edit a distributed profile.
For more information, see Manage the Npcap driver.
Manage the Npcap driver
Npcap installation during Nmap discovery
The Nmap discovery method (discovery levels 3 and 4) uses Npcap, a device driver, on Windows endpoints. For more information about exclusions that might need to be enabled for Nmap, see Host and network security requirements.
Tanium installs the following files:
-
nmap.exe: Runs scanning operations from the <Tanium Client>\Tools\Discover\nmap directory.
-
npcap-<version>-oem.exe: Runs on the endpoint and adds libraries and drivers that Nmap requires. This installer runs from the <Tanium Client>\Tools\Discover\npcap directory. On Windows endpoints, Npcap is loaded on demand and is available to only administrator users on the endpoint. Npcap files are installed in the C:\Program Files\Npcap directory. Tanium installs Npcap 1.89.
Nmap is not supported on AIX or Solaris. If Nmap scanning is configured for endpoints on these platforms, the endpoints perform level 2 scans instead. Level 2 scans are also performed if the Nmap scan has any problems running on the endpoint.
For more information about how to uninstall Npcap in Tanium Classic, see Remove Npcap from endpoints.
Npcap driver policy
-
To use the existing Npcap version on the endpoint and not update to a newer version, select Use existing Npcap version. Tanium installs Npcap on the endpoint if it is not already installed. This is the default setting.
Note: The default Npcap policy no longer updates Npcap automatically. To have Tanium continue to update Npcap on endpoints, select the Update Tanium version of Npcap option.If you plan to manually update Npcap versions, select this option.
-
To use the Npcap version included with Discover, select Update Tanium version of Npcap.
-
Tanium updates Npcap if it is not on the endpoint or if Npcap was previously installed by Tanium. Tanium installs Npcap 1.89.
-
If Npcap was installed outside of Tanium, Tanium does not update Npcap.
Important: Npcap updates might cause the endpoint to automatically restart or to restart the network. If you want to manage when endpoints restart, do not select the Update Tanium version of Npcap option. -
Scan range calculation
If you do not exclude isolated endpoints, Tanium caps the scan range of an isolated endpoint at the /22 range (1,024 IP addresses). When a scan runs, Tanium calculates scan range automatically.
With level 2 through level 4 discovery methods, scans typically run only in the gaps between the managed interfaces. Scanning only in the gaps eliminates many of the common issues with network scanners that generate significant network traffic and trigger alarms in intrusion prevention systems (IPS) and firewalls.
Most endpoints perform forward scans to avoid overlaps in scanning from other endpoints. Endpoints with no backward peers also scan backward to avoid any gaps in scans. Review the following scenarios to understand how scan ranges are calculated.
Scenario: Endpoint has forward and backward peers
An endpoint that has peers in both directions performs a forward scan only.
A managed endpoint at address 192.168.1.10 has a forward peer at address 192.168.1.20 and a backward peer at address 192.168.1.5.
A forward scan occurs from 192.168.1.11 to 192.168.1.19. Because the endpoint has a backward peer, a backward scan is not performed.
Scenario: Endpoint has forward peer but no backward peer
An endpoint that has no backward peer scans in both directions to avoid gaps.
A managed endpoint at address 192.168.1.10 has a forward peer at address 192.168.1.20, but no backward peer.
A forward scan occurs from 192.168.1.11 to 192.168.1.19. Because the endpoint has no backward peer, a backward scan from 192.168.1.1 to 192.168.1.9 is performed.
A scan occurs from 192.168.1.1 to 192.168.1.19 (excluding the origin endpoint: 192.168.1.10).
Configure profile for distributed scan
Configure a profile for the distributed scan by defining which networks to scan, the discovery method, and a scan schedule.
Before you begin
Complete these prerequisites before you configure a distributed scan.
-
Make sure that you have management rights over the computer groups that the profile targets. You cannot create, edit, or enable a profile that targets endpoints outside your management rights.
-
Know the IP addresses that you want to scan, or add a network for those IP ranges.
Create a distributed profile
Create a distributed profile to run scans from managed endpoints.
Edit a distributed profile
Edit an existing distributed profile to change its scan configuration.
- Open the profile in the Profile Editor panel by using one of the following methods:
- In Tanium Atlas, enter a chat prompt that names the profile that you want to edit.
- In the Discover profiles panel, click the name of the profile to open the Profile overview panel, and then click Edit.
- Configure the discovery level, network scope, schedule, and applicable advanced settings. You cannot change the profile name. For more information about configurations, see Create a distributed profile.
- Click Save changes.
Manage a distributed profile
Enter a chat prompt in Atlas to enable, disable, or delete a distributed profile.
- To enable a profile, enter the following prompt: Enable a distributed profile.
- To disable a profile, enter the following prompt: Disable a distributed profile.
- To delete a profile, enter the following prompt: Delete a distributed profile.
Discovery process
After you save a scan profile, scheduled actions are created, scans run on the defined schedule, and results are imported.
After you save a profile, the following actions occur:
-
Scheduled actions are created for the profile. For a distributed profile, the actions are Discover - Execute Scan [profile_name] and Discover - Execute Scan for Non-Windows [profile_name]. For a satellite profile, the actions are Discover - Execute Satellite Scan [profile_name] and Discover - Execute Satellite Scan for Non-Windows [profile_name]. To view scheduled actions, enter the following prompt: Show me Discover scheduled actions.
-
Scans run according to the defined schedule. To view scan results for a distributed profile, enter the following prompt: Show me scan coverage for [profile_name]. Review the Profile overview panel.