Configure smart card authentication for Tanium Console users on Tanium Appliances
The Tanium™ Console supports smart card authentication. A smart card is physical credential that has a microchip and data, such as secure certificates and keys. Smart cards are also known as common access cards (CAC) and personal identity verification (PIV) cards. Endpoint systems are set up with smart card readers, and end users use their smart card to authenticate and gain access.
Requirements
When smart card authentication is enabled, the Tanium Server and Tanium Module Server must reside on separate hosts. All authentication to Tanium Console requires smart cards unless the authentication request is from one of the following sources:
-
The system hosting the Tanium Server through the local loopback address (127.0.0.1 for IPv4 or [::1] for IPv6).
-
The Module Server connection to the Tanium Server.
Consequently, any additional integrations that you want to automate must reside on one of the two hosts. The following are some examples:
-
SSRS plugin
-
Microsoft Excel plugin (unless using the version that supports smart card authentication)
-
Tanium™ Connect for Lightweight Directory Access Protocol (LDAP) synchronization
-
PyTan
-
Third-party security operations center (SOC) websites that query Tanium for data
-
Links to content that is hosted on the Tanium Server must use the local loopback address. This is because the TDownloader service that downloads content to the Tanium Server cannot present a certificate.
-
Links to Tanium module or shared service imports use both the local loopback address (for the workbench) and the Tanium Module Server fully qualified domain name (FQDN) for the portion of the solution installed on the Module Server.
Create a certificate
Smart card authentication for Tanium Console access depends on the public key infrastructure (PKI) of your organization. You can get started if you have a Client certificate that is signed by the root certificate authority (CA) certificate for the domain where the Tanium Server is deployed. Make sure the certificate has the Proves your identity to a remote computer attribute.
Create a new certificate file from certificates that you extract from the Client certificate. Usually, you need to extract only the root certificate. If this does not work, you might also need to add intermediate certificates to the certificate chain.
Extract the certificates
Create a new certificate file
Configure CAC
Step 1: Install the certificate
Upload and install the certificate:
-
Use SFTP to copy the certificate file (PEM format) to the /incoming directory on the Tanium Server appliance.
-
Sign in to the TanOS console as a user with the tanadmin role.
-
Enter 2 to go to the Tanium Operations menu.
CODE------------------------------------------------------ >>> Tanium Operations Menu <<< 1: Tanium Service Control 2: Tanium Configuration Settings 4: Install Custom SOAP Cert 5: Manage Custom Signing Keys 7: Download SOAP Certificate 9: Import CAC Certificate A: Configure Module Server(s) B: Configure Tanium Cluster C: Manage Content M: Module Operations I: Import public key to Tanium Zone Server X: Advanced Operations R: Return to previous menu RR: Return to top ------------------------------------------------------ -
Enter 9 and follow the prompts to import and install the CAC certificate file.
Step 2: Add the required Tanium Server configuration settings
-
Sign in to the TanOS console as a user with the tanadmin role.
-
Enter 2 to go to the Tanium Operations menu.
CODE------------------------------------------------------ >>> Tanium Operations Menu <<< 1: Tanium Service Control 2: Tanium Configuration Settings 4: Install Custom SOAP Cert 5: Manage Custom Signing Keys 7: Download SOAP Certificate 9: Import CAC Certificate A: Configure Module Server(s) B: Configure Tanium Cluster C: Manage Content M: Module Operations I: Import public key to Tanium Zone Server X: Advanced Operations R: Return to previous menu RR: Return to top ------------------------------------------------------ -
Enter 2 to go to the Configuration Settings menu.
CODE------------------------------------------------------ >>> Tanium Operations -> Configuration Settings <<< Note: Some settings may require a service restart to take effect. 1: Edit Tanium Server Settings 2: Edit Tanium Server TDL Settings 3: Add Tanium Server TDL Auth User 4: Add Tanium Server TDL Auth Cert 5: Edit Tanium Module Server Settings 6: Edit Tanium Module Server TDL Settings 7: Add Tanium Module Server TDL Auth User 8: Add Tanium Module Server TDL Auth Cert 9: Edit Tanium Zone Server Settings 11: Edit isolated subnets list 12: Edit separated subnets list 13: Control Root CA Certs R: Return to previous menu RR: Return to top ------------------------------------------------------ -
Enter 1 to go to the Tanium Server Config Settings menu.
CODE>>> Tanium Operations -> Configuration Settings -> Edit <<< Editing: Tanium Server Config Settings 1: AddressMask 16777215 2: AllowedHubs 127.0.0.1 3: AuthPluginTimeoutSeconds 60 4: AuthenticationPlugin InternalPython:tanium_pam4/pam_workflow.py 5: ClientCertificateAuth /opt/Tanium/TaniumServer/cac.pem 6: ClientCertificateAuthField X509v3 Subject Alternative Name 7: ClientCertificateAuthRegex .*:\s(\d+)@.* 8: ConsoleSettingsJSON /opt/Tanium/TaniumServer/http/config/console.json 9: EnforceAllowedHubs 1 10 ForceSOAPSSLClientCert 1 11: LogPath /opt/Tanium/TaniumServer/Logs 12: LogVerbosityLevel 1 13: ModuleServer 10.10.10.103,appliance-tms1.tam.local:17477 14: ModuleServerPort 17477 15: ReportingTLSCertPath /opt/Tanium/TaniumServer/reporting.crt 16: ReportingTLSKeyPath /opt/Tanium/TaniumServer/reporting.pvk 17: SQLConnectionString postgres:10.70.164.248@user=postgres dbname=tanium sslmo de=require sslcert=/opt/Tanium/.postgresql/postgresql.crt sslkey=/opt/Tanium/. postgresql/postgresql.key sslcompression=1 18: ServerPort 17472 19: ServerSOAPPort 8443 20: TrustedCertPath /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem22: Version 7.8.4.1234 A: Add a line R: Return to previous menu RR: Return to top -
Use the menu to add Tanium Server settings as described in the Enable CAC settings table.
-
Restart the Tanium Server service. For more information, see Start, stop, and restart Tanium services on Tanium Appliances. You can now Sign in to Tanium Console with your CAC.
The following table summarizes the settings you must add to enable CAC.
|
Setting Name |
Guidelines |
|---|---|
|
ForceSOAPSSLClientCert |
Optional. If the registry value does not exist (but other CAC/PIV registry values do exist), or is set to a value of 1, CAC/PIV authentication becomes mandatory. |
|
ClientCertificateAuthField |
Optional. If it is not defined, certificate authentication matches on the Subject field. Specify a value for this key if you want to match on a different attribute. Many organizations use X509v3 Subject Alternative Name. Example: X509v3 Subject Alternative Name Note: X509v3 is typically hidden when displayed in Windows. Note that X509v3 is case sensitive. |
|
ClientCertificateAuthRegex |
Optional. If it is not defined, the default regular expression (regex) is used to match the user identifier. The default is .*CN=(.*)$.
Note:
The following expression is the best practice to match any Subject Alternative Name entry: .*:\s(\d+)@.* |
|
ClientCertificateAuth |
Defines the location of the certificate file to use for authentication, such as: /opt/Tanium/TaniumServer/cac.pem Note: The path name is case sensitive. |
|
CACTrustedAddresses |
Defines which endpoints to exempt from CAC authentication requirements. These systems will not require a CAC/PIV certificate to authenticate and will work for all Tanium assets. Specify the Tanium Server and Tanium Module Server. Specify additional addresses to exempt any other trusted systems and components. In an active-active deployment, you must configure this setting on both Tanium Servers to prevent errors with TDownloader. |
|
cac_ldap_server_url |
Optional. If it is defined, requires that Tanium validate every CAC/PIV authentication attempt with LDAP to determine the state of the account that is signing in. Because this does not use the Windows authentication subsystem, the service account running Tanium must have the privileges to look up accounts through a direct LDAP query. Use the following syntax, where LDAP must be uppercase: LDAP://<LDAP FQDN> If multiple domains are in use, specify a global catalog in the syntax GC://<domain>.
Note: Also configure LDAP integration in Tanium Console, and assign roles, computer groups, and personas to user groups and users that are imported from the LDAP server. For more information, see Importing and authenticating users through LDAP.
|
|
CertLDAPQueryField |
Optional. If it is defined, it specifies an LDAP user naming attribute. If it is not defined, the default attribute is used. Valid values are:
|
|
CertLDAPCertField |
Optional. Add this setting in conjunction with the cac_ldap_server_url setting. This setting specifies a secondary attribute to query within the X509 certificate. Usually, this value is expected to match ClientCertificateAuthField with a value of X509v3 Subject Alternative Name. If it is not defined, certificate authentication matches on the Subject attribute.
Note: X509v3 is typically hidden when displayed in Windows. The string X509v3 is case sensitive.
|
|
CertLDAPCertFieldRegex |
Optional. Add this attribute in conjunction with the cac_ldap_server_url setting. This setting specifies a regular expression that accounts for the User Principal Name (UPN) Suffix when a secondary LDAP lookup occurs. This is necessary because LDAP synchronization matches UPN without the UPN Suffix. If it is not defined, whatever is returned in the user naming attribute is used. The following example is most commonly used. It returns the full UPN: .*\:\s*([^@]+@.*)$ The following example returns just the numeric value from the UPN: ([^@]+)@.*$ |
Troubleshoot smart card authentication
-
Check the configuration for typos, such as extra spaces or letter case errors.
-
Test whether the system works with just the required registry keys. Then enable and test optional settings, such as the LDAP integration settings.
-
In an active-active deployment, configure the CACTrustedAddresses value with entries for each Tanium Server and the Module Server to avoid errors by the Tanium Downloader (TDownloader) service during package synchronization.
-
Set the logging level to 41 or higher on the Tanium Server and Module Server to record the following events. For more information, see Troubleshooting Console and Interact. If you Create a custom log that records only these events, use .*Client Certificate auth.* as the filter regex. After generating logs at level 41, search for the following log entries:
-
If ClientCertificateMatchField is set and does not match:
-
No regex match:
CODEClient Certificate auth logon denied, match failed -
Field used for regex not found in the CA certificate:
CODEClient Certificate auth logon denied, match property not present
-
-
If ClientCertificateMatchField passes or is empty, the user is extracted using the ClientCertificateAuthField and ClientCertificateAuthRegex:
-
If ClientCertificateAuthRegex is not matched:
CODEClient Certificate auth logon denied, regex not matched -
If ClientCertificateAuthField is not found:
CODEClient Certificate auth logon denied, field not found -
If the the regex matches and the field is found but the name is not valid:
CODEClient Certificate auth logon denied, unknown user
-
-
Any other error or information message also starts with:
CODEClient Certificate auth
-