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.

Note:

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.

Note: Tanium does not support AIX endpoints for IPv6 distributed scans.
Note: Creating IPv6 profiles is not available in Tanium Atlas.

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.

Note: Tanium installs Npcap on endpoints that do not have Npcap installed. By default, Tanium does not update the Npcap version on endpoints that already have Npcap installed. You can configure the scan profile so that Tanium updates Npcap on endpoints where Npcap was previously installed by Tanium.

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

When configuring a satellite profile or Nmap discovery distributed profile, you can select how Tanium manages the Npcap driver on Windows endpoints. To configure a satellite profile, see Create a satellite profile and Edit a satellite profile. To configure a distributed profile, see Create a distributed profile and Edit a distributed profile.
  • 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.

Note: Create profiles according to your deployment plan. For more information, see Develop a deployment plan. If you are using a by subnet deployment policy, test and continue to add subnets to the profile until you are comfortable using all subnets.

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.

  1. In Tanium Atlas, enter the following chat prompt:
    CODE
    Create a Discover profile
  2. In the Profile Editor panel, select Distributed to create a distributed profile.
  3. Enter a unique profile name up to 64 characters. Click Next.
  4. Select a discovery level. For more information, see Profile configuration. Click Next.
    Note: To help target installation of the Tanium Client on unmanaged interfaces, configure a scan that returns operating system information about the endpoints. Level 4 Nmap discovery provides the best results, but level 2 ping scans also provide some operating system information.

    Level 2, 3, and 4 scans also resolve host names. To turn on host name lookup for a level 1 profile, use a chat prompt. Host name lookup produces some network traffic, even for a discovery level with low network impact.

    Note: Creating IPv6 profiles is not available in Tanium Atlas.
  5. Configure scan inclusions. Under Networks to scan from, select one of the following options.
    • To scan all networks, select All networks. Typically, select All networks to include the broadest results.
    • To scan from specific networks, select Specific networks. In the Networks list, select one or more networks. With this selection, only endpoints on these networks perform scans. The selection does not limit the IP addresses that the scans target. Each endpoint scans the range that is calculated from its position in the Tanium linear chain. To prevent scans of specific IP addresses, configure exclusions. For more information, see Scan range calculation.
    • To scan specific computer groups, select Specific computer groups. In the Computer groups list, select one or more computer groups. With this selection, only endpoints in these groups perform scans. The scans can target IP addresses outside these groups.
  6. Under Exclusions, configure scan exclusions. At a minimum, configure exclusions for VPN, zone servers, and critical endpoints with fragile network configurations. Click Next.
    • To allow isolated endpoints to perform scans, turn off the Exclude isolated endpoints switch.
    • To prevent scans on IP addresses, select networks in the Excluded networks list. List critical endpoints with fragile network configurations. These IP addresses are not contacted during the scan process. If any endpoints in this network are running the Tanium Client, these endpoints do not perform scans. You cannot add the same network to both the inclusions and the exclusions.
    • To prevent scans on devices connected through a VPN, select networks in the Excluded VPN networks list. List VPN subnets to avoid, including interfaces outside your corporate networks. If you do not define VPN networks as an exclusion, devices such as gaming systems and streaming devices from home networks might be discovered. If a managed endpoint is used on a public network, such as in a restaurant or airport, devices on those networks might be discovered if the VPN exclusion is not defined.
    • To prevent scans by Tanium Clients that connect through DMZ-facing zone servers, select servers in the Excluded zone servers list. List the internet-accessible host names or IP addresses of the zone servers to be excluded. As a safety mechanism, if an endpoint that connects through a zone server cannot resolve a host name in a zone server exclusion, the scan is not performed on that endpoint. Configure either all IP addresses or all host names for your zone server exclusions and zone server name definitions. Mixing IP addresses and host names in the configuration and exclusions can have unexpected results.
    Note: When you exclude isolated endpoints, Tanium does not start a scan until the isolation status of the endpoint is stable for 5 minutes. Expect this delay after a Tanium Client restart or a network change. If the isolation status is still unstable, Tanium retries the scan up to 10 times at 5-minute intervals (approximately 50 minutes) before abandoning the attempt for the current scan. The scan runs at the next scheduled launch.
  7. Configure the scan schedule and the scan window.
    1. Set Run every to the scan interval. You can configure the scan interval to either minutes or hours. The minimum interval you can set is 60 minutes. The maximum interval is 744 hours.
    2. Select a value in the Distribute over time list.
    3. (Optional) Set the Scan window (Windows, macOS, and Linux endpoints only). Configure specific times to run the discovery process on your endpoints.

      If a scan is scheduled to run outside the scan window, nothing is run as a part of the scan. To configure the scan window, turn on Restrict scans to a time window and then configure the following settings:

      • Allowed days: Select the days on which scans can start. Select at least one day.
      • Opening time: Enter the time at which the scan window opens, in 24-hour HH:mm format, such as 13:30.
      • Opening timezone: Select Browser time of the Tanium user or Local endpoint time. Local endpoint time is the local time of the Tanium Client.
      • Duration: Enter how long the scan window stays open, from 1 to 1,440 minutes.
      • Scan immediately if the last scan is older than a specified age: To scan endpoints that have outdated scans even when the scan window is closed, turn on this switch and then enter the Maximum scan age in hours.

      For example, to scan your endpoints daily during non-business hours, from 6:30 PM to 11:30 PM, set Opening time to 18:30 and Duration to 300 minutes. If the scan window is shorter than the Run every and Distribute over time settings combined, some scans might be missed.

  8. Configure applicable advanced settings.
    • For level 2 scans, configure the Ping interval. In most cases, you do not need to change the default of 0 milliseconds.
    • For level 3 and level 4 scans, configure the Npcap driver policy. For more information, see Manage the Npcap driver.
    • For level 4 scans, configure Ports to scan, Excluded ports, and Source port. Before configuring large port ranges, contact your network administrator.
  9. Click Create profile.
Review the Profile overview panel.

Edit a distributed profile

Edit an existing distributed profile to change its scan configuration.

  1. 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.
  2. 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.
  3. Click Save changes.
Review the Profile overview panel.

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.