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 a Client deployment) 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.

  1. In Tanium Atlas, enter the following chat prompt: Change anti-tamper recovery password.
    The anti-tamper recovery password panel appears on the page.
  2. Enter the new password in the masked form and then click Save Password.
    Important: Enter the password only in the form, never in the chat.
    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. 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.
  3. Redeploy the anti-tamper settings configurations so that the new password takes effect: when the form offers Save and Redeploy or Save Without Redeploying, click Save and Redeploy.

    To redeploy later, enter the following prompt: Redeploy settings configurations to update the anti-tamper recovery password on endpoints

To unlock the anti-tamper feature on an offline endpoint with the recovery password, see Disable the anti-tamper feature on an offline endpoint.

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.

In Tanium Atlas, enter the following chat prompt:

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

Tip: You can also redeploy when you change the password. In the anti-tamper recovery password panel, click Save and Redeploy.

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. In Tanium Atlas, enter the following chat prompt to retrieve the anti-tamper recovery password:

    Add the panel that reveals the current anti-tamper recovery password securely

    Atlas adds a panel with the masked recovery password and the date that it was created. Click Show to view the password, or click the copy button to copy it without displaying it. Revealing the password requires the Client Management recovery password read and recovery password decrypted read permissions, and each reveal is recorded in the audit log.

    Important: Do not enter the recovery password in the chat. Atlas cannot read the password in the panel.
    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. Atlas shows only the current recovery password. To view a previous recovery password in the Tanium Console, see Disable the anti-tamper feature on an offline endpoint.
  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 Atlas which endpoints have anti-tamper enabled.

Alternatively, you can also 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.

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

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.
  1. To find Windows endpoints where permission to start and stop Tanium Client services is not limited to the SYSTEM account, enter the following chat prompt in Tanium Atlas:

    Show Windows endpoints where Tanium Client service control is set to default permissions

  2. Enter the following prompt, and then review the targeted endpoints in the Deploy Action panel and click Deploy:

    Open the Deploy Action panel to deploy the Client Service Hardening - Allow Only Local SYSTEM to Control Service package to <endpoints>

    Tip: If a prompt names the package, the endpoints, and every required parameter but does not ask for the Deploy Action panel, Atlas creates the action after you approve it in chat instead of opening the panel.

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

  1. To find Windows endpoints where access to the Tanium Client directory is not limited to the SYSTEM account, enter the following chat prompt in Tanium Atlas:

    Show Windows endpoints where the Tanium Client Directory Permissions sensor reports any account other than NT AUTHORITY\SYSTEM

    Include endpoints that are Not Restricted and endpoints with a restriction other than NT AUTHORITY\SYSTEM, such as Restricted - BUILTIN\Administrators.

  2. Enter the following prompt, and then review the targeted endpoints in the Deploy Action panel and click Deploy:

    Open the Deploy Action panel to deploy the Client Service Hardening - Set SYSTEM only permissions on Tanium Client directory package to <endpoints>

    Tip: If a prompt names the package, the endpoints, and every required parameter but does not ask for the Deploy Action panel, Atlas creates the action after you approve it in chat instead of opening the panel.

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 Tanium Atlas, enter the following chat prompt:
    Hide the Tanium Client from the Windows Add/Remove Programs list
  2. Approve the action that Atlas suggests.

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.

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 Tanium Atlas, enter the following chat prompt to target the Windows endpoints on which you want to enable encryption: Enable the Tanium Client Explicit Setting[StateProtectedFlag] for all Windows machines
    Atlas asks for confirmation before taking an action.
  2. To review the settings or add a reissue interval, click Edit in Panel. Otherwise, click Approve once.
    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.