Protecting Your Network: Finding Unmanaged Endpoints on the VPN

With today’s Distributed Workforce (DWF) model, companies need to protect their corporate network more than ever. This is business critical if unmanaged clients connect to your network via a Virtual Private Network (VPN).  These can create a larger vector for attack if they are non-compliant with corporate IT policies.  This article shows how to use Discover to protect against risks associated with non-compliant endpoints on the VPN.

Tanium Discover 3.2 introduced the concept of the centralized scan. The traditional Tanium approach has been distributed scanning, but this does not work well when no clients are deployed to a subnet. Discover 3.3 made some optimizations to the centralized scan for efficiency and accuracy. Discover 4.0 added a required component to allow for VPN scanning to work properly - the merger of managed and unmanaged interfaces.

Scanning is only one half of the picture though. Discover by default, never removes an interface from the Discover data. This allows the Discover administrator control over a retention policy. VPN interfaces are a slightly new issue. Central scans have several limitations. One of which is that and Discover NMAP Central scan (including VPN) the interfaces do not have MAC addresses to uniquely identify them -- why? Because MAC address is for the local link layer of the network and is only accessible if you are on the local LAN. We recommend a more aggressive “purge” for VPN interfaces because the data is volatile.

For a PURGE rule, you need to evaluate how often data is imported and how often the VPN ranges are scanned. If the default values are used (data harvesting is every 30 minutes and the central scan is every 60 min) it is recommended to purge these interfaces at 1.5 - 2X the scan time against the interface age. One hundred and thirty-five minutes is used in this downloadable sample and in the example used here for that reason. In Production, you should adjust based on your own scanning and import cycles. Note: this sample assumes you use VPN in the profile as a way to make sure to purge only the data portion of the VPN scanning.

Once you have data in the console and you have a reasonable culling of the old data, you can focus on the objective: find the unmanaged devices connecting to the VPN. This is easy with another downloadable sample label using the same common elements for naming to determine what is connected to the network.

While this sounds easy for our use case, there are a few elements to understand. The scan of the VPN network hits every IP address in the scan profile’s defined range. This means every element will be pulled in as UNMANAGED. During the import cycle if the same IP is found as managed and unmanaged it will be merged into a single record that is managed. This one label can be a complete report of every device currently connected to your network via a VPN without a Tanium client.


ProtectingNetworkFin_1ff006dd-bb1b-48f8-bb04-1e864a3eec4c.png

Using a Discover Label is good for an interactive view, but more often sending the list of interfaces to a helpdesk or SOC to investigate is a better workflow. You accomplish this goal by using Tanium Connect. Reporting is flexible, you can “push” the data from Discover after any import or pull a report at set times of the day. As an example, we will use the previously imported/created label as a filter to run a report every hour and index on unique attributes of the element, limiting duplication of the records. This will be an email report and only contain relevant columns.

For the configuration, select Tanium Discover as the source and Unmanaged as the report type. Finally, target email as the destination. The example below uses an unencrypted password-protected email destination.


ProtectingNetworkFin_2811c3d9-eea3-4310-b8bb-f4119ddbdb52.png

You want to configure two Output filters. The first is for new data so that you only email NEW data. Add a filter and select “New Items”. To immediately start filtering set the Learning Period to 0 days. Index on the ID column so only new IDs will be added to the report


ProtectingNetworkFin_e7c9dbb3-a6f4-4bc9-b506-d3a39e4f1639.png

Next, you will add a Regular Expression filter to capture ONLY the VPN Unmanaged label. Add a label and select the type Regular Expression. Select the Column named Labels. For a regular expression use the label name you just created to track unmanaged VPN devices (in this example V02_VPN Unmanaged).

Optionally you can change the format and columns sent in a report. In this example use the HTML format for easy reading in email, but a CSV or JSON file may be better for direct processing.

Many of the columns may not be populated by this type of scan. It is recommended you modify the columns to what is relevant to your support needs. Good examples are IpAddress and Os. HostName may be useful if the DNS system is set to register and retrieve the VPN addresses (in this example it is not).


ProtectingNetworkFin_9de06f6e-582c-44fb-816a-674d0ddd622f.png

The last item is how often to run the connection. In this example, the schedule is set for every hour for a new report, and every hour of any newly connected devices. Your use case could require raising or lowering the schedule frequency to match your requirements.


ProtectingNetworkFin_da14a5bd-8011-4bad-85c3-1d3e86e6f169.png

Once the connection is configured you will receive reports on the schedule set.

Sample Email:


ProtectingNetworkFin_c3bc46c7-f608-40ae-bda7-ff358172b44c.png

The example Connect configuration is available to download. You can import the example directly into Connect to help get you started. You will need to modify your email addresses and passwords or send to another destination (such as file).

Tanium Trends allows you to create and view reports, graphs, and trends over time in the Tanium console. This is an excellent way to track interface data reported by Discover over time. Any label or group of labels defined in Discover can be used in Trends to produce visual data and trends.


ProtectingNetworkFin_06e4963c-a75a-4a07-ae1d-fb9db456f09d.png

You can see how many devices connect over time, seeing your daily usage, as well as trending with increases and decreases in unmanaged devices. The above graph even shows daily patterns during weekdays vs weekend patterns.

Over time items will improve - today there are a few limitations to be aware of:

  • Windows Only: We can scan all interfaces on the VPN; however, the merge of managed interfaces only works on Windows. Why? Because a MAC address is required to return an interface as managed and most Linux and Mac computers use a TUNNEL adapter that does not have a MAC address. This means the only managed devices on this network will be Windows. The obvious conclusion is the filtering of Macs and Linux is often a good idea

  • OS Platform / Generation misreports: Centralized remote scanning passes through multiple network gateways. Each gateway may change timings (routing adds delays as the packets are reconstructed and analyzed for destination) and even header structures of packets. NMAP uses the attributes changed by gateways to determine the operating system and the VPN scan may report these incorrectly. However, you will still know what is connected but unmanaged. Commonly returned OS Platforms as a result of timing adjustments include Operating Systems such as TMOS (F5) and NetOS (Network Operating System).

  • Tanium 7.4 clients: The standard Tanium client port (17472/TCP) cannot be used to determine if a computer is managed or not. The reason for this is 17472 is open on the “localhost” address only - until there are other potential Tanium clients in the neighborhood to peer with. In most VPN situations there is only a single client on that local network.

  • Scan Limitations: The centralized NMAP scan in discover limits to a maximum of a /20 (4096 IP) network size. The number of these is NOT limited, however. The scan frequency is limited to once an hour. Two-Pass Nmap is very efficient on sparse networks (as we expect VPN networks generally to be) but can still take some time.

  • Data Speed: Currently the fastest you can scan is once every hour. The import cycle may take an hour or more. Clearly, this is a situation to be aware of. Future Tanium changes are planned for a separate VPN class of data to assist in this use case.

Additionally, to get the most out of your new process there are some recommendations that can help:

  • Use Discover’s Locations feature to identify VPN networks easily. Added benefit - you gain Location-specific permissions. Imagine a VPN Operator for Discover.

  • 64084/tcp added to the scan range. This is Xsan (an Apple-specific storage area network technology) and appears open on Tanium MacOS computers. There likely are other ‘fingerprint’ ports to use

  • Since most VPN clients are short-lived, set purge rules based on your VPN connections and timing as documented above

  • If you find OSes identified incorrectly (TMOS, NetOS, etc.) you may want to modify the default rule for marking unmanageable to exclude devices found on VPN networks.