Actions overview
The following sections provide an overview of Tanium platform actions that you deploy from Tanium Console or Tanium Interact to endpoints managed through Tanium Client. For information about deployments that you manage through other Tanium solutions, see Deployment types.
What is an action?
A Tanium action is a configuration object that you deploy to endpoints to manage a change on those endpoints. In the action configuration, you specify the package that performs the change, endpoint targeting criteria such as an action group, and deployment conditions such as scheduling. You can schedule the action to run immediately or in the future and as a one-time deployment or at recurring intervals. An adaptive action deploys in progressive phases called rings that you define in a deployment plan. A simple action deploys to all targeted endpoints in one phase.
Example: Action deployment use case
Consider a case where you are responsible for ensuring that the Tanium Client continues running on all endpoints that support it. You might start by issuing an Interact question to check if any endpoints provide users the permissions to uninstall the Client: Get Tanium Client Directory Permissions from all machines with Tanium Client Directory Permissions equals Not Restricted. Then you can deploy an action to run a package that allows only the SYSTEM account to uninstall applications in that directory: Client Service Hardening - Set SYSTEM only permissions on Tanium Client directory. If new endpoints with unrestricted permissions for the Client directory might join your network in the future, you can schedule recurring deployments to automatically restrict the permissions on those endpoints.
RBAC for actions
Actions can affect the security and health of endpoints. Therefore, when you configure role-based access control (RBAC) for deploying actions, consider which users need to manage changes on endpoints, which changes the users might apply, and on which endpoints the users have authority to make changes. Assign the following RBAC components to users, user groups, and personas to control action deployment:
-
Computer Groups
For example, some users in your Security Operations Center might be responsible for deploying vulnerability remediations to workstations, while a smaller set of users might be responsible for remediating servers. In this case, you can assign the All Workstations computer group to the first set of users and the All Servers computer groups to the second set.
-
Roles
For example, assigning a role with the Interact Execute action permission enables users to deploy actions that use packages in the Core Content set. That content set includes packages for many use cases, such as managing registry keys on Windows endpoints. If you plan to assign that role to users who also need the ability to quarantine endpoints, you can add Package read permission to the Threat Response content set, which contains packages for quarantining endpoints.
For more information, see Action management permissions and Configure RBAC for action users.
Action status and logs
When an action starts, the Client on each target endpoint runs the associated package and returns action status updates to Tanium Cloud. The Client also generates action-related logs that you can use to troubleshoot deployment issues. You can view the action status and logs in Tanium Console. For more information, see Monitor actions.
Action packages
A Tanium package comprises a command, a script, and any related files that are required to run an action on endpoints managed through Tanium Client. You select the package when you configure an action. For example, consider a case where you are troubleshooting issues related to Domain Name Server (DNS) updates on Windows endpoints. If you decide to restart the DHCP Client service on those endpoints, you can configure an action with the predefined Restart Service package and specify DHCP Client as the service to restart. For more information, see Managing packages for platform actions.
When you deploy an action, Tanium Clients download the associated package files and distribute the files among peers in the Client linear chains. Each Client stores package files for an action in the <Tanium_Client_installation_directory>/Downloads/Action_<ID> folder, where <ID> is the action identifier. For more information, see Tanium Client file distribution.
Action groups
An action group specifies the computer groups that an action targets. Each computer group specifies a collection of endpoints based on a question with sensors or based on a manual list. You must select an action group for each action to target only the endpoints that require the action and avoid unnecessary processing for other endpoints.
Each action group specifies the computer groups based on Boolean AND/OR logic. For example, to deploy an action that resets a registry key on Windows endpoints where the key is missing or incorrect, you might create an action group named Registry Key that joins the following computer groups with a Boolean OR.
|
Computer group name |
Membership definition |
|---|---|
|
Registry Key Not Found |
Registry Key Exists[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Tanium\Anykey] contains False |
|
Registry Value Not Correct |
( Registry Key Exists[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Tanium\Anykey] contains True and all Registry Value Data[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Tanium\Anykey,Value] not matches 1 ) |
For more information, see Targeting actions through action groups.
Action locks
Action locks prevent actions from running on an endpoint. You might want to deploy action locks if, for example, you encounter unexpected behavior on certain endpoints and want to suspend actions on them during debugging. For more information, see Locking down actions on endpoints.
Scheduled actions
Scheduled actions are actions that Tanium Cloud deploys at a future time or at intervals based on the values that you set for the following action settings:
-
Start At: Specify the date and time when Tanium Cloud first deploys the action.
-
Re-issue Every: Optionally, you can specify the frequency at which Tanium Cloud redeploys the action.
-
End At: Optionally, you can specify the date and time when Tanium Cloud stops redeploying the action regardless of the reissue interval.
Scheduled recurring actions address the following use cases:
-
The action is used to enforce policy or ensure good cyber hygiene in an environment. For example, the content-only solution Tanium™ Default Content contains several scheduled actions that periodically update tooling on endpoints, verify configuration settings are in place, and maintain the overall health of Tanium Clients in your deployment. Redeploying these actions at intervals ensures that any new endpoints that join your environment are protected and ready for Tanium operations.
-
You want to apply changes, such as software or configuration updates, to endpoints that might not be online during the initial deployment but that you expect to be online at some point between the Start At and End At dates.
-
Action approval is required and you are not certain that an approver will approve the action before its initial deployment expires.
You can also schedule one-time-only actions to deploy at a future Start At date to accommodate other events in your network. For example, you might schedule actions to start during a maintenance window on endpoints.
For more information, see Managing scheduled actions and action history.
Action approval
Some organizations have policies that require an approval process for deploying actions. Action approval ensures two-person integrity for managing changes on endpoints. When action approval is enabled, the signed-in user who deploys the scheduled action cannot also approve it. The action is on hold (pending) until another user approves it. The approving user must be assigned a role with Approve Action and Sensor read permissions.
For recurring (scheduled) actions, approval is a manual process only for the first deployment interval and is automatic for subsequent intervals. The approval remains in force until the End At date that is set in the action configuration or until another user modifies the configuration.
For more information, see Managing action approval.
Adaptive actions and simple actions
An adaptive (ring-based) action is assigned a deployment plan that defines the target endpoints and progression criteria for each ring that an action must progress through to complete successfully. Adaptive actions are useful for controlling action impacts, mitigating action-related disruptions, and protecting sensitive endpoints. For example, if an action reboots endpoints, you can stagger the deployment one ring at a time to minimize the overall disruption to your environment. For more information, see Ring-based deployment.
A simple (non-ring-based) action deploys in a single phase and therefore does not require a deployment plan. For example, you might decide that adding a custom tag to a subnet of endpoints constitutes a low-impact change that you can apply to the entire subnet in one deployment.
Policy actions
A policy action is a scheduled, recurring action that uses a saved question instead of a dynamic question and uses a from clause that ensures the action deploys only to endpoints that match the question condition. Policy actions are useful for ensuring that endpoints comply with policies, and are more efficient than other recurring actions at conserving network bandwidth and endpoint resources. For example, if your organization requires all Windows endpoints to have restricted permissions on the Tanium Client installation directory, you can schedule an action to restrict permissions based on the following saved question.
Get Tanium Client Directory Permissions equals Not Restricted from all machines with ( Tanium Client Directory Permissions equals Not Restricted and Is Windows equals True ).
In this example, only Windows endpoints with open permissions on the Tanium Client installation directory match the condition, and therefore only those endpoints download the required package Client Service Hardening - Set SYSTEM only permissions on Tanium Client directory and run the action to restrict permissions. By contrast, a scheduled action that is not a policy action runs on all the targeted endpoints at every scheduled interval, which unnecessarily consumes more network bandwidth and endpoint resources.
Tanium Cloud does not deploy a policy action to endpoints that were offline when it issued the saved question and that then come online while the action is in progress.
If you delete a saved question, Tanium Cloud continues reissuing it for any actions that use the question and continues recording the question in the Question History log, which you can view on the page.
Tanium Cloud performs the following steps at each scheduled interval for a policy action:
-
Evaluate whether the question results exceed the question expiration period (10 minutes). If no, Tanium Cloud uses the results that it cached the last time it issued the question. If yes, it reissues the question to collect new results.
-
Evaluate the question results to determine whether any endpoints match the question condition and belong to computer management groups that are assigned to the question owner:
-
Yes: Tanium Cloud deploys the action to the targeted action group. Within the group, only endpoints that match the question condition run the action.
-
No: The action does not deploy.
-
Action best practices
Minimize the impact of actions on network and endpoint resources by following best practices for the questions that define action targeting and computer group management rights.
Optimize questions for action targeting
The action deployment workflow starts with a question that you issue to identify the endpoints that require the action. Understanding how the question affects the targeting can help you optimize actions through the Best practices for action questions. Tanium Cloud deploys each action through a message that it sends to endpoints. The message contains all the action settings that you see on the Action Deployment page (see Configure action settings), including the Target Question that each Tanium Client uses to determine whether it must run the action. When you select rows on the Question Results page and click Deploy Action, Interact adds a sensor-based filter for each selected row to the from all machines with clause of the Target Question. Selecting more rows produces a longer Target Question and therefore a larger action message that requires more network bandwidth and endpoint resources to process.
Tanium Console limits the impact of any action on networking and endpoint resources by disabling the Deploy Action button if you select more than 100 rows on the Question Results page. You can avoid exceeding that limit, and further reduce resource consumption, by basing an action on a question that returns fewer result rows from the endpoints that require the action. You can also reduce resource consumption by constructing more efficient filters in the question syntax. The following examples illustrate how to achieve these efficiencies.
Example: optimizing the "Get" clause
Consider a case where you issue the following question to identify Windows endpoints where the Tanium Client is listed among applications that endpoint users are allowed to remove:
Get Computer Name and Tanium Client Uninstall Hidden from all machines with Is Windows equals true and Tanium Client Uninstall Hidden equals no
That question returns a result row for each endpoint, which is useful if you want to know the computer names of the affected endpoints:
However, that question might return too many rows to be useful for deploying an action that prevents endpoint users from removing the Client. The Target Question in the action would have a very long from clause if 100 endpoints required the action and you selected all 100 result rows for them. The following example shows how long the Target Question is even with just 5 endpoint results selected:
Get Computer Name and IP Address from all machines with ( All Computers and ( Is Windows equals true and Tanium Client Uninstall Hidden equals no ) and ( ( Computer Name equals Win2012R2-ADT and Tanium Client Uninstall Hidden equals No ) or ( Computer Name equals jrider-w10-6279.tanlab.local and Tanium Client Uninstall Hidden equals No ) or ( Computer Name equals w2012r2-cm-notms-1 and Tanium Client Uninstall Hidden equals No ) or ( Computer Name equals perf-nuc-win11 and Tanium Client Uninstall Hidden equals No ) or ( Computer Name equals qaa-taas-test-win10 and Tanium Client Uninstall Hidden equals No ) ) )
For every action, the Get clause in the Target Question is always Get Computer Name and IP Address regardless of the Interact question that you issued. The action uses the Computer Name and IP Address sensors to uniquely identify each target endpoint . The from clause of the Target Question always uses the sensors from both the Get and from clauses of the Interact question. Consequently, Computer Name is repeated in both the Get clause and from clause of the Target Question for this example.
To deploy an action in this case, you can issue a more elegant Interact question that replaces Computer Name with the Online sensor in the Get clause and omits the Is Windows sensor in the from clause:
Get Online from all machines with Tanium Client Uninstall Hidden equals no
When Online is the only sensor in the Get clause, the Interact question always returns a single result row with the value True regardless of how many filters you add to the from clause:
When you select the result row for this Interact question and click Deploy Action, Interact creates a much simpler Target Question than the example where you selected multiple rows:
Get Computer Name and IP Address from all machines with ( All Computers and Tanium Client Uninstall Hidden equals no and Online equals True )
Example: optimizing the "from" clause
The following example is another question that might be useful for analyzing information but is not optimized for actions. In this case, you want to deploy an action to all endpoints that do not have a high enough Google Chrome version installed, but first you want to see what versions are distributed across all the endpoints in your network:
Get Installed Application Version[Chrome] from all machines
If multiple endpoints have the same Chrome version, the Question Results page would aggregate the results by version instead of showing a row for each endpoint. However, if endpoints across your network have a broad range of versions, the page might still list too many result rows (potentially more than the 100 limit) to be suitable for action deployment. Even if you select only five rows and click Deploy Action, the Target Question will have a long from clause:
Get Computer Name and IP Address from all machines with ( All Computers and ( Installed Application Version[Chrome] equals 99.0.4844.74 or Installed Application Version[Chrome] equals 109.0.5414.168 or Installed Application Version[Chrome] equals 94.0.4606.81 or Installed Application Version[Chrome] equals 123.0.6422.78 or Installed Application Version[Chrome] equals 123.0.6312.123 ) )
To optimize the question for actions, you can again use the Online sensor in the Get clause and move the Installed Application Version[Chrome] sensor to the from clause as a filter:
Get Online from all machines with Installed Application Version[Chrome] < 124.0.6367.91
When you select the single result row (True) and click Deploy Action, Interact applies that version filter to a much simpler Target Question:
Get Computer Name and IP Address from all machines with ( All Computers and Installed Application Version[Chrome] < 124.0.6367.91 and Online equals True )
The following Interact question is the same as the previous example but has multiple sensor filters in the from clause:
Get Online from all machines with ( Installed Application Version[Chrome] > 124.0.6367.91 and Operating System contains Windows 10 and Tanium Client Subnet contains 192.168.0.0/24 )
The preceding Interact question still returns only one result row, which you can select to deploy an action with the following Target Question:
Get Computer Name and IP Address from all machines with ( All Computers and ( Installed Application Version[Chrome] < 124.0.6367.91 and Operating System contains Windows 10 and Tanium Client Subnet contains 192.168.0.0/24 ) and Online equals True )
The preceding Target Question remains simpler, and requires less processing on endpoints, then the Target Question that is based on multiple result row selections and only one filter.
Best practices for action questions
The following best practices enable you to construct Interact questions that minimize the complexity of the Target Question in an action:
-
Minimize result rows
Use a Get clause that returns only a few result rows, ideally just one, from all the endpoints that require the action. The preceding examples use the Online sensor, but you can use any other sensor that returns a few results that you can select from all the target endpoints. Avoid using sensors that return one result row per endpoint, particularly the Computer Name and IP Address sensors that produce duplicate filters in the Target Question.
-
Filter using the from clause
Add sensor filters to the from clause instead of the Get clause to specify endpoint targeting.
Optimize action groups and computer groups for targeting
The complexity of an action group and its assigned computer groups affect the size of the action message that Tanium Cloud sends to endpoints, and the message size affects the networking and endpoint resources that an action consumes. Resource consumption increases as you add more computer groups to an action group and as the targeting of those computer groups becomes more complex. Increasing the number and complexity of computer groups assigned to the user account that you use to deploy an action also increases the action message size and therefore resource usage. To optimize computer groups for action targeting, see Computer groups.
Conserving resources through action distribution
Tanium Cloud distributes actions to endpoints in batches. When you Configure action settings, you can use the Distribute Over option to randomize the distribution over the specified period to prevent spikes in network traffic or other resource consumption. For example, an action that depends on a sensor that queries Active Directory (AD) might cause a flood of traffic to the AD server unless the action is distributed over time. Similarly, an action that targets endpoints in a virtual machine farm might exhaust the shared CPU or memory resources if all endpoints simultaneously run a resource-intensive program.
When the Tanium Client receives an action from Tanium Cloud, the Client evaluates the action targeting criteria to verify that its endpoint is a target before calculating a Distribute Over delay to the action start time. Each Client sets a delay interval that ranges from zero to the Distribute Over value, which represents the maximum. After the delay, the Client starts running the action without re-evaluating the targeting criteria. The longer the delay between the targeting evaluation and action start, the higher the risk of the Client running an action for which the endpoint no longer qualifies. For example, an action might target endpoints with low disk space to run a package that removes data to clear space. An endpoint that has low disk space when the Client evaluates the targeting might no longer meet the low space threshold by the time the action starts.
The Client uses the Distribute Over delay to calculate the action expiration period. Therefore, the Distribute Over value affects the action status that the Client reports to Tanium Cloud. For more information, see Action states.
Action deployment overview
Configure platform settings, content, and role-based access control (RBAC) to optimize action deployment before users start configuring actions. Monitoring action status and history is also important to ensure that actions are having the expected effect and to troubleshoot otherwise. The three stages of action deployment are:
Administrative setup for actions
Typically, you perform the following tasks once as part of the initial setup of a Tanium deployment. However, you might repeat some tasks if your environment changes. For example, you might update RBAC configurations to reflect changes to roles and personnel.
Actions in the Default Content and Core Content solutions might initially target the predefined action groups Default – All Computers or Default, which specifies the No Computers computer group.
Review and edit global settings for actions
Review and, if necessary, edit global settings that affect action deployment.
-
From the Main menu, go to to assess whether the default values of the following global settings suffice for your Tanium deployment. Update any settings that require custom values.
Tip: On the Platform Settings page, Expanda setting to see its full description.
Table 2. Global settings for actions Setting
Description
Require Action Approval
Bulk Approval
Enable action approval if your organization implements two-person integrity. These settings are disabled by default. For more information, see Enable or disable action approval.
Action Target Estimate Minimum
After you issue a question to identify endpoints that require an action, you cannot deploy the action until the percentage of responding endpoints reaches the estimated percentage. The default is 20%. For more information, see Configure and deploy actions.
Prompt Estimate Threshold
When you deploy an action and the number of affected endpoints exceeds the threshold, Tanium Console prompts you to confirm the deployment before proceeding. The default is 100. Changing the value to 0 causes Console to prompt users whenever they deploy actions regardless of the number of affected endpoints.
Run Commands in Process Group
Enables you to control whether package commands run in a process group. This setting is disabled by default. For more information, see Launch this package in a process group.
Restricted Targeting
Sets the No Computers computer group as the action group target during initial configuration of Tanium solutions. This setting is disabled by default. For more information, see Tools deployment and restricted targeting.
-
Review the following advanced global settings to assess whether their default values suffice for your Tanium deployment. These settings control the maximum size of the cache that the Tanium Client uses to store file chunks for packages and Client API downloads. For more information, see Chunk caching. These are global settings and therefore apply to all Tanium Clients. You cannot view or edit these settings at the global (environment-wide) level in Tanium Console, but you can override the settings for specific Clients. For example, you might have critical assets that need more resources for running non-Tanium processes or assets with very limited resources such as virtual desktop infrastructure (VDI) endpoints. If each setting applies a different cache limit on a Client, the Client enforces whichever setting specifies a lower limit. To override the global settings for cache size, configure the settings locally on specific Clients. For more information, see Tanium Client Management User Guide: Tanium Client CLI and Client settings.
Table 3. Global settings for Tanium Client chunk cache Setting
Description
ClientCacheLimitInMB
Controls the absolute amount of disk space that a Client can use for caching chunks. The value is in megabytes (MB) and the default is 2048.
ClientCachePercentageCapTimes100
Controls the maximum percentage of free disk space that a Client can use for caching chunks. Multiply the target percentage by 100 to determine the value. For example, the default value 1000 specifies that the cache limit is 10% of free disk space. If you change the value on a Client, the Client checks the free disk space and adjusts the cache size only when you restart the Client or wait for the next Client reset interval, which is a random interval typically in the range of 2 to 6 hours.
Review and customize action content
Review the content that is required for action deployment. If the predefined content does not suffice for the actions that you expect users to deploy, create customize content.
|
Content type |
Description |
|---|---|
|
Content sets |
Content sets contain the content that you create. When you configure user roles for action deployment, you assign permissions to content sets to control which content users can access. For example, if you create a package that updates files on data center servers, you can assign it to a content set for which access is restricted to users who have a role that allows data center file management. For more information, see Managing access to content through content sets. |
|
Packages |
A package configuration includes settings, a command, a script, and any other files that are needed to orchestrate an action on an endpoint. For example, you might create a package that updates a specific file to a specific version. For more information, see Managing packages for platform actions. |
|
Sensors Saved questions |
You use sensors and saved questions to identify the endpoints that require action. For example, you might create a saved question with the File Version sensor to identify which endpoints have a particular version of a file. For more information, see Managing sensors for collecting endpoint data and Managing saved questions in Console and Interact. |
|
Filter groups |
You use filter groups to:
For more information, see Managing filter groups for filtering questions and results. |
|
Deployment plans |
A deployment plan defines the ring set that an adaptive action must progress through to complete successfully, along with the target endpoints and progression criteria for each ring. For more information, see Managing deployment plans for ring deployments. Before you add plans, be sure to understand all the components and timing factors of ring-based actions, as described in Ring-based deployment.
Note: Simple actions do not use deployment plans.
|
Configure RBAC for action users
Review the predefined RBAC for deploying actions and customize the RBAC as necessary. RBAC includes roles, users, user groups, personas, computer management groups, filter groups, and action groups.
Configure downloads authentication
Configure downloads authentication if Tanium Cloud must establish trust with remote sources from which it downloads package files for actions. For example, Tanium™ Patch downloads patches from repositories such as the Red Hat Content Delivery Network to deploy to Linux endpoints. For more information, see Enabling authentication between Tanium Cloud and remote systems.
Configure and deploy actions
Perform the following steps for each new action:
Monitor actions
Track the status of actions to ensure that they are configured correctly and deploy as expected, and to Troubleshoot actions if necessary.
View action status and settings
Troubleshoot actions
If issues occur during action deployment, the following tasks can help you to troubleshoot. Record the action IDs of the actions that you want to troubleshoot before reviewing logs. The Action History, Scheduled Actions, and Action Status pages all show action IDs. For more information, see Track action IDs.
For issues on Tanium Clients, investigate:
-
Log messages:
-
View action logs for multiple endpoints through Tanium Console: see Investigate action-related issues through logs.
-
View action logs for a specific endpoint: see Tanium Client Management User Guide: Review action logs and associated files to troubleshoot actions and packages.
-
Troubleshoot actions, audit actions, or review action history logs: see Tanium Client Management User Guide: Review action history logs to troubleshoot or audit actions.
-
-
Action locks: Verify whether action locks are turned on by issuing the saved question Clients That Cannot Take Actions - Action Lock On. For more information, see Issue a saved question and Locking down actions on endpoints.
-
Sensor quarantines: Verify whether the actions use sensors that are quarantined on the Clients and, if appropriate, remove those sensors from quarantine. For more information, see Overview of sensor quarantines.
For issues on Tanium Cloud, investigate:
-
Package files: Review details about package files associated with the action and, if necessary, re-download the files if they are outdated. For more information, see Re-download package files.
-
Certificates: Verify the validity of the certificates that Tanium Cloud uses when downloading packages from remote sources. Update the certificates if necessary. For more information, see Enabling authentication between Tanium Cloud and remote systems.