Reference: Creating connections for large-scale integrations
If your connections run slower than expected in large-scale ServiceNow vulnerability response integrations, follow the suggestions in this reference to optimize connections in Tanium Connect for maximum throughput and reliability.
Create a custom sensor to pull CVE status
To send CVE status data from a Tanium instance to ServiceNow through a large-scale integration, create a custom sensor that pulls CVE data.
-
In Tanium Console, go to , and then click New Sensor.
-
Configure the sensor with the following settings:
-
Details section:
-
Name: Custom Comply – CVE Findings – Resolution Complete - Large-Scale
-
Description: Returns the resolution date, days open and current status for all observed vulnerabilities that the endpoint has been vulnerable to within the last X days.
-
Content Set: Comply Reporting
-
-
Settings section:
-
Category: Compliance
-
Result Type: Text
-
Max Sensor Age: 15 Minutes
-
Max String Age: Enable for 7 days
-
Max Strings: Deselected (disabled)
-
Ignore case in result values: Selected (enabled)
-
Hide this sensor from sensor lists and parse results: Deselected (disabled)
-
Split into multiple columns: Selected (enabled)
-
Use Delimiter: |
-
-
Column Name table (this table appears after you select Split into multiple columns):
-
1
-
Column Name: CVE
-
Result Type: Text
-
-
2
-
Column Name: First Seen
-
Result Type: Date/Time (RFC822)
-
-
3
-
Column Name: Last Seen
-
Result Type: Date/Time (RFC822)
-
-
4
-
Column Name: Status
-
Result Type: Text
-
-
5
-
Column Name: Days Open
-
Result Type: Numeric
-
-
6
-
Column Name: Resolution - Date
-
Result Type: Date/Time (RFC822)
-
-
7
-
Column Name: Type
-
Result Type: Text
-
-
-
In the Parameters section, click Add Parameter, select Numeric, and then specify the following information:
-
Key: days
-
Label: Exclude CVEs not seen in X days
-
Select the following Options and specify the included values:
-
Provide Help Text: Exclude CVEs not seen in X days
-
Provide Default Value: 14
-
Provide Minimum Value: 1
-
Provide Maximum Value: 180
Tip: You can set Default Value to any value between 7 and 14. When you schedule the connection in Tanium Connect later in Create a custom connection to push CVE status, ensure the connection runs more frequently than the value you specify for Provide Default Value to ensure optimum coverage. -
-
-
In the Implementation section, add the scripts found at Vulnerability Management Comply Orchestration with Tanium - Appendix (Sign-in Required), or Contact Tanium Support for the supported operating systems scripts. You must add the script for each operating system to save the sensor. For each script, ensure you select the correct Query Type that is noted with each script.
-
Click Save.
-
Register sensors for large-scale integrations
In Tanium, register the sensor that you created in the previous section with Tanium Data Service for collection. For more information about Tanium Data Service, see Managing Tanium Data Service (TDS).
-
In Tanium Console, open the Main menu. Go to , click Settings
, and then go to the Registration and Collection tab.
-
Use the filter to find the Custom Comply – CVE Findings – Resolution Complete - Large-Scale sensor that you created.
-
In the row for the Custom Comply – CVE Findings – Resolution Complete - Large-Scale sensor, click . Enter 14 for the Exclude CVEs not seen in X days parameter and click Apply.
-
Review the number of rows returned on the Sensor Preview dialog that appears to determine a rough estimate of volume. If the number is still high, click Cancel, and then repeat the previous step but enter 7 when prompted for the Exclude CVEs not seen in X days parameter. When finished, click Confirm.
-
Verify that the following sensors are in registered status
:
-
Custom Comply – CVE Findings – Resolution Complete - Large-Scale
-
Comply – CVE Findings
-
Comply – CVE Findings – First Found
-
Comply – CVE Findings – Last Found
-
Comply – CVE Investigation Details
Note: These sensors are used by either the CVE data or vulnerability findings reports. The vulnerable findings report also uses several reserved sensors, such as Computer ID, which are automatically registered.
To register a sensor, click in the corresponding row.
-
Create custom reports
Create custom reports to use in Tanium Connect connections. With custom reports, you can limit the columns that Tanium Connect must process.
Create a custom CVE status report
-
In Tanium Console, go to , and then click Create Report.
-
In the Available Columns list, search for and add the following columns:
-
Computer ID (within the Reserved category)
-
Computer Name (within the Reserved category)
-
Computer Serial Number (within the Hardware category)
-
Tanium Client IP Address (within the Tanium Diagnostics category)
-
Custom Comply – CVE Findings – Resolution Complete (within the Compliance category), which is the sensor that you created in Create a custom sensor to pull CVE status. If prompted, include the Exclude CVEs not seen in X days parameter.
-
(within the Compliance category)
-
-
In the Selected Columns list, click Flatten
next to the Custom Comply – CVE Findings – Resolution Complete column to flatten the data by the sensor you created.
Figure 1. Flatten Custom Comply -
Add filter rows.
-
Expand Filters and click Add Row. Specify the following values:
-
Source: Custom Comply – CVE Findings – Resolution Complete
-
Column: Status
-
Operator: is equal to
-
Value: Resolved
-
-
Click Apply
.
-
Click Add Row and specify the following values:
-
Source: Comply - Compliance Findings Details
-
Column: Excepted
-
Operator: is equal to
-
Value: false
-
-
Click Apply
.
-
Set the operator to AND between the two filters.
-
-
Remove sorting.
-
Review the column headers. If the data is sorted by a column, the column header contains either an up arrow
or a down arrow
.
-
If a column header contains either arrow, click the column header until sorting is removed (the arrow disappears).
-
-
Validate that the report contains only relevant rows.
For each row, verify that all columns are populated, that there is one entry for CVE, Computer Name, Computer Serial Number, and Computer ID with no grouped data in any column, and that the Status column contains Resolved.
-
Click Save Report, specify a Report Name, select a Content Set, then click Save. The subsequent tasks in this reference use a report name of CVE Status – 14 Days.
Tip: Match the report name to the sensor parameters. For example, if the sensor that you created set the Exclude CVEs not seen in X days parameter to a default of seven days, name the report CVE Status – 7 Days.
Create a custom vulnerability findings report
In a standard configuration, the connection that pushes vulnerability findings to ServiceNow uses the Tanium Comply (Findings) source. For large-scale integrations, create a custom report to aggregate the vulnerability finding data to send to ServiceNow.
-
In Tanium Console, go to , and then click Create Report.
-
In the Available Columns list, search for and add the following columns:
-
Computer ID (within the Reserved category)
-
Computer Name (within the Reserved category)
-
Computer Serial Number (within the Hardware category)
-
Tanium Client IP Address (within the Tanium Diagnostics category)
-
(within the Compliance category)
-
Add all columns in Comply - Vulnerability Findings Details (within the Compliance category)
-
-
In the Selected Columns list, click Flatten
next to the Comply - Compliance Findings Details column to flatten the data by that sensor.
-
Add a filter row to exclude results whose Excepted value is false.
-
Expand Filters and click Add Row. Specify the following values:
-
Source: Comply – Vulnerability Findings Details
-
Column: Excepted
-
Operator: is equal to
-
Value: false
-
-
Click Apply
.
-
-
Remove sorting.
-
Review the column headers. If the data is sorted by a column, the column header contains either an up arrow
or a down arrow
.
-
If a column header contains either arrow, click the column header until sorting is removed (the arrow disappears).
-
-
Validate that the report contains only relevant rows.
For each row, verify that there is one entry for Check ID, Computer ID, Computer Name, and Computer Serial Number with no grouped data in any column, and that the Excepted column contains false. Columns without data are normal but ensure all data appears as expected.
-
Click Save Report, specify a Report Name, select a Content Set, then click Save. The subsequent tasks in this reference use a report name of Vulnerability Findings - Large-Scale.
Create custom connections
Create connections to use in Tanium Connect for large-scale integrations. These connections replace the standard connections in Creating connections to push data to Tanium Vulnerability Management for ServiceNow.
Create a custom connection to push CVE status
Create a connection in Tanium Connect to sync CVE status between Tanium and ServiceNow using the custom report that you generated in Create a custom CVE status report.
-
In Tanium Console, open the Main menu and go to . Go to the Connections section and click Create Connection.
-
In the General Information section, specify the following settings:
-
Name: SN – VR CVE Status – Large Scale - <sn_instance>, replace <sn_instance> with your instance information
-
Description: This connection provides CVE status data to ServiceNow
-
In the Advanced subsection, set Memory Ceiling to 4 (GB).
Note: Tanium Connect has a global memory ceiling of 8 GB for all concurrent connections.
-
-
In the Configuration section, specify the following source settings:
-
Source: Tanium Reporting (Source Data)
-
Report: CVE Status - 14 days (use the report that you created in Create a custom CVE status report)
-
Report View: Select a report only use if you want to filter the findings sent to ServiceNow by the report
-
Group Columns By Sensor: Disable (deselected)
-
-
In the Configuration section, specify the following destination settings to define the ServiceNow endpoint to which Tanium can send HTTP post requests:
-
Destination: HTTP
-
Destination Name: SN - VR CVE Status - <sn_instance>, replace <sn_instance> with your instance information
-
URL: https://<sn_instance>.service-now.com/api/x_taniu_tanium_vr/tanium_vr_cve_status?taniuminstance=<tanium_instance>, replace <sn_instance> and <tanium_instance> with your instance information
-
Method: POST
-
Headers: Content-Type | application/json
-
Use Authentication: Basic Authentication
-
User Name: Enter the username of the ServiceNow service account. For more information about creating this account, see Create and assign roles for a service account.
-
Password: Enter the password for ServiceNow service account
-
Advanced: Expand Advanced, select Restrict data sent by batch size, and then configure the following settings:
-
Batch Size Unit: Bytes
-
Batch Size (Bytes): 7000000
Note: ServiceNow has a limit of 10 MB for data imports. Smaller batches generally process faster but increase the number of attachments that are created. Consider the data volume, Tanium environment, and ServiceNow instance sizing when you decide the batch size. -
Timeout: 30 (seconds)
-
-
-
In the Configure Output section, create a filter to define the data sent from the connection to ServiceNow:
Note: These steps use a New Items filter in the connection to enable learning. For more information about the New Items filter, see New Items.-
Expand Filters, click + Add Filter, and select New Items.
-
Specify the following settings:
-
Persists the filter to disk between connection runs: Enable (selected)
-
Learning Period: 0 (days)
-
Schedule Filter Reset Days: Specify a cadence that works with your other connection schedules to send the full bulk upload.
Note: Consider the Tanium environment, overall data volatility, and patching cadence when you set the value for Schedule Filter Reset Days. For example, environments with low mean time to repair (MTTR) have higher data volatility. Test different values for the Exclude CVEs not seen in X days parameter when you register the the Custom Comply – CVE Findings – Resolution Complete - Large-Scale sensor in Tanium Data Service, and adjusting the Learning Period for the Custom Comply – CVE Findings – Resolution Complete - Large-Scale sensor based on the number of rows out for the given period.Tip: Set the filter reset to occur on the weekend. For example, if the Connect job schedule is weekly starting on Monday, reset the filter every five days for weekly, and every 12 days for bi-weekly. -
Continue Learning: Enable (selected)
Note: Routinely reset the learning either manually or with a cadence that results in a larger data send processed during off hours. For more information about how to manually reset the learning period, see Clear New Items cache.
-
-
Expand Columns to select the column name to index. In the Available Items list, find the following column and add it to the Selected Items list:
-
Resolution - Date
Tip: There are multiple Columns sections on the page. Be sure to expand the Columns section that appears in the New Items filter section. -
-
-
In the Configure Output section, expand the Format subsection and specify the following settings to configure the output format:
-
Format: CSV
-
Include Headers: Enable (selected)
-
Detect Dynamic Data Exchange (DDE): Enable (selected)
-
-
In the Configure Output section, expand the Columns subsection to select the column names to index. In the Available Items list, find the following columns and add them to the Selected Items list:
-
Computer ID
-
Computer Name
-
Computer Serial Number
-
CVE
-
Resolution - Date
Note: You can also include the Tanium Client IP Address column in environments with DHCP or with heavy VPN traffic where IP addresses are more ephemeral.Note: If your environment contains a high amount of automated provisioning, ephemeral endpoints, or virtual endpoints, consider excluding learning on the Resolution Date and Computer Serial Number columns. -
-
In the Schedule section, specify the following settings to define when the connection exports data to ServiceNow:
-
Enable Schedule: Enable (selected)
-
Schedule Type: Basic
-
Timezone: Local
-
Frequency: One run per day, every day
-
Time: 4:00:00 AM
Tip: Adjust your settings as necessary to ensure that schedules are staggered and do not cause interference with other data processes. -
-
After you enter the details for the connection, click Save.
CAUTION: If you click Run and Save to immediately run the connection, the large data set might interfere with other running connections or ServiceNow imports.
If needed, resolve any errors or missing information. After the connection creates successfully, the connection details appear.
Create a custom connection to push vulnerable findings
Create a connection in Tanium Connect to sync vulnerable findings between Tanium and ServiceNow using the custom report that you generated in Create a custom vulnerability findings report.
-
In Tanium Console, open the Main menu and go to . Go to the Connections section and click Create Connection.
-
In the General Information section, specify the following settings:
-
Name: SN – Vulnerability – Large-Scale - <sn_instance>, replace <sn_instance> with your instance information
-
Description: This connection provides vulnerability findings to ServiceNow
-
In the Advanced subsection, set Memory Ceiling to 4 (GB).
Note: Tanium Connect has a global memory ceiling of 8 GB for all concurrent connections.
-
-
In the Configuration section, specify the following source settings:
-
Source: Tanium Reporting (Source Data)
-
Report: Vulnerability Findings - Large-Scale (use the report that you created in Create a custom CVE status report)
-
Report View: Select a report only use if you want to filter the findings sent to ServiceNow by the report
-
Group Columns By Sensor: Disable (deselected)
-
-
In the Configuration section, specify the following destination settings to define the ServiceNow endpoint to which Tanium can send HTTP post requests:
-
Destination: HTTP
-
Destination Name: SN - <sn_instance>, replace <sn_instance> with your instance information
-
URL: https://<sn_instance>.service-now.com/api/x_taniu_tanium_vr/tanium_vr_vulnerability_findings?taniuminstance=<sn_instance>, replace <sn_instance> and <tanium_instance> with your instance information
-
Method: POST
-
Headers: Content-Type | application/json
-
Use Authentication: Basic Authentication
-
User Name: Enter the username of the ServiceNow service account. For more information about creating this account, see Create and assign roles for a service account.
-
Password: Enter the password for ServiceNow service account
-
Advanced: Expand Advanced, select Restrict data sent by batch size, and then configure the following settings:
-
Batch Size Unit: Bytes
-
Batch Size (Bytes): 9000000
Note: ServiceNow has a limit of 10 MB for data imports. Smaller batches generally process faster but increase the number of attachments that are created. Consider the data volume, Tanium environment, and ServiceNow instance sizing when you decide the batch size. -
Timeout: 30 (seconds)
-
-
-
In the Configure Output section, create a filter to define the data sent from the connection to ServiceNow:
Note: These steps include using a New Items filter in the connection. For more information about the New Items filter, see New Items.-
Expand Filters, click + Add Filter, and select New Items.
-
Specify the following settings:
-
Persists the filter to disk between connection runs: Enable (selected)
-
Learning Period: 0 (days)
-
Schedule Filter Reset Days: 7 (days)
Tip: Set the filter reset to occur on the weekend. For example, if the Connect job schedule is weekly starting on Monday, reset the filter every five days for weekly, and every 12 days for bi-weekly. -
Continue Learning: Enable (selected)
-
-
Expand Columns, find the following columns in the Available Items list and add them to the Selected Items list:
-
Computer ID
-
Computer Name
-
Computer Serial Number
-
CVE
Tip: There are multiple Columns sections on the page. Be sure to expand the Columns section that appears in the New Items filter section.Tip: If your environment contains high amounts of automated provisioning, ephemeral endpoints, or virtualization, do not select the Computer Serial Number column. -
-
-
Expand the Format subsection and specify the following settings to configure the output format:
-
Format: CSV
-
Include Headers: Enable (selected)
-
Detect Dynamic Data Exchange (DDE): Enable (selected)
-
-
In the Columns subsection that appears in the Configure Output section, select the columns to send in the connection.
-
Expand Columns and deselect the default column names.
Tip: Click the checkbox next to Source to select all columns. Click the checkbox again to deselect all columns. -
Select the following columns:
-
Computer ID
-
Computer Name
-
Computer Serial Number
-
CVE
-
First Found Date
-
Last Found Date
-
Last Scan Date
-
Solution Links
-
Remediation
-
Affected Products
-
Affected Platforms
-
Expected States
-
Actual Values
-
Tanium Client IP Address
-
-
-
In the Schedule section, specify the following settings to define when the connection exports data to ServiceNow:
-
Enable Schedule: Enable (selected)
-
Schedule Type: Basic
-
Timezone: Local
-
Frequency: One run per day, every day
-
Time: 2:00:00 AM
Tip: Adjust your settings as necessary to ensure that schedules are staggered and do not cause interference with other data processes. -
-
After you enter the details for the connection, click Save.
CAUTION: If you click Run and Save to immediately run the connection, the large data set might interfere with other running connections or ServiceNow imports.
If needed, resolve any errors or missing information. After the connection creates successfully, the connection details appear.
ServiceNow tuning
Tuning your ServiceNow configuration depends on instance resource allocation and sizing. You might require assistance from ServiceNow support to appropriately investigate performance issues.
Options to tune the ServiceNow configuration include:
-
Increase Data Sources and Templates for concurrency in accordance with the value of Node Count.
-
Set Default Data Source Count to (Node Count x 2). For example, if if Node Count is 1000, set Default Data Source Count to 2000.
-
Set Verified Maximum Data Source Count to (Node Count x 2) + 4. For example, if Node Count is 1000, set Verified Maximum Data Source Count to 2004.
-
To find the node count, see Finding the default data source count.
-
To add a data source, see Adding a data source.
-
-
Avoid oversubscribing because too many sources can cause resource contention.
-
Disable or optimize custom assignment rules, particularly those with contains statements.
-
Ensure you allocate enough worker nodes for background jobs.
Finding the default data source count
Use the following steps to find the Default Data Source Count and the Verified Maximum Data Source Count on ServiceNow.
-
Sign in to ServiceNow. In the filter navigator, type sys_cluster_state.LIST and then press Enter.
The Node States page opens.Figure 2. Sn Largescale Node States Page -
Count the number of nodes to use for the Node Count value in the preceding formulas to calculate the default and max data source counts.
For example, if two nodes appear on the Node States page, the Node Count is 2. In this case, set the Default Data Source Count to 4, and set the Verified Maximum Data Source Count to 8.
-
Close the browser tab when finished.
Adding a data source
Use the following steps to add a data source to the Tanium Vulnerability Management integration.
-
Sign in to ServiceNow. In the filter navigator, type sys_data_source.LIST and then press Enter.
The Data Sources page opens.
-
Click Show column search row
in the table header.
-
In the search field under the Name field, type Tanium and press Enter.
-
Click the name of the data source that is numerically last.
Figure 3. Sn Largescale Validate Click Data Source -
Change the application scope to Tanium Vulnerability Management.
-
Edit the data source and increment the data source name. For example, if the Name is Tanium VI Data Source 4, update the Name to Tanium VI Data Source 5.
-
Right-click the top bar of the record and select Insert and Stay.
Figure 4. Sn Largescale Validate Insert Stay -
Click Save.
-
Close the browser tab and return to the original tab with the ServiceNow main page.
-
In the filter navigator, type Tanium VR Integration .
-
Select the integration to which you added a data source (TaniumVRVulnerableItemIntegration for this example).
-
From the Data Sources tab, click Edit....
Figure 5. Sn Largescale Validate Edit Data Sources -
Filter for and then add the new data source to the Data Sources List.
Figure 6. Sn Largescale Validate Add Data Source -
Verify the new data source shows in the related list on the integration.
Figure 7. Sn Largescale Validate New Data Source
Validation
After you follow the previous tasks to create custom sensors, reports, and connections for large-scale integrations, perform the following tasks to validate the new data transfers:
-
Validate Tanium Connect connection run logs and processing times. For more information about viewing connection run logs, see Test connections.
-
Monitor ServiceNow processing metrics.
-
Adjust batch size and concurrency iteratively.
-
Confirm attachment size, number of attachments, number of batches.
-
Connect Rows Out / Number of Attachments ≈ Batch Size.
-
Batch Size * Number of Attachments ≈ Connect Rows Out.
-
-
Continue tuning according to customer environment, data volume, and volatility.
Expected performance
Connections in Tanium Vulnerability Management for ServiceNow should meet the following metrics:
-
Tanium Connect send time per batch: 1–3 seconds
-
ServiceNow processing time per batch: 10–25 minutes
-
Throughput: ~450K records per hour
Troubleshooting the connections
-
If connections in Tanium Connect fail due to timeouts, increase query timeout to 240 seconds and check the proxy configuration.
-
If the time between batches sent from Tanium Connect is too long, increase the memory allocation and lower the destination batch size.
-
If ServiceNow processing is slow, reduce the batch size further and increase the number of data sources or templates for concurrency.
-
If the payload exceeds 10 MB, switch to Batch by Bytes starting at 7.5 MB. Alternatively, you can reduce the record count per batch, continue reducing incrementally until the desired performance is met, without going below 2.5 MB or 500 rows per batch.