Customize Rules to Expose a Wider Range of Sensitive Data, With Regular Expressions in Tanium Reveal

Customize Rules to Expose a Wider Range of Sensitive Data, With Regular Expressions in Tanium Reveal

This article describes how to use Tanium Discover to find endpoints on your corporate network that are not using a Tanium agent.

Generally, including employees' personal ROKU’s and XBOX’s in your corporate inventory is not something we want to do. At best it clutters the data with items that have no relevance, and at worst may be in violation of local regulations such as GDPR or CAPA. With a distributed workforce being a massive change in today’s COVID-19 era, understanding how to configure Discover is even more critical than ever.

With Tanium Discover, you can find unmanaged assets by running one or more discovery methods against designated networks or computer groups.

Targeting your scans

To achieve the best results, first decide where to scan. The best practice is to use the “All Networks” setting for the targeting of where to scan.


KeepScanningCorporat_a0b246aa-e773-41e3-90f5-70639e8e0490.png

This is not always possible depending on the phase of deployment you are in, which is why there are options to create targeted subnets (one or more) or use the older “computer groups” methods in Discover. (NOTE*: even though computer groups are listed as legacy this is not going away)*. Use your best judgement or consult with your TAM if you have concerns on the targeting scan inclusion.

Often specific networks require either special discovery settings for that network, or as part of a crawl-walk-run rollout approach.


KeepScanningCorporat_3fe70d05-1681-442c-a494-0f269e8169e9.png

If networks are already set up, you can select for any of the profiles. It's as easy as hitting the pull-down mode and selecting one or more networks.


KeepScanningCorporat_a360334b-9054-4c25-a8aa-dae608dd7417.png

To initially create select the + button or to edit existing select the pencil. To add a network, select the + and give a name for the network and then a list of IP subnets. This can be a single address, a range of addresses (i.e. 10.100.10.0-10.100.10.50) or a CIDR specified network address (i.e. 10.0.16.0/24).


KeepScanningCorporat_5240bea1-f773-41c9-8ce9-1dda8fc02f53.png

Finally targeting Computer Groups is an option, but Discover is network oriented so use of full subnets is always best. If computer groups are used, always use sensors that are related to the network (in subnet [] or IPv4 contains) otherwise you may introduce blind spots into Discovery. The latest versions of Tanium include OS based computer groups, but most networks will have more than one OS so be careful.


KeepScanningCorporat_2b9dbdc9-0215-4373-a2a3-1e85a8c791b2.png

Scan Exclusions

Targeting appropriately is great but use of “all networks” as a best practice, or just having honeypots, other items, or entire networks you do not want to scan in or scan from make exclusions important.

Scan Exclusions come in a few flavors, some are network related, but others may need explanation.


KeepScanningCorporat_ea3c3af6-19d5-4a67-9041-e18f0f053fba.png

Exclusion Type

Description

Isolated Subnets/Systems

Prevent Devices in an Isolated state (has no peers) from performing Discover scans.

Specific Networks

Similar to the network inclusion and you can select from the same lists. If an endpoint is in this network, it will NOT perform a scan. If the destination to scan is in this list, it will be eliminated from the scan range.

VPN Networks

If an endpoint resides on a defined VPN Network exclusion it will not perform a Discover scan.

Zone Servers

If an endpoint is connected to the defined hostname or IP address it will not perform a Discover scan. This is used to prevent scanning on home-office and other remotely connected endpoints.

When configuring exclusions do some research and ask some questions first

  • Do external clients on the internet connect through a zone server? Can we define all Tanium zone server IP addresses (*)?

  • Do internal clients connect through a zone server? This may include DMZ or other acquisitions that use an internet facing zone server.

  • Can we list all our VPN networks?

  • Do we have at least two clients on every client network we wish to scan?

These questions will help you to define the proper exclusions in the Discover profiles.

Best practice is to define zone servers based on the internet facing IP address of the zone server. Hostnames are possible to use but results on split DNS can cause problems.  Comparison between the connected TANIUM SERVER NAME and the listed ZONE SERVERS are performed when a scan is started. If IPs are used in both fields this is a quick comparison. If hostnames are used a combination of textual comparison and DNS name resolution is done.  This can yield unexpected results if the DNS name of the zone server cannot be resolved. If resolution is not possible Discover will not perform a scan.  

Example:

Situation:

The DNS name is the same for the Tanium Zone Server on the internet and the Tanium Server on the intranet. However, they resolve to different IP addresses internal and external.

Recommendations:

This is a typical split-DNS situation. The best solution is to use the IP address of the zone server in the zone server exclusions.  

Scanning VPN networks

Discover endpoints using a “Distributed” scan will not scan the VPN network. Instead they will scan the internal network the client is directly connected to (i.e. home network)

Discover 3.2 introduced a new feature to do “Centralized NMAP Scans”.  This is a simple scan from the Tanium Module server across to a remote subnet. The primary use case of this feature was to explore networks where there is no Tanium client, however, scanning VPN networks can help find non managed clients connecting to your corporate network across the VPN as well.

Discover 3.3 adds optimizations to “Centralized NMAP Scanning” in the speed of scanning through a two-pass NMAP scanning approach. In a VPN environment this is critical as connectivity can be very short lived.

In a future version of Discover an optimized VPN scan and views related to VPN networks is in the planning phase.  

Tanium as a Service (TaaS) considerations

All endpoints reporting into a TaaS environment will report through a zone server, and there is no VPN access consideration. This makes eliminating home networks scans more difficult. The best method today is to use good targeting, but it may involve consultations with the network team, as well as an ongoing process for learning of new networks as they are added to keep visibility up to date.