Managing packages for platform actions
Packages overview
A platform package configuration includes a command, a script, and any related files that are needed to orchestrate a platform action on an endpoint managed using Tanium Client. For example, the Restart Service package includes a Windows command-line command that executes a script to restart a service on Windows endpoints. You deploy packages through the action deployment workflow to apply changes on endpoints. Tanium provides predefined packages to address numerous endpoint change scenarios and you can create custom packages for additional scenarios.
For more information, see Deploying actions and playbooks in Console and Interact.
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 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).
An endpoint requires free disk space that is twice the size of the package that the Tanium Client is downloading for the download to succeed. To check the package size, see View package details.
To troubleshoot issues relating to package downloads, see Troubleshoot actions.
Manage client applications through packages
The Tanium Client service can perform almost any command line instruction available to an Administrator user who is signed in to the endpoint because the service runs with the permissions of the LocalSystem account (Windows) or root account (non-Windows). Consequently, even if signed-in users do not have administrative rights, a Tanium Console user can deploy actions to the endpoint that install, update, or remove client applications as long as those applications meet the following conditions:
-
The applications are installed from a command line using the permissions of the LocalSystem account or root.
-
The applications are configured to suppress any interaction with an end user who is signed in to a target endpoint at installation time.
-
The applications can be dynamically customized at installation if necessary through options, switches, or input files passed to the application installer.
If the required executables, scripts, and configuration files do not natively have these characteristics, you might be able to use a commercial software packaging tool such as InstallShield or an open-sourced application like Nullsoft Scriptable Install System to create a new version of the installer.
You can use the Tanium Core Platform to track the count of installed applications, as well as whether those applications are running on endpoints. Therefore, before installing new software or upgrading versions of existing software, verify that your organization owns the required number of licenses or meets the Acceptable-Use criteria to centrally distribute and install the commercial or open-sourced software to endpoints within your organization.
Package files
A package might include files that are required to run an action, such as a script file. The files might be bundled with the package or reside on an internet location, such as content.tanium.com or other remote sources. The Tanium Server downloads remote files to a sub-directory of its installation directory. For more information about downloading from remote sources, see Enabling authentication between platform servers and remote systems. Tanium Clients then download the package files from the Server. For more information, see Throttling bandwidth and connections to Tanium Clients.
Tanium might deliver package files from third-party providers. For more information on each package, see the README.txt file that is referenced with the package.
For examples of package files, see Example: Package files.
Scheduled action with parameterized package
A scheduled action is an action that is configured to deploy in the future or at recurring intervals (see Managing scheduled actions and action history). A parameterized package requires input (parameters) from users before the package can run on endpoints (see Example: Parameterized packages). When you configure a scheduled action to use a parameterized package, the Tanium Server saves the package definition, including the user-entered parameter values, in an object called a temporary package without altering the configuration of the original package. On the endpoint, the Tanium Client runs the temporary package when it has a directive to run the scheduled action that uses the package. A scheduled action continues to use the temporary package even if the original package configuration is updated. Therefore, if a package configuration is updated and you want the scheduled action to use the updated package, you must re-issue or edit the scheduled action and click the Update Source Package option for the Deployment Package setting. For more information, see Update action packages. Alternatively, you can re-create the scheduled action to use the updated version of the package. For more information, see Deploying actions and playbooks in Console and Interact.
Running a package command within a process group
In a package configuration, the Launch this package in a process group setting controls whether the package command runs within a process group. If the setting is enabled, the process group and any remaining descendant processes are killed when the command completes or times out.
By default, you cannot change this setting and its default state depends on how the package was added:
-
You created the package through Tanium Console: The checkbox is selected by default.
-
Tanium Cloud You manually imported the package or the Tanium Server automatically imported the package: When you view the configurations of Tanium-defined packages, the checkbox is selected for most packages but deselected for those that must run processes outside of a process group. When you manually import a package file, the checkbox is deselected unless you set the
<process_group_flag>to 1 in the file before importing.
For most packages that you create or manually import, running processes within a process group is the best practice. Some exceptions are:
-
Packages that initiate an installation process that must be able to run beyond the command completion or timeout.
-
A process that must run constantly. For example, some Tanium modules have predefined packages that initiate long-running indexing processes.
To change the Launch this package in a process group setting after you import a package, or while you are creating or editing the package, first make the setting editable as follows:
- From the Main menu, go to .
- Set Run Commands in Process Group to ON and click Save All.
Package verification
You can add verification exit codes or a verification query to a package to confirm whether it ran successfully during action deployment. For the steps to add the verification, see Create a package.
Verification Exit Codes
An exit code is a number that indicates the outcome of a package script or command. Specifying exit codes enables Tanium Clients to return Action states that confirm success status, not just completion status:
-
Verified status indicates that the package finished running and returned an exit code for success.
-
Failed Verification status indicates that the package finished running but returned an exit code that does not mean success.
Verification Query
A verification query is a preview question that indicates whether an action that used the package produced the expected results on endpoints. For example, if the package is intended to restrict permissions for the Tanium Client installation directory on Windows endpoints, you can specify the query Tanium Client Directory Permissions contains "restricted". After the action runs, the Action Status page shows the verification states (see Action states) and the Client Status Details section shows the endpoints for which the action is verified. You require the Sensor read permission on the Reserved content set to issue the Verification Query.
View package details
Viewing package attributes can help you to determine if new packages are necessary and to manage or troubleshoot existing packages. For example, you might check the Command and script files of a package to diagnose unexpected results for actions that deploy the package.
When you open the details of a package from an entity provider such as Tanium Connector for Microsoft Intune, the package details page differs from a standard platform package:
-
A Provider field shows the entity provider name.
-
The page is read-only. The Edit Mode button is not available.
-
The Ignore action lock setting is not available.
-
The Command and Files sections do not appear.
-
The Supported Action Classes section lists the action classes that the package supports.
Re-download package files
The Tanium Server caches package files. If updated file versions are available, or re-downloading the current file versions is necessary for troubleshooting, you can manually re-download to the Server. Re-downloading ensures that the package deploys the correct files to endpoints.
-
From the Main menu, go to .
-
Select the package for which you want to download files and click Status.
Figure 1. Package Status page -
(Optional) Filter by Status (such as Needs Attention or Error) if the list is long.
-
Re-download
an individual file or click Re-Download All to re-download all the files.
Clone a package
Cloning is useful when you need to:
-
Create a modified version of a predefined package from a Tanium content-only solution such as Default Content.
Note: Do not modify a predefined package. -
Create a new package with settings that differ only slightly from an existing package. This is often easier than creating a new package from scratch.
Perform the following steps to clone a package:
-
From the Main menu, go to .
-
Use the search and column sorting features to find the package that you want to clone.
-
Select the package and click Clone.
-
Configure the settings as described in Package details and click Save.
Create a package
Create a custom package for endpoint change scenarios that Tanium-defined packages do not address. For example, you might create a package to activate the key for a product that is specific to your organization. As another example, you might create a package that is similar to an existing package except for the content set assignment to ensure that only certain users can deploy the package through actions.
Review Custom content development before you perform the following steps to create a custom package.
Edit a package
- From the Main menu, go to .
- (Optional) Use the search and column sorting features to find the package you want to edit.
- Click the package Display Name.
- Click Edit Mode, configure the settings described in Package details, and click Save.
Move packages between content sets
You can move packages in bulk between content sets to accommodate RBAC changes in your organization. For example, you might want to move certain packages to a content set that only highly privileged users can access.
- From the Main menu, go to .
- Select the packages and click Move to Content Set.
- Select a content set and click Confirm.
Export or import packages
Export packages as a file in one of the following formats based on your objective:
-
CSV
You can use any application that supports CSV format to display the same package attributes (columns) as the Console Packages grid shows and then customize the display. For example, you can use Microsoft Excel to create charts based on package attributes.
-
JSON
You can export multiple package configurations as a JSON file. Exporting configurations is useful if you want to import them into another Tanium environment. For example, you might test custom packages in a lab environment to ensure that they work as intended before importing the packages into your production environment. You must be assigned a role with the Export Content permission to export a JSON file. If you have Import Signed Content permission, you can then import the file into another Tanium Server. The Administrator reserved role has export and import permissions.
Perform the following steps to export packages:
Import content packages
You must be assigned a role with Import Signed Content permission to import content files through the following steps:
Copy package configuration details
Copy information from the Packages 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
Deploy actions from the Packages page
You can configure an action to deploy any package from the Packages page except for sensor-sourced packages. You can deploy actions for sensor-sourced packages only from the Question Results page. For more information, see Example: Sensor-sourced packages and Deploying actions and playbooks in Console and Interact.
- From the Main menu, go to .
- Select a package, click Deploy Action, and complete the action deployment workflow as described in Configure action settings.
Delete packages
Deleting a custom package might be warranted in certain scenarios. For example, the package might not be needed for actions anymore, the package might not run successfully on endpoints, or another package might use fewer endpoint resources to perform the same change.
Perform the following steps before you delete a package:
- Determine if any scheduled actions use the package and assess the impact of deleting the action. You cannot change the package for an action after you save the action configuration. For more information, see Manage scheduled actions.
- Decide which package is a suitable replacement or create a replacement if necessary. This step is required only if you must recreate the actions that use the package you plan to delete. For more information, see View package details and Create a package.
- (Optional) Recreate the action with the replacement package. For more information, see Deploying actions and playbooks in Console and Interact.
Perform the following steps to delete a package:
-
From the Main menu, go to .
-
Select the package and click Delete
.