Creating configurations in Threat Response
Overview
Configurations are groups of settings that control the behavior of Threat Response components. You can create different configurations for each Threat Response component to control how it performs on specific groups of endpoints.
For example, you might want to apply and scan for specific intel on one group of endpoints, but not other groups. Or, you might want to apply a subset of Threat Response capabilities to a group of endpoints. Use configurations to customize which intel to apply, how and when to evaluate intel, how to index file systems, which events to record on all the endpoints in an enterprise, and what event data to stream to an external destination.
You can orchestrate configurations for detection, the recorder, index, and stream in a profile that is assigned to one or more computer groups. You can import and export configurations to make them easy to apply to target groups of computers. Threat Response provides example configurations that feature the most common configuration settings for specific operating systems.
Create detection configurations
Detection configurations provide directions for scanning endpoints for intel matches. To avoid scanning important endpoints or to limit when detection is active, you can include blockout periods to prevent scans during those times.
- From the Main menu, go to . Click .
- In the General Settings section, provide a name and description for the detection configuration.
- (Optional) In the Engine Options section, select Use UTC instead of the local time on the endpoint when calculating Scan Blockout.
- In the Engine Options section, select the hours and days for the Scan Blockout period to stop scanning against available intel during the times you select.
- Configure the Settings.
- (Optional) In the Advanced Settings section, specify a value for the YARA File Size or accept the default. This corresponds to the maximum size of file YARA can scan. (Default: 32 MB). YARA File Size and YARA Process Size do not apply to On-demand Scans. The values you provide in these fields are used by detection configurations for continuous data scanning.
- (Optional) In the Advanced Settings section, specify a value for the YARA Process Size or accept the default. This corresponds to the maximum size of the process YARA can scan. (Default: 256 MB). YARA File Size and YARA Process Size do not apply to On-demand Scans. The values you provide in these fields are used by detection configurations for continuous data scanning.
- In the Intel section, click Add Intel. Select the intel you want to add. Click Add.
- Select Intel that you have added to Threat Response. Click OK. Click Save.
After you have deployed detection configurations to endpoints, you can view and manage findings that result from intel matches. For more information, see Managing Threat Response alerts.
Create index configurations
Use an index configuration to detect and report threat indicators for files at rest. Index creates an index of local file systems, computes file hashes, and gathers file attributes and magic numbers in an SQLite database on the endpoint. Index returns the files that are contained in zip archives. For more information about Index configuration settings, see Tanium™ Threat Response.
Index configurations determine how file indexing and hashing occur on the local file systems of endpoints. Index is optimized to minimize endpoint resource use and work with journaled file systems, when available.
After you have deployed index configurations to endpoints, you can use sensors to query indexed files. See Reference: Sensors
Create indexing exclusions
Create stream configurations
Stream provides the ability to send rich endpoint data from the recorder to an external destination. This raw data includes process, network, file, driver events that you can use to investigate incidents, enrich other workflows, or perform custom analytics. Stream configurations enable you to specify and filter recorder events for the endpoints in an environment, and provide instructions for exporting - or streaming - these events directly to an SIEM for analysis in JSON format. For example, you can specify that all network events with one or more filters be streamed to Chronicle, Microsoft Sentinel, Splunk, Elastic, or Syslog. Tanium customers use this data to solve critical data gaps and Tanium Partners leverage this data to build their own security programs.
Create recorder configurations
The recorder saves forensic evidence for each endpoint in a local database. With recorder configuration settings, you can restrict database volume by size and days of storage.
Adjust the settings for each endpoint database to suit a specific environment. Systems with different roles can generate a higher volume of certain types of events. For example, domain controllers typically generate more security events and network traffic than an average end-user workstation. You can build custom configurations that maximize event retention across an environment, while excluding unwanted activity. Starting in Threat Response 3.5, recorder configurations that target Windows endpoints require the Tanium Driver to be installed and enabled to record process and command line events. The Tanium Driver is installed as part of Threat Response and is upgraded when Threat Response upgrades are applied.
After you have deployed recorder configurations, you can view events that occur on the endpoints where you have applied the configuration. For more information, see Direct connecting to endpoints and exploring data.
Mask command line captures
Use masking rules to redact sensitive values, such as passwords and tokens, from process command lines as the recorder captures them.
Process command lines can contain sensitive values, such as passwords, API keys, and tokens. After the recorder captures a command line, everything that uses recorded data receives it as captured, including signals, events that are forwarded to a SIEM, and sensors. Command line capture masking redacts matching text from command lines as the recorder captures them, so the sensitive value is not available to those consumers.
Each masking rule has the following parts:
- Name
- A unique name that identifies the rule.
- Regex
- A regular expression that matches the text to redact.
- Replacement Token
- The text that replaces each match.
For example, a rule with the Regex --password\s+\S+ and the Replacement Token [REDACTED] changes the command line tool.exe --password hunter2 --verbose to tool.exe [REDACTED] --verbose.
How masking rules apply
-
A masking rule has no effect until you attach it to a recorder configuration. You can attach the same rule to more than one recorder configuration.
-
A masking rule takes effect on endpoints only after the recorder configuration is deployed through its profiles. The computer groups that the profiles target determine which endpoints apply the rule. Masking does not have a separate scope setting.
-
The order of the rules in the recorder configuration is the order in which Threat Response applies them to each command line.
-
Each rule applies to the result of the previous rule, so a rule can match more than once and can match text that an earlier rule inserted.
-
Masking applies to command lines only. Other recorded data, such as registry values, file paths, and network URLs, is not masked.
-
Masking does not change data that the recorder already stored.
-
Matching is case-sensitive by default. To match case variants, use a flag or character class, for example
(?i)passwordor[Pp]assword.
Rule requirements
Threat Response rejects a masking rule, or a recorder configuration that uses the rule, in the following cases:
-
Two rules in the same recorder configuration have the same Regex.
-
The Regex of a rule matches the Replacement Token of another rule in the same recorder configuration.
-
The Regex matches all text, for example
.*.
Create a masking rule
Create a masking rule that redacts sensitive text from process command lines.
Masking rules are stored in a library that is independent of recorder configurations. After you create a rule, attach it to one or more recorder configurations. For more information about how masking works, see Mask command line captures.
The rule is added to the Masking Rules list. The Associated Configs column shows how many recorder configurations use the rule.
The rule has no effect until you attach it to a recorder configuration. See Attach masking rules to a recorder configuration.
Attach masking rules to a recorder configuration
Attach masking rules to a recorder configuration, preview the result, and deploy the configuration so the rules take effect on endpoints.
Create the masking rules that you want to attach. See Create a masking rule.
A masking rule has no effect until you attach it to a recorder configuration and deploy that configuration through its profiles.
The masking rules take effect on the endpoints that the profile targets. To see which rules are attached, view the details of the recorder configuration or of the profile.
Edit or delete a masking rule
Change or remove a masking rule from the Masking Rules list.
Changes to a masking rule apply to every recorder configuration that uses the rule. The changes take effect on endpoints after those recorder configurations are deployed through their profiles.
- From the Main menu, go to .
- To edit a rule, open the row action for the rule and select Edit Masking Rule. Change the Name, Regex, or Replacement Token, and then click Save.
- To delete a rule, open the row action for the rule and select Delete Masking Rule. Confirm the deletion.
Create filters
Filters provide a way to define the event information to record to reduce performance impacts and enable quick event identification. Filters are applied in high priority paths, recorder configurations, stream configurations and are created for specific types of recorder events. Threat Response provides a default set of filters for each type of recorder event that you can use in configurations. You can also create your own filters. You can either include or exclude filters. The Include method of filtering enables you to replace the default filter to only include the filters you specify to reduce performance impact and enable quick event identification. The Exclude method of filtering prevents events that match the criteria you provide from recording.
Filters are constructed in signals syntax. You cannot have more than 55 unique terms in a signal.
If a configuration enables process, file and network event types but an include filter only includes process events. No file or network events are recorded. When using an include filter for network events, the associated process events are automatically included.
Import and export configurations and filters
Import and export configurations and filters to apply them in a different Threat Response environment. For example, you can export configurations or filters that you have tested from a lab environment and import them into a production environment. With the exception of index configurations, both configurations and filters are imported and exported exclusively as JSON files.
Export configurations
- From the Main menu, go to .
- Select one or more configurations to export. Click to export the selected configurations. To export all configurations, click Export All.
- On the export page, provide a name and click Export. All of the configurations in the Threat Response environment are exported.
An exported recorder configuration includes the masking rules that are attached to it.
Export filters
Import configurations
-
If a source with the same name exists in the destination, the configuration uses it. If no matching source exists, its source-label mapping is removed from the imported configuration. To preserve the mapping, create a source with the same name in the destination before importing.
-
If a label with the same name exists, the configuration uses it. If no matching label exists, the workbench creates the label with no intel documents assigned. Assign intel documents to the new label to activate the mapping.
-
Computer groups assigned to profiles are not included in import or export. Reassign computer groups to the profile in the destination after import.
When you import a recorder configuration that includes masking rules, Threat Response matches each rule to an existing masking rule by its Regex and Replacement Token, not by name. An imported rule is rejected if it has the same validation problems as a rule that you create in the workbench, such as a Regex that matches all text.
- From the Main menu, go to .
- Click Import/Export. Select Import JSON and browse to a JSON file.
- Click Import.
Import filters
- From the Main menu, go to .
- Click Import. Browse to a JSON file.
- Click Import.