Installation and Configuration

This section assists with the preparation of the customer's instance in order to enable Tanium Compliance and Configuration integration components to function properly.

Configure the integration

There are two options to set up the integration. You can either use the Guided Setup within the Tanium CC Integration menu, or follow these steps:

  1. Verify that a discovery source for CC-Tanium is available. Add the discovery source if it does not already exist.
    1. Sign in to ServiceNow. In the filter navigator, enter CI Class Manager. Click Open Hierarchy. In the Hierarchy, click Configuration Item. In the Configuration Item menu, click Attributes.
    2. Filter the list of attributes. In the table header, click Toggle Filters. Under Column label, type Discovery and press Enter.
    3. Click Discovery source.
    4. Click the Choices tab. In the table header, click Toggle Filters. Under Label, type CC-Tanium and press Enter. If a CC-Tanium item is listed, no further action is required.
    5. If a row with CC-Tanium is not in the list, click New. Type CC-Tanium (case sensitive) for the Label and Value fields, and then click Submit.
  2. Setup users with correct roles:
    1. x_taniu_tanium_cc.admin – This role provides a Tanium CC Integration menu for accessing data specific to the Tanium Compliance and Configuration Management Integration.  This role must be combined with appropriate roles from Compliance and Configuration Management and Vulnerability Management.
    2. x_taniu_tanium_cc.user – This role provides a Tanium CC Integration menu for viewing the Tanium Policies, Tests and Test Results.  This role must be combined with appropriate roles from Compliance and Configuration Management and Vulnerability Management.
    3. Add the role x_taniu_tanium_cc.rest.
  3. Setup scripted REST API user account
    1. Create a ServiceNow service account.
    2. Enable the Web Service Access only checkbox.
    3. Add the role x_taniu_tanium_cc.rest.
  4. Setup mid server (optional)
    1. Go to Mid Server > Capabilities.
    2. Select TaniumCC from the list.
    3. Edit the MID Servers and select the MID Servers that will be used to communicate with Tanium.
    4. Capture the IP addresses of these MID Servers for the Tanium API token that is required
  5. Setup Integration Instance Parameters
    1. Go to Tanium CC Integration > Configurations > Instances
    2. Open the integration instance record for Tanium Compliance and Configuration Management Integration Instance and verify/validate the following parameters have been created.
      1. API Base URL

        • Configuration: baseUrl

        • Value: URL of the Tanium instance to connect with

      2. Token

        • Configuration: token

        • Password Value: Tanium API Token for the ServiceNow instance

      3. Batch Count

        • Configuration: batch_count

        • Value: 25 (A larger number can be configured initially, but if errors occur the value should be decreased.)

      4. Device Batch Count

        • Configuration: device_batch_count

        • Value: 500 (Number of devices retrieved per API call during the device import. Decrease this value if device imports fail with size errors.)

      5. Device Aging

        • Configuration: device_aging

        • Value: 45 (Number of days since the last Tanium client registration)

      Note:

      Two parameters labeled Deprecated also appear in the list. The parameters are no longer used and can be ignored.

  6. Activate Tanium Integrations
    1. Go to Tanium CC Integration -> Configurations -> Integrations.
    2. Select the Tanium CC – Policy Integration.
      • Ensure the integration is Active.

      • Validate the schedule for when the integration runs.

      • Ensure the Tanium CC Policy data sources are added.

    3. Select the Tanium CC - Test Integration.
      • Ensure the integration is Active.

      • Validate the schedule for when the integration runs.

      • Ensure the Tanium CC Test data sources are added.

    4. Select the Tanium CC – Test Result Integration.
      • Ensure the integration is Active.

      • Validate the schedule is set to On Demand.

      • Ensure the Tanium CC Test Result data sources are added.

    5. Select the Tanium CC – Device Integration.
      • Ensure the integration is Active.

      • Validate the schedule for when the integration runs.

      • Ensure the Tanium CC Device data sources are added.

Check Connection job

The Tanium CC - Check Connection scheduled job periodically verifies that the integration can reach Tanium.

  • Ships active by default.

  • Runs every 6 hours. An administrator can change the interval using the Repeat Interval setting for the job, also called run_period.

  • Writes a Boolean flag that shows connection status. It does not update any system properties.

  • This is a separate job from the weekly Tanium CC - Rotate API Token job. That job is unchanged in this release.

CI Handling Configuration Flags

Flag

When enabled

When disabled

allow_ci_create

Creates a new CMDB configuration item, and its source CI, for a device that has no existing CI

Does not create CIs for unmatched devices. Those rows are ignored

allow_ci_update

Updates an existing matched CI with incoming data

Leaves existing CIs unchanged. The row is reported as ignored, and no new or changed CI record is expected. This is the typical setting.

allow_ci_disc_item_match

Set to true to suppress Discovered Item matching.

Set to false to enable Discovered Item matching, which creates or matches the Discovered Item record so findings link to it. This flag is set to false by default.

Tanium Egress Rules

In order allow Tanium to send the connect job to ServiceNow you will also need to consult with Tanium to add ServiceNow to the connect whitelist.

Tanium User Account

The Tanium user account that will be used to connect will need to be part of the following roles within Tanium:

  • API Gateway User

  • Comply Operator

  • Interact Basic User

Creating API tokens for ServiceNow

API tokens for ServiceNow integrations

API authentication tokens enable users to secure sessions between ServiceNow integrations and your Tanium environment. One API token is required for each service account or persona that you use to work in a ServiceNow integration. After you create an API token in your Tanium instance, you can then enter the API token as a system property when configuring the integration in ServiceNow. Scheduled jobs in ServiceNow automatically rotate the tokens every seven days by default.

Important: Each Tanium integration requires its own dedicated API token to ensure stable and secure communication. These tokens must be unique for each integration and for each ServiceNow environment. If you use multiple Tanium integrations across multiple ServiceNow environments (such as dev, test, and prod), you must generate a separate API token for each combination. This is essential because each integration manages its own token rotation. Reusing a token across integrations or environments might result in authentication conflicts, which can cause one integration to disrupt the other Tanium integrations.

RBAC for API tokens

Consider the following factors when you select a service account or a persona to associate with a token:

  • Service account: A service account is a user account that no specific user owns. Using a service account instead of a persona gives you more visibility into who is making changes during a session. All users who use the service account must share its credentials. For more information, see Configure a service account.

  • Persona: Using a persona enables you to configure one set of RBAC controls (such as role and computer group assignments) that apply to all the users who are assigned to that persona. For more information, see Configure a persona.

Note: Use a service account to create every token unless the token is for workflows that a specific user account or persona must run according to the mandates of your organization. If users or personas are deleted or disabled (such as when a user leaves your organization), their tokens produce 401 Unauthorized errors when other accounts or personas try to use those tokens. Such errors are less likely for tokens that are bound to service accounts because those accounts are more often permanent.

Trusted IP addresses for API tokens

Each API token specifies trusted IP addresses for the ServiceNow environment that communicates with Tanium. Tokens can only authenticate traffic that originates from the defined IP ranges. To enhance security, restrict token access to only the IP address ranges that are associated with your ServiceNow environment.

Before you create an API token, determine the appropriate trusted IP addresses for your environment:

  • On-Premises: Record the IP addresses of the management, instrumentation, and discovery (MID) servers that faciliate communication between your ServiceNow instances and the Tanium environment.

  • Cloud: Record the Source address used for integrations into customer network with NO VPN ranges of your ServiceNow instance. This is a /29 IP address range. Because production environments span two data centers, customers must allow addresses from both /29 IP ranges to ensure reliable connectivity.

To identify the IP addresses in your ServiceNow instance, see the ServiceNow Support KB article Finding the IP address information for your instance.

Tip: To test the integration, you can use 0.0.0.0/0 to allow access from any IP address. However, this configuration is insecure and should never be used in production, because it permits token usage from any source IP.

Configure a service account

Associating an API token with a service account instead of a persona is a best practice, as described in RBAC for API tokens. If an account for the integration already exists, edit that account to assign the necessary roles. Otherwise, configure the assignments when you create a new account.

Perform the following steps to configure a service account. All the links in these steps are to the Tanium Console User Guide.

  1. In Tanium Console, create a service account for your ServiceNow integration if the account does not already exist. For the steps, see Create a user.
  2. Assign the following roles to the account. For the steps, see Manage role assignments for a user.
    • Comply Operator
    • Interact Basic User
    • Gateway User
  3. Click Save to save the account configuration.

For more information about how to create and configure user accounts in Tanium Console, see Managing users.

Configure a persona

Associate a persona with an API token only if you do not use a service account, as described in RBAC for API tokens. If a persona for the integration already exists, edit that persona to assign the necessary roles and users. Otherwise, configure the assignments when you create a persona.

Perform the following steps to configure a persona. All the links in these steps are to the Tanium Console User Guide.

  1. In Tanium Console, create a persona if the persona for your ServiceNow integration does not already exist.
  2. Assign the following roles to the persona, as described in Manage role assignments for a persona:
    • Comply Operator
    • Interact Basic User
    • Gateway User
  3. Assign users to the persona, as described in Manage user assignments for a persona.
  4. Click Save to save the persona configuration. If you created a new persona, you must perform a hard refresh on your browser tab before the persona becomes available to select for your current Tanium session.

Create API tokens

Review the prerequisites and best practices in API tokens for ServiceNow integrations before you create tokens. Then perform the following steps for each token.

  1. Sign in to Tanium Console as a user who has the role permissions to create and manage API tokens. For details, see RBAC management permissions.
  2. From the Main menu, go to Administration > Permissions > API Tokens.
  3. Click New API Token, configure the following settings, and click Create.
    • Notes: Identify the integration type and ServiceNow instance to which the token applies.
    • Expiration: By default, ServiceNow instances automatically rotate tokens every seven days. Set an expiration interval that is a bit longer than seven days to account for unexpected events, such as disruptions to network connections, that might delay the automatic rotation.
    • Trusted IP Addresses: Enter the IP addresses for the ServiceNow systems that communicate with Tanium Cloud, as described in Trusted IP addresses for API tokens.
  4. Copy Copy the token to your clipboard. Paste the token in a text file and save the file in a secure location.
    Important: The token value includes the token- prefix. You cannot view the token value in Tanium Console after the visibility timeout of five minutes expires, you refresh the API Tokens page or grid, or you navigate to another Console page. If you later manually rotate the token, you must re-enter its value. Therefore, if you want manual rotation to be an option, copy the value (including token-) before the timeout and save it in a secure location.
Note: To troubleshoot issues with API tokens, see the authentication log for your infrastructure:

Set up sensor harvesting

After you create the token, you must register several sensors with Tanium™ Data Service (TDS) to ensure that TDS periodically harvests the latest results for those sensors.

  1. Sign in to Tanium Console as a user who has the role permissions to register sensors. For more information, see Tanium Data Service (TDS) permissions.
  2. From the Main menu, go to Modules > Interact > Overview and select Settings Settings > Registration and Collection.
  3. Check whether the Status is Registered Registered for the following sensors.
    Tip: You can quickly find specific sensors by entering a search string such as compliance findings or network adapter in the Filter items Filter items field.
    • Comply - Compliance Findings
    • Comply - Compliance Findings - First Found
    • Comply - Compliance Findings - Last Scan
    • Network Adapters
  4. Select Actions > Add to register any of the preceding sensors if they are not already registered.

Create a Tanium Connect job for compliance findings

Create a Tanium Connect job to push the Tanium Comply Compliance Findings to ServiceNow:

  1. Sign in to Tanium Console as a user who has the role permissions to create connections. For more information, see User role requirements.
  2. From the Main menu, go to Modules > Connect > Connections and click Create Connection.
  3. For the Connection:
    1. General Information
      1. Name - SN – Compliance – <sn_instance>

      2. Description - This will provide the Compliance findings to ServiceNow.

    2. Configuration
      1. Source

        • Source - Tanium Comply (Findings)

        • Finding Type - Compliance

        • Filter by Group = Only use if you want to filter the findings sent to ServiceNow by Tanium Group

        • Filter by Report = Only use if you want to filter the findings sent to ServiceNow by Tanium Report

      2. Destination

        • Destination - HTTP

        • Destination Name - SN - <sn_instance>

        • URL - https://<sn_instance>.service-now.com/api/x_taniu_tanium_cc/tanium_cc_test_results?taniuminstance=<sn_instance>

        • Method - POST

        • Headers - Content-Type | application/json

        • User Authentication - Basic Authentication

        • User Name - User name of the ServiceNow service account created in step 4 of the Configure the integration.

        • Password - Password of the ServiceNow service account created in step 4 of the Configure the integration.

        • Advanced

          • Batch Size - 2500

          • Batch Size Unit - Records

          • Timeout - 30

    3. Configure Output
      1. Add Filter

      2. Format

        • Format - CSV

        • Include Headers - True

        • Detect Dynamic Data Exchange (DDE) - True

      3. Columns

        • Computer ID

        • Computer Name

        • Computer Serial Number

        • Tanium Client IP Address

        • Rule ID

        • Standard

        • Standard Version

        • Profile

        • Version

        • Status

        • First Found Date

        • Last Scan Date

        • Expected States

        • Actual Values

    4. Schedule
      1. Enable Schedule - True

      2. Schedule Type - Basic

      3. Timezone - Local

      4. Frequency - One run per day, every day

      5. Time - 2 AM

  4. Click Save.

Test the configuration

  1. Sign in to the ServiceNow dashboard, go to the scheduled job Tanium CC – Check Connection, and run it. Wait for the job to finish before continuing.
  2. Go to Tanium CC Integration > Configurations > Integrations and verify that each integration status is green.