Managing device actions

Use the Device Actions page to manage remediation policies and enforcements.

Create a remediation policy

  1. From the Main menu, go to Modules > Enforce > Device Actions > Create.
  2. Click Select Types.
  3. Select the Platform of the endpoints on which you want to perform the tasks and click Confirm.
  4. In the Summary section, provide the identifying details for the policy.
    1. Enter a Name and optional Description for the policy.
    2. If you do not want to use the default content set for the policy, select a Content Set.

      Every policy requires a content set. The content set is configured by default to the platform for the selected policy types, provided that you have the necessary permissions for that content set. If no content set is available, you might need additional permissions. For more information, see Role permissions for content sets.

  5. In the Remediation section, select the tasks that you want to run on the targeted endpoints from the Add Task dropdown list. Optionally, specify the Title for the task to identify it in the list of tasks in the policy.

    You can add the following tasks to a Windows remediation:

    • Delete File: deletes a single file or multiple files matching a pattern. For more information, see Remediation policy file pattern matching examples.

    • Delete Registry Key: deletes a registry key if it exists.

    • Edit Registry Data: modifies an existing registry value if it exists; optionally, the value can be created if it does not exist.

      For the Target Path, do not include the hive and do not use a leading slash (\).
      rem_pol_edit_reg
    • Kill Process: kills all processes that match the specified Process Type options: name, path, or hash. You can also optionally enter Command Line Args to use a regular expression to match against process command line arguments for any of the Process Type options.

    • Run Service Action: changes the running state of the specified service.

      Important: For the Service Name field, enter the Service Name, not the Service Display Name.
    • Run Service Configuration: changes the startup config of the specified service.

      Important: For the Service Name field, enter the Service Name, not the Service Display Name.
    • Update Registry Value: changes the name of a registry value if it exists or deletes the value if the delete option is selected.

      Note: For tasks that modify the registry and target the HKEY_USERS hive, if you use the wildcard character (*) to target all users, users that are signed out when the policy is enforced are skipped.
    You can add the following tasks to a Mac or Linux remediation:
    • Delete File: deletes a single file or multiple files matching a pattern.

    • Kill Process: kills all processes that match the specified Process Type options: name, path, or hash. You can also optionally enter Command Line Args to use a regular expression to match against process command line arguments for any of the Process Type options.

    • Run Service Action: changes the running state of the specified service.

      Important: For the Service Name field, enter the Service Name, not the Service Display Name.
  6. Complete the required fields for the task.
  7. Add other tasks as needed for the policy. When you are finished adding all tasks, click Create.

Remediation policy file pattern matching examples

Note: Recursive matching is not supported. Each directory level must be specified.

Definition

Example

Match a file by name in an unknown directory path.

Actual Path: c:\a\b\c\file.exe

Wildcard: c:\*\*\*\file.exe

Match any file in a known directory path.

Actual Path: c:\a\b\c\file.exe

Wildcard: c:\a\b\c\*

Match a specific file type in a partially known directory path.

Actual Path: c:\a\b\c\file.exe

Wildcard: c:\a\*\c\*.exe

Disable case sensitivity for the first character in a file name.

Actual Path: c:\a\b\c\File.exe

Wildcard: c:\a\b\c\[Ff]ile.exe

Match a single character in a file name.

Actual Path: c:\a\b\c\cat.exe

Actual Path: c:\a\b\c\bat.exe

Wildcard: c:\a\b\c\?at.exe

Do not match a character in a file name.

Actual Path: c:\a\b\c\cat.exe

Wildcard: c:\a\b\c\[!c]at.exe

Managing remediation policies

View remediation policies

The Remediations tab on the Device Actions page shows all remediation policies in your environment, both enforced and unenforced.

  1. From the Main menu, go to Modules > Enforce > Device Actions > Remediations.
  2. (Optional) Enter a string in the Filter Items field to filter the results using the specified string.
  3. (Optional) To show only enforced remediation policies, select Policy with enforcements.
  4. (Optional) To filter the results by operating system, select an operating system in the Platform section.
    Example screen capture from Enforce that shows the Platform options for the policy
  5. (Optional) Click Expand caret-right to see the high-level details for the policy.
    Example screen capture from Enforce that shows the high-level details for the policy

Edit remediation policies

If needed, you can edit remediation policies.

Note: Tasks in remediation policies with an enforcement are read-only and cannot be edited.
  1. From the Main menu, go to Modules > Enforce > Device Actions > Remediations.
  2. Select a policy and click Edit edit.
  3. Make the necessary changes and click Save.

Delete remediation policies

If needed, you can delete remediation policies.

Note: You cannot delete remediation policies with an enforcement.
  1. From the Main menu, go to Modules > Enforce > Device Actions > Remediations.
  2. Select a policy and click Delete delete.

Duplicate remediation policies

You can duplicate remediation policies to use as a starting point for a new policy.

  1. From the Main menu, go to Modules > Enforce > Device Actions > Remediations.
  2. Select a policy and click More Actions options and then click Duplicate.
  3. Edit the duplicate policy, if needed, and click Create.

Export remediation policies

You can export remediation policies for use in another Enforce environment.

Note: You can export remediation policies with an enforcement, but the enforcement is not exported with the policy.
  1. From the Main menu, go to Modules > Enforce > Device Actions > Remediations.
  2. Select a policy and click More Actions options and then click Export.

A JSON file for the policy downloads to your local downloads folder.

Import remediation policies

You can import remediation policies that were exported from another Enforce environment.

  1. From the Main menu, go to Modules > Enforce > Device Actions > Remediations.
  2. Click Import.
  3. Browse to the JSON file for the policy that you want to import. Click Open.
  4. Click Import.
  5. Edit the imported policy, if needed, and click Save.

Viewing remediation policy details, results, and enforcements

Select a remediation policy to view detailed information, such as policy details, results, and enforcements.

From the Main menu, go to Modules > Enforce > Device Actions > Remediations. Click the name of a policy and review the information for the policy:

Details

The Details tab includes two sections:

  • Summary: Shows the details for the policy.

  • Tasks: Shows the tasks for the policy, including the priority, type, and title (if specified during policy creation). Click Expand caret-right next to a task to see additional details about that task.

    Example screen capture from Enforce that shows the details for the tasks

Results

The Results tab includes a Results Summary graph that shows a summary of the status of the tasks for endpoints targeted by an enforcement of the policy, if applicable.

Note: This feature is not available in Tanium Atlas.
Figure 1. Results Summary
Example screen capture from Enforce that shows the Results Summary graph for a remediation policy

The results grid shows the status of the tasks for each endpoint targeted by an enforcement for the policy.

Figure 2. Results Grid
Example screen capture from Enforce that shows the results grid
Table 1. Status of the tasks on the endpoint

Status

Description

Complete circle-check-no-border

Action to run the tasks on the endpoint is complete.

Conflict state-warning

Not applicable for remediation policies.

Pending state-pending

Action to run the tasks is deployed on the endpoint, but work is not started.

Error state-critical

Action to run the tasks on the endpoint failed to complete.

Click the computer name for an endpoint to see the status for each task on that endpoint.

Figure 3. Remediation task status
Remediation task status
Tip:

If a task fails on an endpoint, check the action history status for additional details. From the Main menu, go to Administration > Actions > Action History. The action name associated with a remediation policy is typically Enforce - Enforcement: <policy name> on <enforcement name>. Select the row for the action associated with the policy/enforcement and click Show Status. Click Show Client Status Details to see the action status for each targeted endpoint. For more information about working with action statuses, see View status for simple actions.

You can also get additional details about the status by asking a question using the Enforce – Remediation Results sensor.

Enforcements

The Enforcements tab shows the status for enforcements for the selected policy. Click Expand caret-right to see a summary of the status for an enforcement.

Figure 4. Enforcements
Example screen capture from Enforce that shows the Enforcements tab for a remediation policy

For more information about enforcement statuses, see Enforcements.

Click Create or Enforce enforce-circle to create a new enforcement for the policy. To create an enforcement from the Remediations tab, select a policy and click More Actions options and then click Enforce. For more information about creating enforcements, see Enforcing policies.