Securing Tanium connections and operations through digital keys

Tanium keys overview

Use the Key & Trust Management page to manage the digital keys that the Tanium Core Platform uses to secure various connections and operations. For example, your organization might have a policy for periodic key rotation or you might distribute keys to install Tanium Clients on new endpoints that join your network. The following connections and operations use Tanium keys:

  • Platform server and Tanium Client connections

    Tanium Core Platform servers and Tanium Clients secure their interconnections using the Tanium™ Protocol, which uses TLS 1.3 as described in TLS communication. The Tanium Core Platform also supports TLS for connections that various Tanium solutions require. For more information, see the user guides for your solutions at the .

  • External server and client connections

    Tanium Core Platform servers communicate with external servers and clients, as described in Communication with external systems. External clients include the user systems that connect to Tanium Console and the Tanium™ API over HTTPS. To manage the certificates for Console and API access, see Securing Console and API access through certificates.

  • Content file imports

    Keys are used to sign and authenticate content files that you import into the Tanium Server, as described in Authenticating content files.

Note: You require the Administrator reserved role to manage Tanium keys.

To troubleshoot issues that relate to Tanium keys and certificates, see Troubleshoot certificate and key issues.

TLS communication

The Tanium Protocol uses TLS 1.3 to encrypt communication among the following Tanium Core Platform components, as illustrated in the figure Tanium Protocol communication:

1

Tanium Server to Tanium Server in an active-active deployment

Note: For some communications between active-active Servers, such as Tanium database traffic and Lightweight Directory Access Protocol (LDAP) synchronization traffic, Tanium Appliances use IPsec instead of the Tanium Protocol.
2

Tanium Servers to Zone Server Hub

Note: The figure Tanium Protocol communication shows the Zone Server Hub installed on a host that is separate from the Tanium Server hosts to illustrate that the connection is encrypted. However, in most Windows deployments and all Appliance deployments, you install the Hub on the same host(s) as the Tanium Servers.
3

Zone Server Hub to Zone Server

4

Tanium Clients (external) to Zone Server

5

Tanium Clients (internal) to Tanium Servers

6

Tanium Client to Tanium Client (external and internal)

Figure 1. Tanium Protocol communication
Tanium Protocol communication

TLS is enabled by default for communication among platform components. For more information about TLS, and the steps to enable or disable it, see:

Communication with external systems

Tanium keys secure only Tanium traffic. Your enterprise public key infrastructure (PKI) governs the security of non-Tanium traffic among the endpoints in your network.

Tanium Core Platform servers might communicate with external servers for operations such as downloading packages (see Enabling authentication between platform servers and remote systems) or synchronizing with LDAP servers (see Importing and authenticating users through LDAP). The Tanium Server also communicates with external client systems when users access Console. External servers and clients require digital keys with a minimum bit size of 2048 for RSA and 256 for ECDSA to communicate with Tanium Core Platform servers. If your Tanium license includes Tanium Certificate Manager, see Console dashboard for the steps to check the key sizes in your environment. Otherwise, use OpenSSL from a CLI to check the key sizes.

Root keys

When you install the Tanium Server, it automatically generates a public-private root key pair. These root keys are at the top of the Tanium key infrastructure and are required for all subordinate keys to secure connections among Tanium Core Platform components. You deploy the root public key to the Zone Server, Zone Server Hub, and Tanium Clients during installation or upgrade so that these components can secure communication with the Tanium Server. In an active-active deployment, each Tanium Server has its own root key pair that it uses to secure communication with its peer.

The Tanium Server uses separate root key pairs for TLS communication with Tanium Clients based on their version. Initially after a fresh installation or upgrade, Tanium Client 7.6 or later uses the root public key that has the name <Tanium Server FQDN> Root 0, as shows in the figure Tanium root public keys. Each new root public key that you create for version 7.6 or later has a unique name in the format <Tanium Server FQDN> Root <#>.

Note: The name legacy-root identifies the root keys for Tanium Client 7.2. Tanium release or later does not support Client 7.2 and you cannot create new keys for that Client version. Upgrade any Client 7.2 installations to a new Client version. For more information, see Upgrading Tanium Clients.

To view details about the root keys, see View root key information.

The Tanium Server, Zone Server, Zone Server Hub, and Tanium Clients generate subordinate keys locally and request a digital signature for each key pair. The responding server uses a private key to generate the signatures and returns the associated public key along with the signatures to enable TLS communication among the requesting servers and Clients.

Subordinate key types

The Tanium Core Platform uses the following subordinate keys, as shown in the figure Digital keys in the Tanium Core Platform:

Table 1. Subordinate key types

Type

Description

TLS keys

Each Tanium Core Platform server and Tanium Client uses TLS keys to enable TLS communication with other servers and Clients. The Tanium Server uses the root private key to generate signatures for the platform server TLS keys (A1).

Message-signing keys

The Tanium Server uses this key pair to sign messages (such as for action packages) that it sends to Tanium Clients. The Tanium Server uses the root private key to generate a signature for the message-signing key pair (A1).

Intermediate TLS keys

TheTanium Server uses an intermediate TLS private key to generate signatures for the TLS keys of internal Tanium Clients that report to that Server (2). Each Zone Server also has an intermediate TLS private key to generate signatures for the TLS keys of external Clients that report to that Zone Server (3). The servers return the intermediate TLS public key along with the signatures to enable TLS for Client communications. Using intermediate TLS keys instead of the root keys for generating signatures makes Client registration faster and less CPU intensive. For security, you can rotate the intermediate keys independently of the root keys. The Tanium Server uses the root private key to generate a signature for the intermediate key pairs on the Tanium Server and Zone Server (A1).

Figure 2. Digital keys in the Tanium Core Platform
Digital keys in the Tanium Core Platform
Note: A copy of the root public key resides in the Zone Server Hub installation directory regardless of whether the Hub is installed on the same host as the Tanium Server (as shown in the figure Digital keys in the Tanium Core Platform) or on a dedicated host.

In an active-active deployment, each Tanium Server has its own root key pair.

To enable communication among the Tanium Core Platform servers, you must also enable trust. For more information, see Synchronizing active-active Tanium Servers and Enabling communication between Zone Servers and Hubs.

Rotation intervals for subordinate keys

Tanium Core Platform components automatically generate new subordinate key pairs when it is time to rotate them. For example, Tanium Clients renew their TLS keys four hours (the renewal window) before the end of each seven-day validity period (expiration interval) by default. The renewal windows ensure components have enough time to re-establish trust in the Tanium environment before the current keys expire.

Table 2. Rotation intervals for subordinate keys

Key

Purpose

Rotation properties and settings

Tanium Server TLS keys

The Tanium Server uses this key pair for communication with another Tanium Server (in an active-active deployment), the Zone Server Hub, or Tanium Clients.

Rotation interval: 60 days Setting: pki_server_tls_key_duration_days

Renewal window: 4 hours Setting: pki_server_tls_key_renewal_window_hours

Message Signing Keys

The Tanium Server uses this key pair to sign messages (such as for action packages) that it sends to Tanium Clients.

Rotation interval: 180 days Setting: pki_message_signing_key_duration_days

Renewal window: 4 hours Setting: pki_message_signing_key_renewal_window_hours

Tanium Zone Server Hub TLS keys

The Zone Server Hub uses this key pair for TLS communication with the Tanium Server and Zone Server.

Rotation interval: 60 days

Setting: pki_hub_tls_key_duration_days

Renewal window: 4 hours

Setting: pki_hub_tls_key_renewal_window_hours

Tanium Zone Server TLS keys

The Zone Server uses this key pair for TLS communication with the Zone Server Hub and Tanium Clients.

Rotation interval: 60 days

Setting: pki_zoneserver_tls_key_duration_days

Renewal window: 4 hours

Setting: pki_zoneserver_tls_key_renewal_window_hours

Tanium Client CA TLS keys

The Zone Server or Tanium Server uses this key pair to provide digital signatures for Tanium Clients when the Clients generate new TLS key pairs.

Rotation interval: 180 days Setting: pki_client_tls_ca_key_duration_days

Renewal window: 168 hours (7 days) Setting: pki_client_tls_ca_key_renewal_window_hours

Tanium Client TLS keys

Tanium Clients use this key pair for TLS communication with each other and with the Zone Server or Tanium Server.

Rotation interval: 7 days Setting: pki_client_tls_key_duration_days

Renewal window: 4 hours Setting: PKIClientTLSKeyRenewalWindowHours

Key rotation

Although root keys never expire, you can rotate them, which means generating new keys and revoking the old keys. Rotating keys is useful if your organization has a policy for periodic key rotation or the security of the active keys is in doubt. If the security of the active root keys is in doubt, rotate them immediately.

Note: If your organization does not have a key rotation policy, rotate the root keys at least once every year but no more than once every six months.
Note:

Tanium Clients that are offline when you rotate keys acquire the new keys and resume regular operations upon coming online as long as those Clients were initialized with the correct tanium-init.dat file. For more information, see Download infrastructure configuration files (keys).

On the Key & Trust Management page, the name legacy-root identifies the root keys for Tanium Client 7.2. You cannot rotate the legacy-root keys and Tanium release or later does not support Client 7.2. Upgrade any Client 7.2 installations to a new Client version as described in Upgrading Tanium Clients.

To ensure the security of root private keys, Tanium Console exposes only root public keys. However, when you generate or revoke a public key, the Tanium Server automatically generates and revokes the private key. Furthermore, when you rotate the root keys, the Tanium Core Platform automatically rotates all subordinate keys. Regardless of whether you rotate the root keys, the subordinate keys automatically rotate at configurable intervals.

The following steps summarize the workflow for rotating keys:

  1. (Optional best practice) On each Tanium Server, encrypt the pki.db file that contains the root keys, Tanium Server TLS keys, and message-signing keys. This is a one-time only task that you perform to prevent unauthorized access to the keys. For more information, see Encrypt the root keys database.

  2. If your organization has a key rotation policy, configure automatic rotation for subordinate keys to match the policy. This is a one-time only task, unless your policy changes. For more information, see Rotation intervals for subordinate keys.

  3. Generate a new root public key. The Tanium Server automatically generates a new corresponding private key and triggers the creation of new subordinate keys. For more information, see Generate root keys.

    As a best practice, wait one week before revoking the old root keys to ensure that the process of generating new keys finishes for all Tanium Core Platform components. When you revoke, any components that did not finish this process expend more processing resources and network traffic to generate new keys. However, if the security of the root keys is in doubt, revoke the old keys immediately after generating the new keys.

  4. Revoke the old root public key. The Tanium Server automatically revokes the associated private key and propagates the revocation directive for the old root keys and subordinate keys to all Tanium Core Platform components. For more information, see Revoke root keys.

  5. (Best Practice) Back up the Tanium deployment immediately before and after revoking the root keys. If recovery becomes necessary, you must restore the deployment from the post-revocation backup. However, the pre-revocation backup might contain information that is useful for recovery planning. The backup steps depend on your Tanium infrastructure:

HSM integration

If you configure the Tanium Server to integrate with a hardware security module (HSM) for storing and managing keys, all key operations occur on the HSM even when you use Tanium Console to initiate those operations. For more information, see Securing keys with an HSM in a Windows deployment.

View root key information

The Administration > Configuration > Key & Trust Management > Current Server page shows a tile for each root public key that is active, as shown in figure Tanium root public keys. In an active-active deployment, the page displays the keys for both Tanium Servers, but only after you approve trust between them. For more information, see Synchronizing active-active Tanium Servers. You can identify keys by their Fingerprint, which is the hash digest of the key, and by the Tanium Server Name.

Note: The name legacy-root identifies the root keys for Tanium Client 7.2. Tanium release or later does not support Client 7.2. Upgrade any Client 7.2 installations to a new Client version. For more information, see Upgrading Tanium Clients.
Figure 3. Tanium root public keys
Tanium root public keys

You can also see details about root key operations, such as who generated or revoked a key and when:

  1. From the Main menu, go to Administration > Configuration > Key & Trust Management > Activity Log.
  2. Review the entries in the All Root Keys grid, as shown in figure Keys activity log.
Figure 4. Tanium keys activity log
Keys actvity log

Encrypt the root keys database

As a best practice to prevent unauthorized access, specify a password to encrypt the root keys that the Tanium Server stores in the pki.db file.

Tip: Tanium Console displays the values of most settings that you configure. However, for security, Console does not display the encryption password.

Set the encryption password

Encrypt the root keys by adding the PKIDatabasePassword setting.

Important: In an active-active deployment, perform the following steps on each Tanium Server.
  1. From the Main menu, go to Administration > Configuration > Settings > Advanced Settings and click Add Setting.
  2. For the Setting Type, select Local.
  3. For the Platform Setting Name, enter PKIDatabasePassword.
  4. Set the Value Type to Protected.
  5. Enter the password Value and click Save.
Note: Store the password in a safe location.

Change the encryption password

After adding the PKIDatabasePassword setting, you can later change the password.

Important: In an active-active deployment, perform the following steps on each Tanium Server.
  1. From the Main menu, go to Administration > Configuration > Settings > Advanced Settings.
  2. In the Name column, click PKIDatabasePassword.
    Note: The Value field displays (protected) instead of the actual value.
  3. Enter a new Value and click Save.

Generate root keys

You can generate additional active public-private root key pairs for each Tanium Server. Perform this task on each Server in an active-active deployment.

  1. From the Main menu, go to Administration > Configuration > Key & Trust Management > Current Server.
  2. Click Create New Key. The page shows the root public key details in a new tile.

Revoke root keys

To prevent communication disruptions among Tanium Core Platform components, you cannot revoke a root key pair until you first generate a new key pair to replace it. Review the Key rotation workflow before revoking the old root key pair. You must revoke keys on both Tanium Servers in an active-active deployment.

Note: Back up the Tanium deployment immediately before and after revoking the root keys. If recovery becomes necessary, you must restore the deployment from the post-revocation backup. However, the pre-revocation backup might contain information that is useful for recovery planning. The backup steps depend on your Tanium infrastructure:
Note: If you configure the Tanium Server to integrate with an HSM, note that you cannot use a backup of the pki.db file containing the root keys to install a cryptographically identical duplicate of the Server.

Revoke keys as follows:

  1. From the Main menu, go to Administration > Configuration > Key & Trust Management > Current Server.
  2. Click Revoke Key in the tile of the public key.

Download infrastructure configuration files (keys)

The Tanium Zone Server, Tanium Zone Server Hub, and Tanium Client must authenticate to the Tanium Server to enable communication with it. The Zone Server, Hub, and Client authenticate by using keys (including the root public key) that are inside the initialization bundle (tanium-init.dat). After you download the initialization file from the Tanium Server, you can deploy the file to every Zone Server, Hub, and Client.

Tip: If you download tanium-init.dat through Tanium Client Management, certain settings (such as ServerNameList) are preconfigured in the file. For more information, see (Optional) Download a tanium-init.dat file for alternative deployment.
  1. (Active-active deployment only) Enable trust between the Tanium Servers in an active-active deployment if you haven't already, as described in Synchronizing active-active Tanium Servers. Upon establishing trust, the Servers exchange the necessary keys so that the tanium-init.dat file on each Server contains the public key of both Servers.
  2. From the Main menu, go to Administration > Configuration > Infrastructure and click Download Download.

    The file appears in the Downloads folder on the system that you use to access Tanium Console.

To deploy tanium-init.dat, see the relevant user guide:

Protect the tanium-init.dat file

Important:

Be careful not to allow the tanium-init.dat file to be distributed or stored outside of your organization, such as in a publicly accessible source code repository or any other location accessible from the public internet. Limit the distribution to specific use in the deployment of Tanium Clients.

Though this file does not contain private keys and cannot be used to provide control over a Tanium environment, a user with malicious intent could use it to connect an unapproved Client and use this unauthorized access to learn how your organization is using Tanium.