Getting Surgical with Endpoint Discovery: Using Targeting and Exclusions in Tanium Discover

Tanium Discover has the ability to quickly, completely, and routinely scan corporate networks for unmanaged devices. The reality is that in many situations, our customers do not scan their entire network either for the sake of efficiency or out of necessity. For example, companies wanting to exclude personal devices on home networks for their remote employees, or wanting to avoid scanning in particularly fragile parts of their network. Discover offers two levels of control to address this need for precise scoping: targeting to narrow the application of a scan to specified areas of the network, and exclusions to opt individual endpoints out of the scan based on defined characteristics. This post will show how to use both of these features when running a scan.

Targeting with Network-Related Sensors

Ideally, a Discover user would want to cast as wide a net as possible when searching for unmanaged assets. Discover uses Computer Groups as a targeting mechanism. Using the All Computers group would be the most inclusive. However, there are many reasons this may not be the right option, such as if an organization needs to roll out a Discover scan slowly one network portion at a time, or if the user is only allowed to scan in certain sites.The best way to target one portion of the network is to define a Computer Group using the subnets in that portion. There are a few ways to target subnets, but the In Subnet Sensor is the best. Note: While In Subnet is a good targeting Sensor, like all Sensors, overuse can lead to performance issues. Too many In Subnet Sensors in one question (six for a potential maximum) can lead to slow question resolution. A secondary option might be Custom Tags or Enhanced Tags.


UseTargetExclusionsDiscover_d5c13ed2-2e45-4377-aee4-c2842626c98f.png

A Computer Group can be comprised of many subnets, as shown above, or a user can build a separate Computer Group for each subnet and add them in the Discovery Methods tab when preparing a scan. The Discovery methods will be targeted to run against all endpoints in these Computer Groups. Below is an example with three Computer Groups - these should be built using the subnets for those locations via the In Subnet Sensor.


UseTargetExclusionsDiscover_32aa6b79-77fa-4d1e-95c5-f8e7a97d617a.png

Why use In Subnet or other network-related Sensors? Discover targets unmanaged endpoints existing in IP ranges between managed peers, and the targeting group selects endpoints to run scans on. Below are two Sensors - the left uses In Subnet to cover a network range and all managed endpoints in that range will scan, covering the complete network. The one on the right uses Operating System, which will leave a gap in the network where there could be unmanaged interfaces that will not be discovered. Why? The Operating System Sensor specified Windows machines, so Linux systems were instructed not to scan!


UseTargetExclusionsDiscover_17dab494-d79b-4f91-8e9d-1236a39e7df0.png

Operating System is a great example of what

not to use for discovery targeting - but consider any Sensor that will not cover a network or subnet to be a bad move.

Scan Exclusions

Before moving on to this step, please note: we recommend always starting with targeting groups, as this will allow you to more efficiently narrow the scope and limit where actions are targeted. Once targeting is set, the next level of control is the exclusion. Applicability of excursions is at run time of the scan, which means that on targeted endpoints, the action logic will allow the execution to continue or terminate. So for an example endpoint, this could mean that the base targeting of the Computer Group(s) could determine this endpoint should run the Discovery actions (eg. push tools, push config, run scan), but based on exclusions the endpoint self could determine that it should not. There are occasional situations where a user would scope a discovery scan with targeting only, but in most cases where both are used, exclusions take priority over targeting.


UseTargetExclusionsDiscover_f01acb9b-7f8b-4a4e-a629-a84fef223420.png

Three practices to note regarding exclusions:    - Define all VPN subnets in a VPN exclusion, or you will pull in interfaces outside your corporate networks, such as XBOXes and ROKUs on home networks, or all devices at Starbucks where an employee opened up their laptop.- Define internet zone servers for endpoints connecting from internet locations. This will enable you to use them for exclusion purposes.- Verify that critical devices with fragile networking are defined as General Exclusions.By using targeting and exclusions, a few simple steps on initial configuration will direct Discover to only gather information for the interfaces that are important to you. To learn more on using Discover, see the below Community articles:

Choosing the right Discovery Method - NMAP ConsiderationsCommon Labels / Label GalleryHow do I configure Tanium Discover so that home networks are not scanned?As ever, working with your TAM to work on an appropriate testing strategy is always recommended.