Actions overview
The following sections provide an overview of Tanium platform actions that you deploy from Tanium Console or Tanium Interact. 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 the Tanium Server. 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 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 the Tanium Server 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 the Server first deploys the action.
-
Re-issue Every: Optionally, you can specify the frequency at which the Server redeploys the action.
-
End At: Optionally, you can specify the date and time when the Server 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.
Simple actions
A simple action deploys in a single phase.
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. For information about actions that deploy through rings, see Adaptive actions.
Adaptive actions
An adaptive action deploys through a sequence of progressive phases called rings.
An adaptive (ring-based) action is any action that has a deployment plan assigned, in contrast with simple (non-ring-based) actions that deploy in a single phase. You deploy an adaptive action through a sequence of progressive phases called rings instead of through a single phase. A ring defines the target endpoints for each phase and the criteria that the deployment must meet on those endpoints to progress to the next phase. You configure each ring and the ring set (sequence) in a deployment plan. When you create a deployment for an action that must progress through a ring set, you assign a deployment plan to the deployment.
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. You can deploy each Tanium platform or Deploy (software) action as an adaptive action. Adaptive actions are designed for autonomous deployment, but you can customize, monitor, and control their deployment as necessary.
Tanium Automate playbooks enable you to automate reusable, event-driven workflows that run actions and other tasks across multiple Tanium solutions. Playbooks streamline your business processes, improve productivity, and reduce human errors by minimizing or eliminating the manual effort to create, perform, and monitor routine tasks. For more information, see Deploying actions and playbooks in Console and Interact and Tanium™ Console.
Consider the following aspects and components of adaptive actions before you configure and deploy them:
Advantages of adaptive actions
Adaptive actions provide the following advantages over simple actions.
Testing and restriction of action impacts
You can limit any adverse impacts that an action might have on your environment by assigning endpoints to rings based on progressive levels of importance. For example, the first ring might target only test endpoints that do not affect regular operations in your organization. You can configure stricter progression criteria in subsequent rings to ensure that a deployment is safe before it reaches more critical or sensitive endpoints. Progression criteria control automatic promotion through the rings, but you can manually pause or stop promotion for the sake of troubleshooting, as described in Stop, pause, resume, or end deployments and playbook runs. You can also manually progress a deployment to the next ring if circumstances warrant overriding progression criteria failures, as described in Manually progress deployments through rings.
Mitigation of action-related disruptions
An action might require unavoidable disruptions. An adaptive action staggers the deployment one ring at a time to minimize the overall disruption to your environment. Rings also provide control over the timing of progression. For example, if installing an application has an impact on endpoints that might take up to two hours to accurately measure, you can specify a Wait interval of two hours before the Tanium Server evaluates the progression criteria.
Protection for sensitive endpoints
Adaptive actions enable you to defer action deployment for specific endpoints until the last ring. You can configure the strictest progression criteria before the last ring to ensure it is the safest ring with respect to action impacts. Deferral is useful for endpoints that you consider sensitive from a security viewpoint or that serve critical functions in your environment. For more information, see Deferred endpoints.
Deployment types
You can use ring-based deployment for the following deployment types by assigning a deployment plan to the associated action:
-
Deploy: Packages that install, update, or remove software. This deployment type is available only if Tanium Deploy is installed in your environment. For more information, see Manually deploying software.
-
Platform action: Actions that you deploy through the following Tanium solutions:
-
Interact: For example, you can deploy actions from the Question Results page. For more information, see Deploying actions and playbooks in Console and Interact.
-
Console: For example, you can deploy actions from the Packages page or Client Status page.
-
Reporting: You can deploy actions from reports, dashboards, and the Endpoint Details page. Dashboard actions are also available in workbenches outside of Reporting. For example, Tanium Guide provides access to Tanium Guardian dashboards for resolving emerging issues. For more information, see Tanium™ Reporting.
-
Deployment plans
A deployment plan defines the sequence of rings (ring set) that an action must progress through to complete successfully, along with the target endpoints and progression criteria for each ring. You assign the plan when you configure an action deployment, such as for remediating an emerging issue. For more information, see Managing deployment plans for ring deployments.
Endpoint targeting
The following factors determine which endpoints are the targets for an adaptive action in any single ring:
The following diagram illustrates how an action targets only the endpoints for which all the preceding factors apply during deployment in any particular ring.
Ring-defined targets
In a deployment plan, you assign endpoints managed using Tanium Client to each user-defined ring based on filter group membership (custom plans) or a percentage of the total endpoints in your environment (dynamic plans). When a deployment starts in a user-defined ring, it targets assigned endpoints that also meet the Action targeting criteria, minus any Deferred endpoints. In the predefined Last ring (All Targeted Computers), the deployment targets all endpoints that the action targeting criteria specify, including any deferred endpoints.
In any single deployment, an action deploys only once to each endpoint across all rings. For example, consider a deployment plan in which you assign the All Servers filter group to Ring A and the All Windows group to Ring B. When deployment starts in Ring B, the action runs on Windows workstations but not on Windows servers because the servers already ran the action in Ring A.
Online and offline endpoints
During deployment in a ring, an action excludes any offline endpoints that are assigned to the ring. If the offline endpoints go online in a subsequent ring, the action deploys to those endpoints then. For example, consider a deployment plan in which you assign the All Servers filter group to Ring A and the All Workstations filter group to Ring B. If servers W3 and L3 are offline during deployment in Ring A but come online
during deployment in Ring B, the action runs on W3 and L3 in Ring B even though those servers are not members of the All Workstations group.
When you view endpoint counts for rings in a deployment plan configuration, those counts also exclude offline endpoints. The counts in a deployment plan might differ from the counts during deployment if some endpoints go online or offline between the times when you view the deployment plan and when deployment starts.
Action targeting criteria
The Deploying actions and playbooks in Console and Interact in an action applies as a filter to endpoint targeting during deployment. However, the filter does not apply when you view a deployment plan configuration. The following examples illustrate how action targeting can create discrepancies in the endpoint counts that you see in custom or dynamic deployment plans compared to the counts during deployment.
Example: Custom deployment plan
If you assign the All Windows filter group to Ring A in a custom plan, the plan shows the count for all Windows endpoints in Ring A. If you select the plan for an action that targets the All Servers computer group, the action deploys in Ring A only to Windows servers because only Windows servers are members of both the All Windows and All Servers groups.
Example: Dynamic deployment plan
If you configure a dynamic plan with Ring A targeting 25% of endpoints, in an environment that has a total of 1,000 endpoints, for an action that targets the All Servers computer group containing 100 endpoints (10% of the total), the Tanium Server applies targeting logic in the following sequence:
-
The Tanium Server randomly selects 250 endpoints as the Ring A targets. The number of servers among the 250 might be more or less than 25 (10% of 250) because the selection is random. The endpoint selection applies only to the current instance of the Ring A deployment. If you deploy the same action in the future, the endpoint selection is again randomized and not based on selections in the earlier deployment. For example, the 25% of selected endpoints might include 15 servers and 235 non-servers when the deployment first runs in Ring A but then include 50 servers and 200 non-servers in the next deployment to that ring.
-
The Server applies the action targeting criteria as a filter to the endpoints selected for Ring A in the previous step. In this example, if only 15 of the randomly selected 250 endpoints are servers, then the action deploys to only 15 endpoints in Ring A. A key point is that, due to the variability of random selection, each instance of the deployment in this example might target from 0 to 100 servers in Ring A.
Computer group assignments
The computer management groups that are assigned to your user account or persona also control which endpoints a deployment targets. For example, if you sign in as a user who is assigned only the All Servers group and you deploy an action that targets the All Windows group, the action deploys only to Windows servers, not Windows workstations.
First ring
When an action starts, it does not have to meet any progression criteria to deploy to endpoints in the first ring of a deployment plan. Therefore, when you configure the first ring, consider assigning only endpoints on which unforeseen action impacts cannot disrupt your production environment.
Last ring
In every deployment plan, a predefined ring named All Targeted Computers is always the last ring regardless of how many custom rings you add. You cannot edit or delete All Targeted Computers, or change its position in the ring sequence. The targeting criteria that you configure in an action applies as a filter to All Targeted Computers. All Targeted Computers includes any Deferred endpoints that are configured in the deployment plan.
Ring progression criteria
In a deployment plan, you configure progression criteria in each ring definition except the last ring, as described in Rings and progression criteria. The criteria define the action results that endpoints must return for the deployment to progress to the next ring. Endpoint results must meet all the criteria to progress. However, for the sake of modularizing deployment plans, you can add criteria that apply only to a specific deployment type without affecting other types. For example, if a plan has criteria that are specific to Tanium Deploy (software) deployments and you assign the plan to a Tanium platform deployment, the deployment ignores the Deploy-specific criteria. For more information, see Deployment plan types.
Progression criteria evaluation
Progression criteria are not cumulative across rings. After deployment ends in the current ring, the Tanium Server evaluates action results only for that ring to determine if the deployment can progress to the next ring. The evaluation applies to all endpoints that ran the action in the ring, even if some of those endpoints subsequently go offline by the time the evaluation occurs. The evaluation also includes endpoints that the current ring targets because they were offline during deployment in the previous ring, as described in Endpoint targeting.
For platform actions, The Tanium Server evaluates progression criteria for each ring only once after the Wait interval ends. Some endpoints might run the action, evaluate the progression criteria, and return evaluation results after the Wait. However, the Server does not re-evaluate the criteria or change whether the deployment progresses based on post-Wait results.
For Tanium Deploy (software) deployments, you can select whether The Tanium Server evaluates progression criteria for each ring only once or periodically after the Wait interval ends. For more information, see Default Criteria for Progression.
Progression criteria descriptions
The following tables describe the progression criteria:
Percentage values are relative to the total number of online endpoints that a ring targets.
|
Criteria |
Description |
|---|---|
|
The following progression criteria have an impact on the time limits for deployments. For more information, see Deployment timing factors and maintenance windows. |
|
|
Wait |
This is the amount of the time that a deployment must wait in a ring before the Tanium Server evaluates the other criteria. A Wait value is required in every deployment plan, but you can enter 0 to specify no wait before the Server starts evaluating the criteria. Criteria evaluation is more likely to accurately represent endpoint states if the wait is longer. The Server evaluates the other criteria based on data that Tanium Clients return after measuring the impact of an action. Setting a wait interval gives Clients time to return more accurate data because not all action impacts are instantaneous. For example, if an action installs an application, CPU and memory usage might spike during installation but then return to normal later. Also, the application might run normally at the moment installation finishes but then crash after extended use. The deployment type determines when the wait interval starts:
Note: You can Skip the wait intervals during deployment if you decide an action is urgent.
|
|
Execution Success Rate |
The percentage of endpoints that successfully completed the action must equal or exceed the specified value. When you configure a deployment plan, you can select the Ignore pending endpoints option to evaluate results only from endpoints that have returned a Completed (successful) or Failed status for the action. This option is useful if certain actions might take longer than expected to complete on some endpoints and you don't want the delay to prevent ring promotion. For example, you might want to exclude results from endpoints that return Pending status because they are waiting for a maintenance window to complete an action. |
|
Minimum Endpoints |
The number of endpoints that attempted the action must equal or exceed the specified value. An action counts as attempted regardless of whether it is completed (successful), failed, or pending (such as when endpoints are waiting for a maintenance window). When you configure a deployment plan, you can select the Ignore pending endpoints option to evaluate results only from endpoints that have returned a Completed or Failed status for the action. This option is useful if the number of endpoints that return another status, such as Pending, might skew the evaluation results for other progression criteria. For example, you might issue a deployment in which 5 endpoints return Failed, 0 endpoints return Completed, and 100 endpoints return Pending. If the evaluation includes pending endpoints and the Execution Success Rate is set to 90%, the deployment still progresses to the next ring even though the probability is high that the action will fail on many of the 100 endpoints that return Pending. |
|
Criteria |
Description |
|---|---|
|
No Unexpected Reboots |
The percentage of endpoints that unexpectedly rebooted after patch installation must not exceed the specified value. This setting enables you to evaluate the impact of an action in the following scenarios:
|
Progression criteria status
When you Analyze and manage a single action or playbook run, you can see the progression criteria status for each endpoint and for all the endpoints in a ring.
|
Status |
Description |
|---|---|
|
Failed |
|
|
Passed |
|
|
Pending |
This status applies only at the ring level and indicates that the evaluation has not yet started or is in progress. Endpoints do not return criteria status until they finish evaluating the criteria. |
|
Not Applicable |
This status applies only at the ring level and indicates that specific criteria do not apply to the current deployment. For example, if you add the Memory Usage High criterion to a deployment plan and assign the plan to a Tanium platform deployment, that criterion does not apply because platform actions do not deploy software. Endpoints do not evaluate non-applicable criteria. |
Deployment timing factors and maintenance windows
Consider the following timing factors before you configure rings in a deployment plan or assign a plan to actions.
|
Time factors |
Description |
|---|---|
|
Maintenance windows |
Endpoints can run Deploy (software) deployments only within a maintenance window if you configure windows for those deployment types. For more information, see: Maintenance windows might cause a deployment to enter a Failed state and require a user to manually progress the deployment to the next ring. For more information, see Example: Deploy (software) deployment timing. |
|
Maximum deployment time |
The maximum period for a ring-based deployment is 90 days regardless of how many rings are in the associated deployment plan. If the deployment expires after starting in a ring, it continues deploying to endpoints in that ring but does not progress to the next ring. You can check the Expiration date for a deployment in the Summary section of the Deployment Details page. For more information, see Analyze and manage a single action or playbook run. |
|
Minimum deployment time |
The minimum total time that an action requires to deploy through all the rings is the cumulative total across all the rings in the deployment plan. Therefore, do not use rings for deployments in which the total deployment time might exceed the 90-day maximum. For example, 90 days might not suffice if you have a Tanium Deploy maintenance window that allows deployments for only a few hours on one day of each month. |
|
Action runtime (platform deployments only) |
When a platform action starts deploying to endpoints in a ring, the runtime is the period during which the action remains open. When the action expires, endpoints can no longer run the associated package command. The runtime is the sum of the Command Timeout and Download Timeout in the package. |
|
Progression criteria |
The following ring progression criteria affect the timing of ring progression:
|
|
Method of evaluation (Deploy deployments only) |
You can specify whether the Tanium Server evaluates progression criteria periodically or only once to determine whether a Deploy (software) deployment can proceed to the next ring. For more information, see Default Criteria for Progression. |
Example: platform action timing
For platform actions, the total time that is required for endpoints in a ring to pass the progression criteria is the action runtime plus the Wait value. For example, consider an action deployment with the following settings:
-
Package settings:
-
Command Timeout = 2 minutes
-
Download Timeout = 10 minutes
-
-
Ring 1 (deployment plan) settings:
-
Wait = 60 minutes
-
Execution Success Rate = 90%
-
Assigned Endpoints = 1,000
-
In this case, 900 endpoints in Ring 1 (90%) must successfully complete the action within 72 minutes for the deployment to progress to Ring 2 because the total time for endpoints to pass the progression criteria is: 2 + 10 + 60 = 72 minutes.
Example: Deploy (software) deployment timing
For Deploy deployments, the Wait interval for a ring starts as soon as deployment starts in that ring. The Wait interval must be small enough that the minimum number of endpoints can attempt and/or complete the action within any maintenance windows that are configured.
For example, consider a Deploy action deployment with the following settings:
-
Ring 1 (deployment plan) settings:
-
Wait = 4 hours
-
Execution Success Rate = 90%
-
Minimum Endpoints = 800
-
Assigned Endpoints = filter group A (600 endpoints) + filter group B (400 endpoints) = 1,000 endpoints
-
Method of Evaluation = Evaluate once
-
-
Deployment Start Time = 9 AM
-
Maintenance window settings:
-
Start Time = 10 PM
-
Targeting = filter group B (400 endpoints)
-
In this case, the Wait ends at 1 PM (9AM + 4 hours). By that time, only the 600 endpoints in filter group A completed the deployment because the 400 endpoints in filter group B have a maintenance window that does not start until 10 PM. Consequently, only 60% of endpoints return an action status of Completed, while 40% return the status Pending (waiting for a maintenance window). The Tanium Server evaluates progression criteria only once for any ring. In this example, the Server evaluates the criteria status to Failed for Ring 1 because the Execution Success Rate is 90% and therefore the deployment enters a Failed state.
When the maintenance window starts at 10 PM, the 400 remaining endpoints can then run the action and return an updated action status of Completed. However, the Server does not re-evaluate progression criteria status based on updates to action status that occur after the Wait interval ends. Therefore, this example deployment remains in a Failed state even if more than 90% of endpoints have completed the action a few minutes after 10 PM. To promote the deployment to Ring 2, a user must manually progress the deployment, as described in Manually progress deployments through rings. The Server then marks Ring 1 as Manually Progressed without changing its progression criteria status, and starts deploying to Ring 2.
Deferred endpoints
When an action progresses to a ring, it deploys by default to all the endpoints that you assign to the ring in a deployment plan. However, you can specify filter groups of deferred endpoints to which the action does not deploy until the last ring of the plan. The action defers the endpoints regardless of assignments in earlier rings. The last ring is typically the safest because all the earlier rings enable you to assess the action impact across a range of progression criteria and endpoints. Consequently, deferral is useful for endpoints that you consider sensitive from a security viewpoint or that serve critical functions in your environment.
For example, if you want to deploy an action to Windows endpoints in the second ring but all your servers perform critical functions, you can assign the All Windows filter group to that ring and defer the All Servers filter group. When an action progresses to the second ring, it skips endpoints that are Windows Servers and deploys to them only in the last ring.
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.
The Tanium Server 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, the Tanium Server 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.
The Tanium Server 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, the Server 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: The Server 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. The Tanium Server 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 the Tanium Server 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
The Tanium Server 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 the Tanium Server, 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 the Tanium Server. 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 6. 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. Update any settings that require custom values.
Table 7. 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, 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.
Tanium Console does not show these Client cache settings unless a user adds them. Adding the settings is necessary only if non-default values are required. In an environment where actions deploy large files, such as for software installations or operating system (OS) patches, you might have to increase the cache limit and percentage. If each setting applies a different cache limit on a Client, the Client enforces whichever setting specifies a lower limit. For more information, see Manage advanced settings.
Tip: These are global settings and therefore apply to all Tanium Clients. However 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. To override the global settings for cache size, configure the settings locally on specific Clients. For more information, see Reference: Tanium Client settings and CLI.
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 Adaptive actions.
Note: Simple actions do not use deployment plans.
|
Do not edit content that is provided through Tanium content-only solutions; create custom content instead. For more information, see Tip 4: Limit customizations to Tanium content.
Test custom content in a lab environment before using it in a production environment.
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 the Tanium Server 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 platform servers 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 Review action logs and associated files to troubleshoot actions and packages.
-
Troubleshoot actions, audit actions, or review action history logs: see 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 the Tanium Server, investigate:
-
Action deployment issues: Review action scheduler logs:
-
Download and caching issues: Review the following logs:
For more information about accessing and reviewing logs, see:
-
Tanium Core Platform troubleshooting and logs in an Appliance deployment
-
Reviewing logs and troubleshooting Tanium Core Platform in a Windows deployment
If the logs indicate package download issues, 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 the Tanium Server uses when downloading packages from remote sources. Update the certificates if necessary. For more information, see Enabling authentication between platform servers and remote systems.
If the logs indicate package caching issues, you can Manage the package file repository.