Securing Tanium Console, API, and Module Server access in a Windows deployment

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.

Note: 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 in a Windows deployment. To manage the keys that the Tanium Protocol uses, see Securing Tanium connections and operations through digital 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 Windows server, you can choose between a self-signed certificate or (if one is available) a CA-issued 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 SAML.

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

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

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

Module Server registration

During a fresh installation of the Module Server, you must manually enable trust between it and the Tanium Server before registration. The Module Server then registers with the Tanium Server and the Servers generate the trusted‑module‑servers.crt and trusted.crt files. 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).

For information about manually enabling trust for the server certificates by verifying or entering certificate fingerprints (hash digests of certificate public keys) during installation on Windows, see Trust Tanium Server certificate.

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

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

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 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 View 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).

(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).