Creating reactions

Overview

Reactions help to automate actions to disrupt and respond to attacks for both on and off-network endpoints and help reduce the time to remediate issues from hours to seconds. Reactions automate one or more actions on an endpoint based on alerts from intel documents (for example, delete one or more files, kill a process, or quarantine an endpoint). This is different than a response action where a Tanium platform action (Live Response, Quarantine, Download File, Gather Snapshot) runs on a single endpoint after the alert is received by the service and a manual action is run. All reactions occur directly on the endpoint immediately after an intel match occurs. Reactions take place even if the endpoint is not connected to Tanium server.

Reactions reduce the risk of attack by providing a critical advantage in managing security incidents. Reactions help remediate known threats within seconds of identifying them, allowing workflows to be much more efficient and reducing a bad actor's capability of stealing data, causing damage, or intruding further into an organization. Automated workflows such as reactions provide capabilities that have become a regulatory requirement in many countries.

Reactions are defined in the Threat Response workbench and associated with an intel document. You can create a reaction to define a workflow that will occur when an intel match occurs on an endpoint. The intel document defines what to act on, and the reaction defines what action or actions to perform.

Note: Reactions on detections inside ZIP files perform any relevant actions on the ZIP file itself.

Create a reaction

Create a reaction in the Threat Response workbench.

Note: Creating reactions in the Threat Response workbench requires the Threat Response Intel Reaction Write permission.
  1. Select Intel > Reactions. Click Create Reaction.
  2. In the Details section, provide a name and description for the reaction.
  3. In the Steps section, add steps that define the actions to perform when intel matches occur on an endpoint. You can create a step for each type of available action. You cannot create a reaction that contains multiple steps with the same action type. The available actions are:
    Kill Responsible Process

    This action type provides the ability to automatically kill a process when an alert is initiated for an intel match based on custom criteria including hash, name, command line, parent process, and ancestry. In response to an alert, the action takes place immediately on the endpoint to allow the action to take place regardless if it communicating on the Tanium Server. Kill Responsible Process actions use the results returned as part of the Advanced Details for an alert to determine what artifact to act on, for example processItem in an IOC intel document.

    When you select the Kill Responsible Process action, you can select to Allow Signed Processes to be Killed for either Windows or macOS endpoints. There are cases where killing a signed process is required. These settings are disabled by default to protect important processes such as svchost. Allow Signed Processes to be Killed enables you to create one reaction that does not kill OS signed binaries, and another version that you can use to kill OS signed binaries. For example, a Kill Response Process action does not kill a powershell.exe process in Windows unless you select this checkbox. Enable this setting for intel documents such as:

    process.path ends with '\\powershell.exe' AND process.command_line contains '-ExecutionPolicy Bypass'

    Kill Responsible Process actions act on all process items found in the intel document.

    Quarantine Endpoint

    This action type provides the ability to automatically quarantine an endpoint when an alert is initiated for an intel match. In response to an alert, the action takes place immediately on the endpoint to allow the action to take place regardless if it is communicating on the Tanium Server.

    Important: Before assigning quarantine actions, ensure that all endpoints that are targets of the intel document that the reaction is associated with meet the Quarantining endpoints documented in Quarantining endpoints.

    When quarantining an endpoint that has already been quarantined, the quarantine action respects the existing quarantine. In such cases a quarantine is not removed and reapplied.

    Select the quarantine profile that you want to use. Changes to the profiles or rules after a quarantine has been applied on an endpoint has no effect on that endpoint unless it is unquarantined and requarantined.

    Note: Any alerts that had quarantine reactions associated with them from before the existence of quarantine profiles display as having a deleted quarantine profile.
    Delete Files Identified by Intel

    This action type provides the ability to automatically delete a file when an alert is initiated for an intel match. In response to an alert, the action takes place immediately on the endpoint to allow the action to take place regardless if it is communicating on the Tanium Server. Delete Files Identified by Intel actions use the results returned as part of the Advanced Details for an alert as the artifacts to act on. You can use the Delete Files Identified by Intel action type to delete empty folders, but not folders that contain files or other folders, even if the folder or folders it contains are also empty. Delete Files Identified by Intel actions act on all file items found in the intel document, including any fileItem artifacts that are returned as a child of a processItem artifact.

    Note: Use caution when you assign a Delete Files Identified by Intel action to an intel document that matches on processItem artifacts. Because processItem alert data contains a secondary fileItem artifact that specifies the location of the binary on disk, processItem artifacts with a Delete File Identified by Intel action match on the secondary fileItem and delete the binary from disk.

    When you select the Delete Files Identified by Intel action, you can select to Preserve Copy of Files to save a copy of the file in such a way that endpoint users can no longer execute the file, read the contents of the file, modify, or delete it. Files are preserved in a ZIP file on the endpoint. On the endpoint, the path to preserved files assumes the form of [Tanium Client]/extensions/threatresponse/data/restricted/[Intel ID][Guid]/reaction-[ID][Step Number].zip

    The file contents of the ZIP file is encrypted. Decrypt files that you download with the password infected.

    Important: Delete Files Identified by Intel actions that are associated with signals intel documents are not supported. If you need to delete specific files, use an OpenIOC or STIX intel document that alerts on a specific file name, or a YARA intel document that alerts on the contents of the file.
    Delete Files

    You can specify files to delete by pasting in a list of absolute paths that are separated by line breaks that you want to delete when an alert is initiated. You must specify file names as absolute paths. Quoting or escaping special characters is not required. Do not use quotes in these file paths unless they are actually part of the file name.

    When you select the Delete Files action, you can select to Preserve Copy of Files to save a copy of the file in such a way that endpoint users can no longer execute the file, read the contents of the file, modify, or delete it. Files are preserved in a ZIP file on the endpoint. On the endpoint, the path to preserved files assumes the form of [Tanium Client]/extensions/threatresponse/data/restricted/[Intel ID][Guid]/reaction-[ID][Step Number].zip

    The file contents of the ZIP file is encrypted. Decrypt files that you download with the password infected.

  4. Click Add Step.
  5. For each step that you add, provide a name and description for the step. Select an Action to perform, and select any additional settings that are available for the action.
  6. When you have completed the workflow definition by adding steps to perform when an alert is initiated, click Apply.
  7. Click Create.

Assign a reaction to an intel document

To cause the workflows that you define in a reaction to occur when an alert is initiated for an intel match, you need to assign the reaction to an intel document. Reactions continue to take action on endpoints even when alerts are throttled or intel is put into a reduced state on individual endpoints. The only way to disable a reaction is to delete the intel or remove the associated reaction and re-deploy intel. Alternatively you can disable the intel at an enterprise level by Intel safeguards.

  1. Click Intel > Documents to locate an intel document that you want to assign a reaction to.
  2. Select the intel document that you want to assign a reaction to and click Edit.
  3. In the Reaction dropdown list, select the name of the reaction that you want to assign to the intel document.
  4. Select Set reaction to audit mode to view the impact of the reaction without any of the actions you assign in a reaction actually occurring. Audit mode enables you to validate that any response actions that are initiated as part of a reaction do not have an unintended impact on an environment. When you create a new intel document and assign a reaction, Set reaction to audit mode is enabled by default to provide a safeguard against unintended or untested actions. To perform reactions, this setting must be deselected.
    Note: When you run an on-demand scan for intel that is associated with a reaction that is set to audit mode, you can select Override Audit Mode for Reaction in the on demand scan to override audit mode and perform the reaction on endpoints.
  5. Click Save.

Reactions that you assign to intel documents take effect when the intel is deployed to the endpoint. Intel must be included in a Detection configuration to be applied to an endpoint.

Note: When you duplicate an intel document, any reactions that you have assigned to the document that you are duplicating do not persist in the duplicate intel document.

An indepth overview of supported intel types and the specific intel artifacts that reactions act on, along with examples is available in the Threat Response Intel Support documentation. To access the Threat Response Intel Support documentation, click help from the Threat Response overview page and click the Threat Response Intel Support tab.

Reaction statuses

The following reaction statuses for reactions are displayed in the Threat Response workbench for either intel documents or in the alerts results:

CircleInfo_light

For an intel document, this icon indicates the reaction is currently set to audit mode.

For an alert, this icon indicates that the reaction was set to audit mode at the time an alert was initiated.

CircleCheck

For an alert, this icon indicates the reaction completed successfully.

StateWarning

For an alert, this icon indicates that a reaction has multiple steps and indicates that some steps completed successfully, but at least one step in the reaction failed. For example, if the reaction features a Quarantine Endpoint step, but the endpoints that the reaction targets do not meet the Quarantining endpoints, this step would fail. Other steps on the reaction could succeed.

StateCritical

For an alert, this icon indicates that all steps in the reaction failed to complete successfully.

You can view details regarding any reaction success or failure including the status of each step in a reaction in the alert details of an alert that was initiated by a match on an intel document a reaction is associated with. For more indepth reaction detail data, you can view the endpoint logs. For more information, see Collect troubleshooting information from endpoints.

Audit reaction data

Audit mode provides a means for the endpoint to report back to the service if a reaction would have been initiated and what actions it would have taken without actually taking those actions. Audit mode enables you to validate that any response actions that are initiated as part of a reaction do not have an unintended impact on an environment.

Note: Audit mode is specified at the intel document level. A reaction can be associated with multiple intel documents. By specifying audit mode at the intel document level, a reaction can be in audit mode for one or more intel documents, but not in audit mode for others.