Managing sensors for collecting endpoint data
Sensors overview
When you issue a question to retrieve information from endpoints, each sensor in the question includes a script that runs on the endpoints to compute the information. Tanium Clients and endpoints managed using an entity provider return the information to Tanium Cloud, which shows the information on the Interact Question Results page. For example, you can issue a question with the Running Applications sensor to view the name and version of each application that is running on endpoints.
You can also use sensors to define Dynamic membership of the endpoints in the following types of computer groups:
-
Computer management groups, which control user access to endpoints when issuing questions or deploying actions.
-
Filter groups, which you can use as filters in questions and question results.
Tanium Cloud provides Initial content that includes sensors for a wide range of common questions. Other Tanium solutions might provide more sensors. If you cannot find a sensor that you need within Tanium-provided content, you can create custom sensors.
Sensor write permission is required to create, edit, or delete sensors. Tanium reserves this permission for customers who have completed a Tanium Custom Content training course. Contact Tanium Support to gain access to this course and Sensor write permission.
Sensor scripts
A sensor configuration includes settings, script content, and script parameters. Sensors use industry-standard scripting languages rather than proprietary coding syntax. When you create custom sensors, the best practice is to use the scripting engine that is available on the largest number of managed endpoints. On macOS and Linux endpoints, shell script generally provides the most comprehensive out-of-the-box coverage. You can develop sensors using any other scripting language that the operating system (OS) supports (such as PowerShell on Windows) if the associated scripting engine exists on endpoints. You can deploy and configure the engine on any endpoints where the engine is not present.
Windows endpoints require certain configurations to enable some Tanium sensors and packages that rely on Windows Management Instrumentation (WMI) queries, VBScript, and PowerShell. For more information, see Tanium Client Management User Guide: Prepare for deployment to Windows endpoints.
When you choose a scripting engine for custom packages, note that Microsoft has announced the deprecation of VBScript. For more information, see Tanium Community article: VBScript Retirement in a future Windows Release (sign in required).
Parameterized sensors
A parameterized sensor requires input (parameter values) from users before the sensor can collect results from endpoints. When you issue a question or configure a computer group that uses a parameterized sensor, Tanium Cloud creates an object called a temporary sensor, which contains the substituted parameter values and a link to the actual sensor. For more information, see:
-
Dynamic membership (for computer groups)
Virtual sensors
Tanium solutions use virtual sensors to provide data for endpoints without running scripts on those endpoints. Virtual sensors are useful for exploring data that Tanium Clients cannot provide directly. You use reports in Tanium Reporting or other Tanium solutions to view virtual sensor data because the Interact Question Results page shows data only for non-virtual sensors. For example, Tanium Benchmark provides a report that uses the virtual sensor Tanium Risk Score to show risk metrics for endpoints. Benchmark derives the sensor data from multiple sources that do not exist on the endpoints.
Solutions might also generate virtual sensor data based on data from multiple non-virtual sensors. For example, Tanium Data Service (TDS) uses three non-virtual sensors to generate data for the virtual sensor Endpoint ID. Endpoint ID is a useful identifier for endpoints because its value is more likely to be unique and stable for each endpoint than the individual values of the three non-virtual sensors. For more information, see Tanium Interact User Guide: Endpoint identification sensors.
Virtual sensor creation and registration
Tanium solutions automatically create virtual sensors and register them with TDS. For example, Tanium Asset creates a corresponding virtual sensor when you add a custom entity, such as Custom Asset: Boot Time. A solution might also provide virtual sensors along with other content when Tanium Cloud imports the solution during the initial setup of your environment or when you add the solution to your Tanium license. For example, Tanium™ Criticality provides the Endpoint Criticality with Level sensor, which you can add to a report to view endpoint criticality levels and rules.
Virtual sensor limitations
Virtual sensors have the following limitations:
|
Limitation |
Description |
|---|---|
|
Sensor management |
All virtual sensors are predefined and you cannot perform the following management tasks on them:
|
|
Questions |
You cannot use Tanium Interact or Tanium Ask to issue questions with virtual sensors. This limitation also applies to the filtering questions that you configure in the targeting criteria of actions. |
|
Computer groups |
You cannot use virtual sensors to define endpoint membership in computer management groups and filter groups. |
Solution-generated sensor attributes
Each sensor result provides one or more attributes (columns) of data that you can see on the Question Results page in Tanium Interact or in reports that Tanium Reporting and other solutions provide. In most cases, Tanium Clients run the sensor script to provide all the attribute data when you issue a question that uses the sensor. However, for certain sensors, Tanium solutions add attributes with data that Clients do not provide. These solution-generated attributes are useful for exploring data that is not available on endpoints.
You use reports in Tanium Reporting or other Tanium solutions to view sensors with solution-generated attributes. The Interact Question Results page shows data only for sensors with exclusively Client-provided attributes.
Example: Sensor with Comply-generated attributes
Tanium Data Service (TDS) periodically collects data from Tanium Clients for the Comply - Compliance Status sensor because Tanium Comply automatically registers that sensor with TDS. The Clients return values for all the sensor attributes, including the Check ID, which identifies compliance rules. Comply uses the Check ID values to find attributes related to compliance standards, benchmark profiles, and benchmark rules. The data for these additional attributes comes from compliance standards that are imported into Comply rather than from data that exists on Clients. Comply adds the attributes to a sensor named Comply - Compliance Findings Details, which is available for reports but not for Interact questions.
Limitations for sensors with solution-generated attributes
Sensors with solution-generated attributes have the same limitations as virtual sensors. For more information, see Virtual sensor limitations.
Sensor results caching and refreshing
Tanium Clients re-run sensors at a configurable frequency to update results. The frequency affects the accuracy of results and affects resource consumption on endpoints.
In a sensor configuration, the Max Sensor Age setting specifies the maximum time for which the Tanium Client can use a cached result for the sensor, instead of re-executing it for a fresh result, when answering questions. For example, the maximum age for the File Size sensor is 15 minutes by default. When a Client receives a question that executes the File Size sensor, it caches the result. Within the next 15 minutes, if the Client receives another question with the File Size sensor, it returns the cached result. After 15 minutes, if the Client receives a question with the File Size sensor, it re-executes the sensor script to return a fresh result.
To improve the accuracy of results, use shorter ages for sensors with values that change frequently, such as status and utilization sensors. To reduce unnecessary CPU usage on endpoints, use longer ages for sensors with values that typically do not change frequently, such as the chassis type or Active Directory domain membership.
By default, the Max Sensor Age applies to all questions that use the sensor. To set a different age for the sensor in a specific question, see Maximum Data Age.
Client restarts do not cause a re-evaluation of the elapsed time for the Max Sensor Age.
Sensor data types
A sensor configuration specifies the data type for the values that the sensor returns. Choosing the correct type is required for Tanium Cloud to properly evaluate results and sort them in results grids. For example, if you issue the question Get Uptime > "10 days", Tanium Cloud evaluates the greater than (>) operation based on the Time Duration type of the Uptime sensor. This ensures that Tanium Cloud returns results only for endpoints that rebooted more than 10 days ago. If that sensor used the Text result type instead, Tanium Cloud would evaluate the operation alphabetically and return results such as 2 days.
For a multi-column sensor, set the Result Type to Text and then select a specific result type for each column. For example, the Tanium Client Dump Files sensor returns both Date/Time (WMI) and Integer result types.
Different sensors can return values in different units even if the sensors use the same result type. For example, the Tanium Client CPU sensor returns a percentage value while the CPU Speed Mhz sensor returns a megahertz value, even though both sensors use the Numeric result type.
The following table describes the sensor result types.
|
Type |
Description |
|---|---|
|
Text |
An alphanumeric text string. For example, the Computer Name sensor returns a string such as workstation-1.company.com. |
|
File Size |
The size of the result, including both the number and units. For example, the Page File Details sensor returns size values for the page files on a Windows endpoint, such as 11264 MB for the Size On Disk.
Tip: To return size values without the associated units, select Integer as the result type. For instance, a sensor that returns file sizes and uses Integer as the result type displays only the number of bytes: 1048576 instead of 1 MB, as an example.
|
|
IP Address |
One or more IPv4 and/or IPv6 addresses. For example, the Tanium Client IP Address sensor returns the IP address (such as 192.168.1.1) that a Tanium Client is using to communicate with Tanium Cloud. |
|
Version |
The version of an operating system, file, application, or other component on an endpoint. For example, the NET Version sensor returns the full version numbers of all .NET installations, such as version 4.5.51641. |
|
Numeric |
A number that can have decimals and a positive or negative value. For example, the Tanium Client CPU sensor returns the percentage of CPU usage that the Tanium Client process currently uses on an endpoint, such as 1.4.
Tip: For sensors that return unsigned whole numbers, select the Integer result type instead.
|
|
Date/Time (RFC822) |
A date-time string in RFC-822 format. For example, the OS Boot Time sensor returns the date and time when an endpoint operating system last booted. |
|
Date/Time (WMI) |
A date-time string in Windows Management Instrumentation (WMI) format. For example, the Tanium Client Dump Files sensor returns the date and time when a Tanium Client dump file was created on an endpoint, such as 2017-09-13T18:29:22.412Z. |
|
Time Duration |
A time range. For example, the Uptime sensor returns the number of days since the last reboot of an endpoint, such as 48 days or Less than 1 day. Results can include units other than days (such as 42 minutes or 8 hours) and can include multiple units (such as 2 years, 3 months, 18 days, 4 hours, 22 minutes and 3.67 seconds). |
|
Integer |
An unsigned whole number, which excludes decimal values and negative values. For example, the RAM Slots Unused sensor returns the number of empty, unused RAM slots, such as 2. |
View sensor details
Viewing sensor attributes and runtime metrics can help you to determine if new sensors are necessary and to manage or troubleshoot existing sensors. For example, viewing the script that a sensor runs on endpoints can help you troubleshoot unexpected question results. A high runtime indicates the sensor consumes more endpoint resources than most sensors typically do.
Clone a sensor
Cloning is useful when you need to:
-
Create a modified version of a predefined sensor from a Tanium content-only solution.
Note: Do not modify a predefined sensor. -
Create a new sensor with settings that differ only slightly from an existing sensor. This is often easier than creating a new sensor from scratch.
Review Custom content development and Sensor scripts before you clone a sensor.
Perform the following steps to clone a sensor:
-
From the Main menu, go to .
-
Use the search and column sorting features to find the sensor that you want to clone.
-
Select the sensor and click Clone.
-
Configure the settings as described in Create a sensor and click Save.
Create a sensor
Create a custom sensor for endpoint data collection scenarios that Tanium-defined sensors do not address. For example, you might create a sensor to collect information about a specific application installed on endpoints. As another example, you might create a sensor that is similar to an existing sensor except for the content set assignment to ensure that only certain users can use the sensor in questions.
Review Custom content development and Sensor scripts before you perform the following steps to create a custom sensor.
Edit a sensor
Limitations and best practices for editing sensors
You can edit all the settings of all sensors except:
-
Tanium reserved sensors, which are core system sensors that include Computer Name, Action Statuses, Computer ID, and Download Statuses. For reserved sensors, edits are restricted to the Max String Age and Max Strings settings to prevent users from inadvertently compromising critical Tanium operations, such as action deployment, that depend on the sensors.
-
Sensors that are configured for endpoints managed using Entity providers. You cannot edit any attributes for these sensors.
-
Read-only sensors that are managed by Tanium. You can clone these sensors and edit the copy.
Edit the sensor configuration
Review Custom content development and Sensor scripts before you edit a sensor. Before you edit a parameterized sensor, see Parameterized sensors for information about the impact on saved questions and computer groups that use the sensor.
- From the Main menu, go to .
- (Optional) Use the search and column sorting features to find the sensor that you want to edit.
- Click the sensor Name.
- Click Edit Mode, configure the settings described in Create a sensor, and click Save.
Move sensors between content sets
You can move sensors in bulk between content sets to accommodate RBAC changes in your organization. For example, you might want to move certain sensors to a content set that only highly privileged users can access.
- From the Main menu, go to .
- Select the sensors and click Move to Content Set.
- Select a content set and click Confirm.
Export sensors
Export sensors
Export sensors as a file in the format required for your workflow:
-
CSV
You can use any application that supports CSV format to display the same sensor attributes (columns) as the Console Sensors grid shows and then customize the display. For example, you can use Microsoft Excel to create charts based on sensor attributes.
-
JSON
You can export multiple sensor configurations as a JSON file. Exporting configurations is useful if you want to review them outside Console in an application that supports JSON. You must be assigned a role with the Export Content permission to export a JSON file. The Admin reserved role has export permissions.
Perform the following steps to export sensors:
Copy sensor configuration details
Copy information from the Sensors page to your clipboard to paste the information into a message, text file, or spreadsheet. Each row in the grid is a comma-separated value string in the content that you copy.
- From the Main menu, go to .
- Perform one of the following steps:
- Copy row information: Select one or more rows and click Copy
.
- Copy cell information: Hover over the cell, click Options
, and click Copy
.
- Copy row information: Select one or more rows and click Copy
Delete sensors
Deleting a custom sensor might be warranted in certain scenarios. For example, Tanium users and solutions might not need the sensor anymore, the sensor might not behave as expected on endpoints, or another sensor might use fewer endpoint resources to collect the same data.
Perform the following steps before you delete a sensor:
- Determine if any content uses the sensor and assess the impact of removing or replacing the sensor. For example, a saved question or a report might use the sensor to collect data from endpoints.
- Decide which sensor is a suitable replacement or create a replacement if necessary. This step is required only if you must recreate or reconfigure the content that uses the sensor you plan to delete. For more information, see View sensor details and Create a sensor.
- Reconfigure or recreate scheduled content to remove dependencies on the sensor and replace it if necessary.
Perform the following steps to delete a sensor:
-
From the Main menu, go to .
-
Select the sensor and click Delete
.
Manage sensor quarantines
Overview of sensor quarantines
Enforcing sensor quarantines prevents sensors from running on an endpoint for the current question or action if those sensors exceeded the runtime timeout during a previous question or action. Quarantines are useful for limiting the impact on endpoint resources, such as CPU utilization, when questions and actions use excessively long-running sensors. The non-configurable timeout is set to one minute.
By default, quarantines are not enforced: after a sensor exceeds the one-minute timeout, the Tanium Client stops the sensor from running any longer and assigns it quarantined status but the sensor still runs for future questions or actions until it finishes or times out again. When quarantines are not enforced, the Client uses quarantined status just to record that the sensor timed out. After the Client assigns quarantine status, the status does not automatically revert to unquarantined if the sensor later finishes running for another question or action. You must manually Remove sensors from quarantine to change their status. Otherwise, the Quarantined Sensors page shows the cumulative results for any sensor that ever timed out on an endpoint since the initial Tanium Client installation.
The Tanium Client stops any sensor at the moment it exceeds the timeout regardless of whether you enable enforcement. Each Client quarantines sensors and enforces the quarantines independently. Consequently, a sensor might be quarantined on some endpoints and not on others. When a Client quarantines a sensor, Interact shows the following message in the Question Results grid: TSE-Error: Sensor evaluation timed out.
When you issue a question that uses a sensor that is already quarantined and enforcement is enabled, the Question Results grid displays TSE-Error: The sensor is quarantined. The Tanium Client adds entries to the Client logs and sensor history logs when it quarantines a sensor or prevents an already quarantined sensor from running.
If temporary sensors exceed the one-minute timeout, the Tanium Client quarantines the original sensor as well as all current and future temporary sensors that are based on the original sensor. Tanium Cloud creates a temporary sensor for questions that use parameterized sensors. For more information, see Questions with parameterized sensors.
View quarantined sensors
To see the attributes of quarantined sensors:
Remove sensors from quarantine
You can use Tanium Console to unquarantine a sensor on some or all endpoints. After you unquarantine a sensor, the Tanium Client allows it to run for subsequent questions and actions, but will stop and quarantine the sensor again if it exceeds the timeout.
If you modify a sensor, Tanium Clients that receive its new definition will automatically unquarantine that sensor.
Tanium Cloud cannot unquarantine sensors on endpoints that are offline. If you know that some endpoints might come online only at a later time, consider scheduling an action that uses the Un-Quarantine Sensor or Un-Quarantine Sensor (Non-Windows) package. For more information, see Deploying actions and playbooks in Console and Interact.
- From the Main menu, go to .
- Select the sensors and click Unquarantine.
- Select the Action Group that includes the endpoints where you want to unquarantine the sensors.
- Preview the affected endpoints and then click Unquarantine.
Enable or disable enforcement of quarantined sensors
After you enable quarantine enforcement, Tanium Clients do not answer questions that use quarantined sensors and those sensors do not run for actions. After you disable enforcement, Clients still quarantine sensors and log quarantine events, but do not prevent those sensors from running.
Configure the EnableSensorQuarantine setting on Clients to enable (1) or disable (0) the enforcement of quarantined sensors. For more information, see Tanium Client Management User Guide: Modify Client settings.
Export quarantined sensor details
You can export quarantined sensor details as a CSV file. When you open the file in an application that supports CSV format, it lists the sensors with the same attributes (columns) as the Console Quarantined Sensors grid displays. Displaying the grid in a CSV application is useful when you want to customize the display. For example, you can use Microsoft Excel to create charts based on sensor attributes.
Copy quarantined sensor details
Copy information from the Quarantined Sensors page to your clipboard to paste the information into a message, text file, or spreadsheet. Each row in the grid is a comma-separated value string in the copy.
- From the Main menu, go to .
- Perform one of the following steps:
- Copy row information: Select one or more rows and click Copy
.
- Copy cell information: Hover over the cell, click Options
, and click Copy
.
- Copy row information: Select one or more rows and click Copy
Manage sensor results collection
With Tanium Data Service (TDS), you can see the cached results that endpoints return for registered sensors. Tanium Cloud automatically collects results from registered sensors by issuing questions to all managed endpoints. TDS and Tanium solutions automatically register certain sensors and you can manually register other sensors. By default, TDS caches the results from each endpoint for 30 days after the last successful collection. You can view the cached results for both online and offline endpoints in Interact, Tanium Reporting, and any solution that provides Reporting dashboards.
For more information, see Managing sensor results collection through TDS.