Secure Tanium Console, API, and Module Server access on Tanium Appliances

The subsequent topics in this section provide information about certificates and keys, CA-issued Tanium Server SOAP certificates, installing a custom certificate, and optionally enabling HTTP Strict Transport Security for Tanium Console access.

Overview of certificates and keys

Tanium user and module operations require connections to the Tanium Servers, Module Server, and Tanium module services. The Tanium Core Platform uses Secure Sockets Layer (SSL)/Transport Layer Security (TLS) certificates and keys to secure connections to the Tanium Server and Module Server (illustrated in Figure  2). For example, when you use Tanium™ Patch to deploy patches to endpoints, the Tanium Core Platform establishes connections in the following order:

  1. User system (browser or CLI) to the Tanium Server (Tanium Console or API)
  2. Tanium Server to Tanium Module Server
  3. Module Server to Patch service
  4. Patch service to Tanium Server

    The Tanium Server and Module Server installers generate self-signed certificates. You can replace the self-signed certificates on Tanium Servers with certificates issued by a commercial certificate authority (CA) or your enterprise CA.

    Best practice: To facilitate troubleshooting, use the self-signed certificates during initial installation and replace them with CA-issued certificates later. This practice enables you to separate potential installation issues from TLS connection issues. Using a CA-issued certificate is highly recommended for Tanium Console and API access on the Tanium Server.
    Note: Tanium Console and API access require user authentication through sign-in credentials, but not for securing the TLS connection.

    To troubleshoot Console and API access issues, see Authentication log.

    For more information about the Tanium™ Protocol that secures communication among the Tanium Servers, Zone Server, Zone Server Hub, and Tanium Clients, see Securing Tanium Server, Zone Server, and Tanium Client access. To manage the keys that the Tanium Protocol uses, see Securing Tanium connections and operations through digital keysManaging Tanium keys.

Tanium Console and API

Users access Tanium Console or the Tanium API on the Tanium Server to perform Tanium operations such as issuing questions or deploying actions. The Console and API communicate over Hypertext Transfer Protocol Secure (HTTPS), which uses SSL/TLS certificates and keys to secure client-server connections. When a user accesses Tanium Console or the Tanium API, the user system is the client and the Tanium Server is the server. To secure the connection, the Tanium Server presents its SOAPServer.crt certificate to prove its identity to the Client and uses its SOAPServer.key private key to complete the TLS handshake. For Console or API access, Clients do not have to prove their identity to secure the connection. Figure  2 illustrates these processes.

When you install the Tanium Server on a Tanium Appliance, it generates a self-signed SOAPServer.crt certificate. If you use a self-signed certificate, users see a certificate validation error when they access Tanium Console or the Tanium API. The error occurs because the CA certificates on the user system cannot validate the self-signed certificate. The following figure shows an example of such an error when users try to connect from a browser to Tanium Console.

Figure 1. Certificate validation error
Certificate validation error

Even though browsers provide the option to access Tanium Console despite the error, avoiding that option is a security best practice. Therefore, Tanium highly recommends that you replace the self-signed SOAPServer.crt certificate with a CA-issued certificate. If the Tanium Server is currently using a self-signed certificate, you can replace it at any time.

Signed and encrypted SAML authentication on the Tanium Server

Some identity providers require a digital signature on Security Assertion Markup Language (SAML) requests from a service provider such as the Tanium Server. If you are using such an identity provider for Tanium Console authentication, you must provide a request-signing certificate (SAMLEncryption.crt) and private key (SAMLEncryption.key) to enable the identity provider to authenticate requests. The Server uses the key to sign the requests and the identity provider uses the certificate to validate the signature.

To determine the requirements of the SAML certificate and best practices for generating the certificate and key, see your identity provider documentation.

For more information about using a SAML identity provider with Tanium Console, see Enabling SSO through SAMLIntegrating with a SAML IdP.

Module Server communication

When users use Tanium Console or the Tanium API to work with Tanium modules, the Tanium Server communicates with the Tanium Module Server, the Module Server accesses the Tanium module services that it hosts (such as Patch), and the module services communicate back with the Tanium Server (see Figure  2).

The Tanium Server and Module Server communicate over HTTPS, and both Servers must prove their identities through certificates. The Tanium Server presents SOAPServer.crt to prove its identity, while the Module Server presents ssl.crt. The Servers use the associated private keys (SOAPServer.key and ssl.key) to complete the TLS handshake that secures the connection. To verify the Tanium Server identity, the Module Server checks that its trusted.crt file contains the SOAPServer.crt that the Tanium Server presented. In an active-active deployment, trusted.crt must contain the SOAPServer.crt of both Tanium Servers. Tanium Servers also verify the Module Server identity by checking that their trusted‑module‑servers.crt file contains the ssl.crt that the Module Server presented. The Module Server registration process generates trusted.crt on the Module Server and trusted‑module‑servers.crt on the Tanium Server. The Module Server installation process generates ssl.crt.

The Module Server opens a single HTTPS listener to route requests from the Tanium Server to Tanium module services, which listen only on localhost. TLS termination occurs on the Module Server, which forwards the requests locally over non-TLS connections from the HTTPS listener to the appropriate module service.

Module services connect to the Tanium Server over TLS and verify that the certificate that the Tanium Server presented during the TLS handshake is included in the trusted.crt file on the Module Server. Because module services use the same API as Tanium Console users, Client certificate validation is not enforced.

If you replace the SOAPServer.crt certificate on the Tanium Server, you must re-register the Module Server with the Tanium Server to regenerate the trusted.crt and trusted‑module‑servers.crt files.

The following table summarizes the certificates and keys that the Tanium Core Platform uses for connections to the Module Server:

Table 1. Certificates and keys for Module Server connections

Location

File Name

Purpose

Module Server

ssl.crt

ssl.key

HTTPS certificate and private key that the Module Server presents to secure incoming connections from the Tanium Server or outgoing connections to Tanium services.

trusted.crt

Contains the SOAPServer.crt of the Tanium Servers with which the Module Server has registered. The Module Server uses trusted.crt to validate Tanium Server certificates.

Tanium Server

SOAPServer.crt SOAPServer.key

HTTPS certificate and private key that the Tanium Server presents to secure outgoing connections to the Module Server or incoming connections from the systems of Tanium Console users or Tanium API users.

trusted-module-servers.crt

Contains the ssl.crt of the Module Server that has registered with the Tanium Server. The Tanium Server uses trusted‑module‑servers.crt to validate the Module Server certificate.

Note: The Tanium Server verifies the Module Server using certificate pinning: the Tanium Server checks that the ssl.crt presented by the Module Server matches the copy stored in trusted‑module‑servers.crt. As a result, an expired ssl.crt does not prevent communication between the Tanium Server and the Module Server and does not reduce the security of that connection.

SSL/TLS connection processes and setup tasks

The following figure illustrates the components, processes, and setup tasks involved in securing connections to the Tanium Server (Tanium Console or API) and Module Server.

Figure 2. SSL/TLS connections
SSL/TLS connections

The following processes correspond to the numbers in Figure  2.

1 1

Tanium Console/API access

When a user system connects to Tanium Console or the Tanium API, the Tanium Server presents its SOAPServer.crt certificate to prove its identity to the user system. In Figure  2, the Server uses a CA-issued version of SOAPServer.crt (Number 2) instead of a self-signed version. Therefore, the user system uses a CA certificate to validate SOAPServer.crt.

2 2

Replace self-signed certificate with CA-issued certificate

Generate a certificate signing request (CSR) and associated private key SOAPServer.key for the Tanium Server. You submit the CSR to your CA, which uses a CA certificate and associated private key to digitally sign the requested certificate (SOAPServer.crt). The CA signing certificate must also be present on the systems from which users access Tanium Console or the Tanium API (Number 1). The Tanium Server can then use the requested CA-issued certificate instead of a self-signed certificate.

3 3

Module Server registration

When installing the Module Server role in an Appliance Array, TanOS automatically establishes trust. For subsequent communication between the Servers, including during version upgrades, trust is already established, and the Servers automatically check trusted‑module‑servers.crt and trusted.crt during their mutual identity verification (Number 4).

Note: For information about installing the Module Server role in an Appliance Array, see Installing and managing an Appliance Array.

4 4

Mutual identity verification

To establish a secure TLS connection, the Tanium Server and Module Server prove their identities to each other. During the TLS handshake, the Tanium Server presents its SOAPServer.crt certificate to the Module Server, which verifies that its trusted.crt file contains SOAPServer.crt. Also during the handshake, the Module Server presents its ssl.crt certificate to the Tanium Server, which verifies that its trusted‑module‑servers.crt file contains ssl.crt.

5 5

Module Server to Tanium module services

The Module Server opens a single HTTPS listener to route requests from the Tanium Server to Tanium module services, which listen only on localhost. The Module Server forwards the requests locally over non-TLS connections from the HTTPS listener to the appropriate module service.

6 6

Module services to the Tanium Server

Module services connect to the Tanium Server over TLS and verify that the certificate that the Tanium Server presented during the TLS handshake is included in the trusted.crt file on the Module Server. Because module services use the same API as Tanium Console users, Client certificate validation is not enforced for this connection (in contrast with the connection described in Number 4).

CA-issued Tanium Server SOAP certificates

If your organization prefers to use CA-issued certificates to secure connections to systems, you can replace the self-signed certificates that the Tanium Server (SOAPServer.crt) generated during installation. In an active-active deployment, you can use the same CA-issued SOAPServer.crt (and associated private key) for both Tanium Servers as long as the Subject Alternative Name in the certificate specifies both Server names. Alternatively, you can use a distinct CA-issued certificate for each Tanium Server.

Obtaining a CA-issued certificate involves submitting a CSR to the CA and generating an associated private key. Use Tanium Console to create a CSR and replace the SOAPServer.crt certificate for the Tanium Server. For more information, see Securing Console and API access through certificatesManaging SSL/TLS certificates.

The CA uses a CA certificate and its associated private key to digitally sign the certificate that you requested. If a CA-issued certificate replaces SOAPServer.crt on the Tanium Server, then the CA signing certificate must also be present on the systems from which users access Tanium Console or the Tanium API. For Console users, the CA signing certificate must be in the trusted certificates store of their browsers. For API users, the CA signing certificate must be in the location specified in API calls, as shown in the ‑‑cacert <file path> option in the following example:

CODE
$ curl -s --cacert <file path> -X POST --data-binary @<sign in>.json https://localhost/api/v2/session/login

Certificate requirements

Work with your CA to obtain a certificate with the following specifications for the Tanium Server SOAP certificate:

  • X.509 certificate with TLS Web Server Authentication extended key usage

    CA certificate key usage
  • Separate certificate and private key files.

    Important: You must remove the passphrase from the key file.
  • PEM format (Base64 encoded)

  • Certificate signed with a SHA-256 hashing algorithm

  • ECC key, or an RSA key with a length of at least 2048 bits

    Tip: Secure certificates for server and client systems are required. To check key sizes, use OpenSSL from a CLI. If your Tanium license includes Tanium Certificate Manager, see Appliance dashboardView short keys for the steps to check the key sizes in your environment.
  • Common Name (CN) that specifies the fully qualified domain name (FQDN) or IP address of the Tanium Server.

    CA certificate common name
  • Subject Alternative Name that also specifies the FQDN or IP address of the Server, as well as that of the secondary Tanium Server in an active-active deployment where both Servers use the same certificate. Web browsers typically require the Subject Alternative Name to be present, regardless of whether the certificate applies to multiple Servers.

    CA certificate subject alternative name
  • If the certificate is part of a chain that includes an intermediate certificate, the certificate file must include the entire chain. If you receive the certificates as individual files, build a single file for the chain:

    1. Use a text editor to create a new text file.

    2. Paste the entire body of each certificate into the text file in the following order:

      1. Server certificate (SSL.crt or SOAPServer.crt)

      2. Intermediate certificate

      3. CA certificate

      Note: Be sure to include the beginning tag (-----BEGIN CERTIFICATE----) and ending tag (-----END CERTIFICATE----) of each certificate.
    3. Save the text file with the file name of the original server certificate (SSL.crt or SOAPServer.crt).

Install a custom certificate

You can replace the self-signed certificates generated by the Tanium Server and Tanium Module Server installers with an SSL certificate issued by a commercial or enterprise certificate authority (CA). You can also add a SAML certificate to a Tanium Server to enable digital signing of authentication requests from the Tanium Server and encryption of responses from a SAML identity provider.

Best practice: Though the option to install a replacement Tanium Server SOAP certificate is available in TanOS, in Tanium Core Platform 7.6.2 or later, use Tanium Console to replace the certificate on the Tanium Server. For more information, see Securing Console and API access through certificatesManaging SSL/TLS certificates.
Note: In a Tanium cluster, repeat the following procedures to upload and install the certificate and key files to each Tanium Server.
Note: For detailed information about the SSL certificates used in a Tanium deployment, see CA-issued Tanium Server SOAP certificates.

Install the SOAP or SAML certificate file on a Tanium Server or the SSL certificate file on a Module Server

Install the new, CA-issued certificate and associated private key on the Tanium Server or Module Server. When installing a certificate on the Tanium Server in an active-active deployment, perform these steps on each Tanium Server. When replacing the Module Server certificate, perform these steps on both the active Module Server and standby Module Server if implemented. Because the steps include stopping and restarting the Servers, perform this task during a maintenance window.

  1. Use SFTP to copy the new CA-issued SOAP certificate and key files to the /incoming directory on the Appliance.
  2. Sign in to the TanOS console as a user with the tanadmin role.
  3. Enter 2 (Tanium Operations).
  4. Select a menu option depending on which certificate you are installing:
    • Tanium Server replacement SOAP certificate: Enter 4 to initiate the Install Custom SOAP Cert process.

      CODE
      ------------------------------------------------------
      
      >>> Tanium Operations -> Install Custom SOAP Cert <<< 
      
      This menu will allow you to install a custom SOAP Certificate on the Tanium Server.
      The detailed process and requirements can be reviewed at:
      			
      https://help.tanium.com/bundle/ug_appliance_onprem/page/appliance/
      ssl_certificates.html#custom_CA
      
      Attention: the Tanium Server service will be restarted during this operation! 
      
      Please ensure that you have completed the following steps before continuing:
      
      1) Follow the instructions on help.tanium.com to generate a key/cert pair 
      2) Upload the SOAPServer.key and SOAPServer.crt files into the incoming 
      
      Would you like to continue? [Yes|No]:
    • Tanium Server SAML certificate: Enter S to initiate the Install SAMLEncryption Cert process.

      CODE
      ------------------------------------------------------
      
      >>> Tanium Operations -> Install SAMLEncryption Cert <<< 
      
      This menu will allow you to install a SAMLEncryption Certificate on the Tanium
      server. The detailed process and requirements can be reviewed at:
      			
      https://help.tanium.com/bundle/ug_appliance_onprem/page/appliance/ssl_certificates.html#custom_CA
      
      Attention: the Tanium Server service will be restarted during this operation! 
      
      Please ensure that you have completed the following steps before continuing:
      
      1) Follow the instructions on help.tanium.com to generate a key/cert pair 
      2) Upload the SAMLEncryption.key and SAMLEncryption.crt files into the incoming 
      
      Would you like to continue? [y/n]:
    • Module Server: Enter M to initiate the Module Server SSL Certificate process.

  5. Follow the prompts to install the certificate and key files that you uploaded:
    1. Enter Yes at the prompt to proceed with the installation.
    2. Select the certificate that you are importing, verify that the displayed certificate details are correct, and enter Yes at the prompt.
      CODE
      >>> Tanium Operations -> Install Custom SOAP Cert -> Select Certificate <<<
      
      Pick a certificate (.pem or *.crt) to import. Press ENTER to re-scan the incoming directory.
      
         1: SOAPServer.crt                                             2.1K
            subject= /C=DE/ST=BE/L=Berlin/OU=IT
      
         R: Return, no selection
      	
      Please select: 1
      
      Examining SOAPServer.crt
      MD5: fd9bbe48d6ea10037d3d240f96c0c211
      
      Not After: Sep 2 09:43:41 2023 GMT
      Subject: C=DE, ST=BE, L=Berlin, OU=IT
      
      SOAPServer.crt: C=DE, ST=BE, L=Berlin, OU=IT
      
      Use this file? [Yes|No]:
    3. Select the private key that you are importing.

      The Appliance verifies that the key is valid and matches the certificate.

      CODE
      >>> Tanium Operations -> Install Custom SOAP Cert -> Select Key <<<
      
      Pick a key (.key or *.key.pem) to import. Press ENTER to re-scan the incoming directory.
      
         1: SOAPServer.key                                             1.8K
            Valid RSA Key, matching certificate
      
         R: Return, no selection
      
      Please select: 1
      Creating backup of existing files.
      
      Would you like to backup existing SOAP files to tancopy outgoing? [Yes|No]:
    4. Enter Yes at the prompt to create a backup of the files in the /outgoing directory of the tancopy user.

      The Tanium Appliance stops the Tanium Server or Module Server service, installs the new certificate and key, and restarts the service.

      CODE
      Creating backup of existing files.
      
      Would you like to backup existing SOAP files to tancopy outgoing? [Yes|No]: yes
      Existing SOAP files have been placed in the sftp outgoing directory.
      This location will be cleaned daily at 02:00am Appliance time
      Stopping the Tanium Server service - this might take a while...
      Installing new certificate...
      Starting the Tanium Server service...
      Successfully installed new SOAP certificate and restarted the Tanium Server
    5. To re-register the Module Server, enter Yes at the prompt and enter the user name and password of a Tanium Console admin user.
      CODE
      This Appliance is part of an Appliance Array containing a remote Tanium Module Server.
      The TMS needs to re-register with this Appliance to begin using the newly loaded certificate.
      
      Do you want to register the TMS now? [Yes|No]: yes
      Enter the Tanium Console admin user name: tanium
      Enter Tanium Console admin user password:
  6. (Module Server only) You must manually re-register the Module Server after replacing the Module Server SSL certificate. Follow the steps in Manually register the remote Module Server with each Tanium Server.

Manually register the remote Module Server with each Tanium Server

After you replace the certificate and private key on the Module Server, you must manually register the primary Module Server with the Tanium Server. This process includes configuring the Module Server on the Tanium Server and then enabling the Module Server. In an active-active deployment, you must register the Module Server with each Tanium Server. Because the steps include stopping and restarting services, perform this task during a maintenance window.

Important:
  • Re-register only the primary Module Server.

  • Do not use these steps when replacing the certificate on a Tanium Server. Allow the Module Server to automatically re-register while following the prompts.

Configure the Module Server on the Tanium Server

  1. Sign in to a Tanium Server Appliance as a user with the tanadmin role.
  2. Enter 2-A (Tanium Operations > Configure Module Server(s)).
  3. Enter 1 and follow the prompts to configure the Module Server address, which specifies the address the Tanium Server uses to connect to the Module Server. Be sure to copy the certificate fingerprint. You need the certificate fingerprint to configure the Module Server.
    CODE
    >>> Tanium Operations ->  Configure Module Server(s) ->  Configure Module Server Address <<< 
    
     Before continuing, please have the following at hand:
     - Hostname of the remote Module Server
     - Domain name of the remote Module Server
     - IP of the remote Module Server
    
     After completing this step and until step 2 (registration) has been completed on the remote 
     Module Server, this Tanium Server will have limited functionality!
     The following fingerprint is required for step 2:
     800BBFB2942BD9A033F39CBC61049BCE68DEBDF789B38E05569AC0C0794D0BD985C1CF9A0CB73420FCC53F01756E51F28
     7D29B6D62DFFD5781909E8BCA6E7202
    
     Would you like to continue? [Yes|No]: yes
    
     Continue with change.
     Please enter the IP of the remote Module Server: 10.10.10.103
     Please enter the hostname (NOT FQDN) of the remote Module Server: appliance-tms1
     Please enter the domain name of the remote Module Server: tam.local
    
     Disabling local Module Server instance (if exist)
     Setting new Tanium Module Server address 10.10.10.103
     Changing hosts file
    
     Would you like to restart the Tanium Server service? 
     Attention - this might take a long time! [Yes|No]: yes
    
     Restarting the Tanium Server service
    
     Attention: 
     Step 1 of the Remote Module Server configuration process completed successful.
     Step 2 needs to be completed on the Remote Module Server. Follow the instructions
     in "Tanium Operations (2) -> Register Remote Module Server (A)"
     This Tanium Server will not be functional until step 2 has been completed as well.
    
     The following fingerprint is required for step 2 - please copy it: 
     800BBFB2942BD9A033F39CBC61049BCE68DEBDF789B38E05569AC0C0794D0BD985C1CF9A0CB73420FCC53F01756E51F28
     7D29B6D62DFFD5781909E8BCA6E7202
    
     Press enter to continue

Enable the remote Module Server

  1. Sign in to the Tanium Module Server Appliance as a user with the tanadmin role.
  2. Enter 2-A (Tanium Operations > Register Module Server).
  3. Enter 2 and follow the prompts to enable the remote Module Server and to configure its connection with the Tanium Server. Specify the Tanium Console admin user (tanium, not a TanOS user).
    CODE
    >>> Tanium Operations -> Configure Module Server(s) -> Enable Module Server <<< 
    
     Before continuing, please have the following at hand:
     - Hostname of the Tanium Server
     - Domain name of the Tanium Server
     - IP of the Tanium Server
     - Credentials of a Tanium User with administrative privileges
     - Fingerprint of the Tanium Server certificate (obtained in Step 1)
    
     Would you like to continue? [Yes|No]: yes
    
     Going ahead with Module Server registration
     Please enter the IP of the Tanium Server: 10.10.10.101
     Please enter the hostname (NOT FQDN) of the Tanium Server: appliance-ts1
     Please enter the domain name of the Tanium Server: tam.local
     Please enter the Tanium Console administrative user name: tanium
     Please enter the password (will not be displayed): 
     Please enter the fingerprint of the Tanium Servers certificate: 800BBFB2942BD9A033F39CBC61049BCE
     68DEBDF789B38E05569AC0C0794D0BD985C1CF9A0CB73420FCC53F01756E51F287D29B6D62DFFD5781909E8BCA6E7202
    
     Verified entered fingerprint successfully
     Registering Module Server with 10.10.10.101 (60 second timeout)...
     Added hosts entry
     Registration completed successful
    
     Restarting Module Server to ensure settings have taken
    
     Restart complete
    
     Press enter to continue

    For a cluster, register the Tanium Servers individually.

    CODE
    >>> Tanium Operations -> Configure Remote Module Server -> Enable Module Server <<< 
    
     Before continuing, please have the following at hand:
     - Hostname of the Tanium Server
     - Domain name of the Tanium Server
     - IP of the Tanium Server
     - Credentials of a Tanium User with administrative privileges
     - Fingerprint of the Tanium Server certificate (obtained in Step 1)
    
     Would you like to continue? [Yes|No]: yes
    
     Going ahead with Module Server registration
     Please enter the IP of the Tanium Server: 10.10.10.102
     Please enter the hostname (NOT FQDN) of the Tanium Server: appliance-ts2
     Please enter the domain name of the Tanium Server: tam.local
     Please enter the Tanium Console administrative user name: tanium
     Please enter the password (will not be displayed): 
     Please enter the fingerprint of the Tanium Servers certificate: 800BBFB2942BD9A033F39CBC6
     1049BCE68DEBDF789B38E05569AC0C0794D0BD985C1CF9A0CB73420FCC53F01756E51F287D29B6D62DFFD5781
     909E8BCA6E7202
    
     Verified entered fingerprint successfully
     Registering Module Server with 10.10.10.102 (60 second timeout)...
     Added hosts entry
     Registration completed successful
    
     Restarting Module Server to ensure settings have taken
    
     Restart complete
    
     Press enter to continue

Restart Tanium Server and Module Server services

Restart all Tanium services on both the Tanium Server and Module Server Appliances. For more information, see Restart services or networking.

(Optional) Enable HTTP Strict Transport Security for Tanium Console access

If you have installed a valid CA-issued certificate, you can optionally enable HTTP Strict Transport Security (HSTS) on the Tanium Server. To do so, you add the Strict-Transport-Security HTTP header, which notifies browsers to always use HTTPS to connect to Tanium Console after a user accesses the Console using HTTPS the first time. In an active-active deployment, you must perform this procedure on both Tanium Servers.

Important: Do not enable HSTS if you have not installed a CA-issued certificate. Doing so disables access to Tanium Console.
  1. From the Tanium Console Main menu, go to Administration > Configuration > Settings > Advanced Settings and click Add Setting.
  2. Configure the following properties and then click Save.
    • Setting Type: Local

    • Platform Setting Name: DefaultHeaders

    • Value Type: Text

    • Value: Strict-Transport-Security: max-age=31536000; includeSubDomains

      Tip: You can use any value that your organization policies recommend for max-age, which is the value that instructs the browser on how long, in seconds, to use HSTS for the Tanium Server address. The recommended minimum value is 31536000 (one year).