Manage the Tanium Client on Windows

Manage the Tanium Client on Windows endpoints, where it runs as a service that starts automatically.

The Tanium Client is installed as a service with a Startup Type set to Automatic on Windows endpoints. The default installation directory is C:\Program Files (x86)\ for 64-bit versions of Windows, or C:\Program Files\ for 32-bit versions of Windows.

Manage the Tanium Client service on Windows

Use the Windows Services application to stop, start, or restart the Tanium Client service on Windows endpoints:

  1. Click Start > Run. Type services.msc and click OK.
  2. Select the Tanium Client service and then select an action in the Action > All Tasks menu.
    Figure 1. Tanium Client service
    Tanium Client service management in Windows Services

Manage tamper protection

The protocols that the Client uses to communicate with Tanium Cloud and peer Clients are designed to be secure and prevent rogue sensors or actions, and digital signing prevents an attacker from causing the Client to run sensors or packages that Tanium Cloud did not issue. However, the Tanium Client is a traditional Win32 application on Windows. By default, it appears in the Add/Remove Programs list, and users with local administrator rights can manage the service and access the Tanium Client installation directory.

The anti-tamper feature prevents end users from taking the following actions on Windows endpoints where it is enabled:

  • Stopping or restarting the Tanium Client service

  • Stopping Tanium Client processes

  • Uninstalling the Tanium Client

  • Tampering with Tanium Client files or registry entries

Important:

The restriction on uninstalling the Tanium Client applies to all processes, not only to end users. When anti-tamper is enabled on an endpoint, you cannot reinstall the Tanium Client remotely (including through Client Management) even when using a system-level process. If you need to reinstall a Tanium Client on an endpoint where anti-tamper is enabled, you must first disable anti-tamper on that endpoint.

Additionally, when anti-tamper is enabled, Tanium processes cannot see certain registry locations that are not owned by Tanium. A query that targets one of these locations from a Tanium process returns an empty or "not found" result that looks the same as a key that does not exist.

This restriction applies only to the Tanium Client and the processes it starts, including TaniumScript, Python, PowerShell, cmd, and VBScript sensor and package hosts, and Client Extensions such as Comply, Threat Response, and Direct Connect. It does not affect other processes on the endpoint, such as Registry Editor, a PowerShell session that a user starts, or Windows Management Instrumentation (WMI).

Table 1. Registry locations hidden from Tanium processes when anti-tamper is enabled
Registry location Effect in a Tanium process
HKLM\SOFTWARE\Microsoft\AMSI\Providers and HKLM\SOFTWARE\WOW6432Node\Microsoft\AMSI\Providers Enumerating subkeys returns no entries. However, you can open or read a provider subkey by its GUID name.
HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\AppCertDlls Enumerating values returns no entries. Reading a value directly fails with an access denied error.
The AppInit_Dlls value under HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows (and the equivalent WOW6432Node key) Reading the value returns "not found". Other values in the key read normally.
The Debugger value under any HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\<executable> key Reading the value returns "not found". A Tanium process also cannot open its own Image File Execution Options key.
The DatabasePath and DatabaseType values under HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\InstalledSDB Reading the values returns "not found".
The AutoRun value under HKLM\SOFTWARE\Microsoft\Command Processor Reading the value returns "not found" when the reader is cmd.exe (for example, a batch script sensor).

For example, the Registry Key Subkeys sensor returns "Key/Value not found" for HKLM\Software\Microsoft\AMSI\Providers on an endpoint that has anti-tamper enabled.

To enable the anti-tamper feature, configure an anti-tamper recovery password and then configure and deploy a Client settings configuration with the Enable Anti-Tamper setting selected. For more information, see Managing Client settings for groups of Clients.

Tip: This feature does not require the Client Service Hardening content pack to be installed.
Note:
  • Perform regular audits of unmanaged assets to look for and remediate systems with missing or non-functioning Clients, regardless of whether you have enabled the anti-tamper feature on Windows Clients.

  • If you choose to harden the Tanium Client on Windows endpoints, use the anti-tamper feature instead of Client Service Hardening features where possible.

Important:
  • If you have used the features of the Client Service Hardening content pack to limit control of Tanium Client services, use the Client Service Hardening - Set Service Permissions to Defaults package to remove these restrictions before you enable the anti-tamper feature on those Clients. For more information, see Unharden the Tanium Client on Windows. The anti-tamper feature replaces the service permissions control of Client Service Hardening. Though leaving this restriction in place from Client Service Hardening does not affect the functionality of the anti-tamper feature, doing so can cause the service permissions to unexpectedly remain restricted if you disable anti-tamper.

  • You can use the Client Service Hardening features to limit permission to view files in the Tanium Client directory and to hide the Tanium Client from the Windows Add/Remove Programs list in conjunction with the anti-tamper feature, but keep in mind that Client Service Hardening packages cannot function on an endpoint while the anti-tamper feature is enabled. Also, if you limit permissions on the Tanium Client directory to the LOCAL SYSTEM user account and you need to unlock a Tanium Client that is not connected to the Tanium Server, you must use the LOCAL SYSTEM user account to disable the anti-tamper feature.

Configure the anti-tamper recovery password

You can use the anti-tamper recovery password to unlock the anti-tamper feature on endpoints that are offline or where Tanium Client is otherwise unable to communicate with the Tanium Server.

Change the anti-tamper recovery password in Client Management.

  1. From the Main menu, go to Shared Services > Client Management.
  2. From the Client Management menu, go to Configuration Management > Anti-Tamper Recovery.
  3. Click Change Password.
  4. Enter and confirm the new password and then click Save.
    Important: After you change the password, the new password takes effect on endpoints only as you deploy or redeploy a Client settings configuration with the anti-tamper feature enabled to those endpoints. For more information, see Redeploy settings configurations to update the anti-tamper recovery password on endpoints. On any endpoints that last received the Client settings configuration before the password change, including endpoints that did not receive a Client settings deployment because they were offline, the previous password applies.

Redeploy settings configurations to update the anti-tamper recovery password on endpoints

After you change the anti-tamper recovery password, you must redeploy settings configurations that have the Enable Anti-Tampering setting selected to update the password on endpoints.

  1. From the Main menu, go to Shared Services > Client Management.
  2. From the Client Management menu, go to Configuration Management > Settings Configurations.
  3. In the row for each settings configuration that has the Enable Anti-Tampering setting selected, click Actions options2 and select Deploy.

Disable the anti-tamper feature on an offline endpoint

If an endpoint that has the anti-tamper feature enabled is offline or is otherwise unable to communicate with the Tanium Server, you can unlock anti-tamper locally on the endpoint using the anti-tamper recovery password.

Note: Use this method only on endpoints where the Tanium Client is unable to communicate with the Tanium Server. If the Tanium Client is connected, configure and deploy a Client settings configuration with Enable Anti-Tampering setting cleared. For more information, see Managing Client settings for groups of Clients. If you manually unlock an endpoint and it is later online and receives a settings configuration with the setting enabled, the deployed settings configuration re-enables anti-tamper on the endpoint.
  1. Retrieve the anti-tamper recovery password from Client Management:
    1. From the Main menu, go to Shared Services > Client Management.
    2. From the Client Management menu, go to Configuration Management > Anti-Tamper Recovery.
    3. Beside the Recover Password, click Show and take note of the displayed recovery password.
    Important: On any endpoints that last received the Client settings configuration before a password change, including endpoints that did not receive a Client settings deployment because they were offline, you must use the previously configured recovery password that was last deployed to the endpoint to unlock anti-tamper. To view a previous recovery password, click Show show beside an entry in the Password History section of the Anti-Tamper Recovery page.
  2. At the command line on the endpoint that you want to unlock, enter the following command that matches the Endpoint Toolset version on the endpoint, using the recovery password you retrieved:
    • Endpoints with Endpoint Toolset 2.42.228, 2.44.180, 2.46.156, or later: %ProgramData%\Tanium\TaniumAntitamperUnlock.exe antitamper unlock [password]

    • Endpoints with earlier Endpoint Toolset versions:

      • 64-bit versions of Windows: %ProgramData%\Tanium\TaniumDriverCtl64.exe antitamper unlock [password]

      • 32-bit versions of Windows: %ProgramData%\Tanium\TaniumDriverCtl.exe antitamper unlock [password]

    The utility is installed in the %ProgramData%\Tanium folder, outside the Tanium Client directory, so it remains available if Client Service Hardening limits access to that directory.

    Tip: Including the password in the command is optional. If you omit the password, the command is interactive and prompts you to enter the password, which is masked during entry.
    Note: It might take up to 30 seconds to disable anti-tamper.
    Note: Change the recovery password after you use it to unlock offline endpoints. For more information, see Configure the anti-tamper recovery password and Redeploy settings configurations to update the anti-tamper recovery password on endpoints.

Determine whether anti-tamper is enabled on endpoints

Ask a question using the Tanium Driver Status sensor to determine whether endpoints have anti-tamper enabled. The sensor returns EnableAntiTamper: 1 to indicate that anti-tamper is enabled on an endpoint. For example:

Get Tanium Driver Status from all machines with Is Windows contains true

Manage Client Service Hardening features

Certain client hardening features are provided by the Client Service Hardening content pack. Use the saved question dashboards in the Client Service Hardening content pack to review restrictions on user access to the Tanium Client on Windows endpoints. Deploy actions with the packages that are associated with the saved questions to adjust those restrictions. For more information about deploying packages, see Deploying actions.

Note:

If you choose to harden the Tanium Client on Windows endpoints, use the anti-tamper feature instead of Client Service Hardening features where possible. The anti-tamper feature provides enhanced functionality with easier deployment and easier recovery of disconnected Tanium Clients. For more information, see Manage tamper protection. You can still use the Client Service Hardening content pack together with the anti-tamper feature if you need to restrict viewing the contents of the Tanium Client directory or to hide Tanium Client from the Add/Remove Programs list. The anti-tamper feature fully replaces the service permissions control feature of Client Service Hardening.

Contact Tanium Support to import the Client Service Hardening content pack into Tanium Cloud.

Note: Perform regular audits of unmanaged assets to look for systems with missing or non-functioning Clients, regardless of whether you have hardened the Tanium Client on Windows.

Access the Client Service Hardening dashboards

The Client Service Hardening dashboards in Interact provide easy access to review and manage access restrictions for the Tanium Client.

  1. From the Main menu, go to Modules > Interact.
  2. In the Categories section, select Client Service Hardening.

Limit permission to start and stop Tanium Client services to the SYSTEM account

  1. In the Dashboards section in Interact, click Control Service State Permissions to issue the dashboard question.
  2. Select the Service Control is set to default permissions row and click Deploy Action.
  3. For Deployment Package, select Client Service Hardening - Allow Only Local SYSTEM to Control Service.
  4. Click Show Preview To Continue, review the list of targeted endpoints, and then click Deploy Action.
    Important: Remove this restriction before you enable the anti-tamper feature on Clients. For more information, see Unharden the Tanium Client on Windows and Manage tamper protection. The anti-tamper feature replaces the service permissions control of Client Service Hardening. Though leaving this restriction in place from Client Service Hardening does not affect the functionality of the anti-tamper feature, doing so can cause the service permissions to unexpectedly remain restricted if you disable anti-tamper.

Limit permission to view or modify files in the Tanium Client directory to the SYSTEM account

  1. In the Dashboards section in Interact, click Set Client Directory Permissions to issue the dashboard question.
  2. Select the Not Restricted row, as well as any rows that indicate a restriction other than NT AUTHORITY\SYSTEM (such as Restricted - BUILTIN\Administrators) and click Deploy Action.
  3. For Deployment Package, select Client Service Hardening - Set SYSTEM only permissions on Tanium Client directory.
  4. Click Show Preview To Continue, review the list of targeted endpoints, and then click Deploy Action.

Hide the Tanium Client from the Windows Add/Remove Programs list

Hiding the Tanium Client from the Windows Add/Remove Programs list or the Programs menu does not affect the security of the Client. A user with permissions to uninstall an application can still launch the uninstallation manually. Hiding the Tanium Client from the Add/Remove Programs list helps to reduce accidental uninstallations and casual tampering by end users.

  1. In the Dashboards section in Interact, click Hide From Add-Remove Programs to issue the dashboard question.
  2. In the section for the Tanium Client Visible in Add-Remove Programs saved question, select the No row and click Deploy Action.
  3. For Deployment Package, leave Client Service Hardening - Hide Client from Add-Remove Programs selected.
  4. Click Show Preview To Continue, review the list of targeted endpoints, and then click Deploy Action.

Unharden the Tanium Client on Windows

Use Packages to unharden the Tanium Client

If an endpoint is communicating with Tanium Cloud, you can unharden the Tanium Client using the following packages that correspond to each hardening package:

  • Client Service Hardening - Set Service Permissions to Defaults

  • Client Service Hardening - Reset permissions on Tanium Client directory

  • Client Service Hardening - Show Client in Add-Remove Programs

Tip: You can access these packages from the Client Service Hardening dashboards, similarly to the preceding steps provided for hardening.

Unharden Tanium Client that is not reporting to Tanium Cloud

If an endpoint is not communicating with Tanium Cloud, and you have limited permission for Tanium Client services or the Tanium Client directory to the LOCAL SYSTEM account, you must unharden the Tanium Client from the command line. You can use the PsExec command line utility to run packages as the LOCAL SYSTEM user account, which is not installed with Windows but is available as a download from Microsoft.

  1. Download and install the PsExec command line utility from Microsoft.
  2. From the Main menu in Tanium Console, go to Administration > Content > Packages.
  3. Open the Client Service Hardening - Reset permissions on Tanium Client directory package.
  4. In the Files section, click Download download_2.0 to download the reset_directory_permissions.vbs script file.
  5. Return to the Packages page and open the Client Service Hardening - Set Service Permissions to Defaults package.
  6. In the Files section, click Download download_2.0 to download the set-service-permissions-back-to-default.vbs script file.
  7. Transfer both script files to a temporary location on the endpoint.
  8. Open a command prompt as administrator on the endpoint, and run the following commands to unharden the Client:

    psexec /accepteula /s cmd.exe cscript //E:VBScript //T:120 path_to_script\reset_directory_permissions.vbs

    psexec /accepteula /s cmd.exe cscript //E:VBScript //T:120 path_to_script\set-service-permissions-back-to-default.vbs

  9. Delete the script files from the endpoint.
  10. (Optional) To uninstall the Tanium Client, run the following command, replacing the path with the actual path to the Tanium Client if necessary:

    C:\Program Files (x86)\Tanium\Tanium Client\uninst.exe /S

Encrypt the Client state and sensor queries stored on the Client

Use the StateProtectedFlag Client setting to enable encryption of the Client state and sensor queries stored on the Client. This encryption is not required for the security of the Tanium Client, but it might be required for compliance with certain regulations. This setting does not require the Client Service Hardening content pack.

  1. In Interact, ask a question to target the Windows endpoints on which you want to enable encryption: Get Tanium Client Explicit Setting[StateProtectedFlag] from all machines with Is Windows contains true
  2. Select the endpoints from the results and click Deploy Action.
  3. For Deployment Package, select Modify Tanium Client Setting and configure the following settings:
    • For RegType, select REG_DWORD.
    • For ValueName, enter StateProtectedFlag.
    • For ValueData, enter 1.
  4. Click Show Preview To Continue, review the list of targeted endpoints, and then click Deploy Action.
    Tip:
    • Alternatively, you can use the command line on an endpoint to configure the StateProtectedFlag Client setting. For more information, see Reference: Tanium Client settings and CLI.

    • You can modify the default value for this setting for endpoints where the setting is not configured. For more information, see Managing Client settings and Index configurations.

    • To disable this encryption, either remove the StateProtectedFlag Client setting, or set it to 0.