Locking down actions on endpoints

To prevent the Tanium Client from running Tanium package scripts on certain endpoints, you can deploy an action lock. For example, you might prevent actions while troubleshooting endpoint issues or to protect sensitive endpoints. An action lock prevents all actions from running unless you configure overrides for the associated packages or for specific Tanium solution operations. For more information, see Override action locks and Solution-specific impacts and overrides for action locks.

All Tanium deployments provide the content-only solution Default Content, which includes packages for turning action locks on or off for Windows and non-Windows endpoints. This solution also includes a sensor named Action Lock Status and saved questions that use this sensor, which enable you to track Tanium Clients that have the action lock turned on.

Note: You must deploy an action to turn on, turn off, or test action locks. The associated packages are in the Client Management content set. For the user role permissions that are required to deploy actions with those packages, see Deploy actions. The saved questions and sensor that you use to track and test action locks are in the Base content set. For the user role permissions that are required to issue the questions, see the Use Interact Saved Questions row in the Required permissions to perform Interact tasks table at Interact permissions.

Solution-specific impacts and overrides for action locks

Most Tanium solutions use Endpoint Configuration for deploying tools and configuration changes to endpoints. If action locks are turned on, you must enable the Manifest Package Ignore Action Lock and Deploy Client Configuration and Support Package Ignore Action Lock settings in Endpoint Configuration. For more information, see Interoperability with other Tanium products and Global Endpoint Configuration settings.

You can also configure the following Tanium solutions to ignore action locks for certain operations:

  • Deploy: Specify whether to ignore action locks for applicability scanning and deployments. For more information, see Configure module settings.

  • Direct Connect: Specify whether to ignore action locks for new connections and configuration changes. For more information, see Configure Endpoint Connection settings.

  • Enforce: Specify whether to ignore action locks for anti-malware enforcements. For more information, see Action Lock Override.

For more information about how action locks affect other Tanium solutions, see the associated user guides:

Turn on action locks

Windows and non-Windows endpoints require separate packages for turning on action locks. Therefore, perform the following steps for each type of endpoints:

  1. List the endpoints where action locks are turned off by issuing a question such as:

    Get Is Windows and Action Lock Status from all machines with Action Lock Status contains Action Lock Off

    Perform the remaining steps for Windows endpoints and then again for non-Windows endpoints.

  2. Select the endpoints that require the action lock turned on, and click Deploy Action.
  3. Select the Deployment Package that matches the target endpoints:
    • Windows endpoints: Tanium Client - Set Action Lock On

    • Non-windows endpoints: Tanium Client (Non-Windows) - Set Action Lock On

  4. Configure the remaining action settings and deploy the action. For more information, see Configure action settings.
  5. Monitor the action status. For more information, see View status for simple actions.

    If you want to Test action locks, record the Action ID and wait for the action to complete.

Test action locks

  1. Issue the saved question Clients That Cannot Take Actions - Action Lock On. For more information, see Issue a saved question.
  2. Check the ActionLockFlag setting on an endpoint that is included in the question results. Turning on action locks creates the setting on endpoints and sets its value to 1.
    1. Sign in to the endpoint and open a Command Prompt.
      Note: For more information about the Tanium Client CLI, see Tanium Client command line interface (CLI).
    2. Navigate to the Tanium Client installation directory:
      CODE
      cd <installation directory>
    3. Verify that the ActionLockFlag value is 1:

      TaniumClient config get ActionLockFlag

      1

  3. On the endpoint, open the associated action log and look for a message that indicates the action lock is on.

    Action logs are in the <Tanium_Client_installation_directory>/Downloads folder. You can identify the log for a specific action by the log file name (Action_<ID>.txt), which contains the Action ID. For more information, see Track action IDs.

    Figure 1. Action history log entry showing action lock
    action_lock_action_history_log_73
  4. Deploying actions and playbooks in Console and Interact to the endpoint. After the Action Status page opens, the action eventually times out and its status changes to Expired. The Administration > Actions > Action History page shows the Status as Closed after the action expires.

Turn off action locks

Windows and non-Windows endpoints require separate packages for turning off action locks. Therefore, perform the following steps for each type of endpoint:

  1. Issue the saved question Clients That Cannot Take Actions - Action Lock On. For more information, see Issue a saved question.

    Perform the remaining steps for Windows endpoints and then again for non-Windows endpoints.

  2. Select the endpoints that require the action lock turned off, and click Deploy Action.
  3. Select the Deployment Package that matches the target endpoints:
    • Windows endpoints: Tanium Client - Set Action Lock Off

    • Non-windows endpoints: Tanium Client (Non-Windows) - Set Action Lock Off

  4. Configure the remaining action settings and deploy the action. For more information, see Configure action settings.
  5. Monitor the action status and wait for the action to complete: see View status for simple actions.

    Perform the remaining steps to verify that the action lock is off.

  6. Re-issue the saved question Clients That Cannot Take Actions - Action Lock On and verify that the results do not include the endpoints for which you turned off the action lock.
  7. Review the Tanium Client settings on an endpoint that is not included in the question results. Turning off the action lock removes the ActionLockFlag setting on endpoints.
    1. Sign in to the endpoint and open a Command Prompt.
      Note: For more information about the Tanium Client CLI, see Tanium Client command line interface (CLI).
    2. Navigate to the Tanium Client installation directory:
      CODE
      cd <installation directory>
    3. Verify that the list of settings does not include ActionLockFlag:

      TaniumClient config list

  8. On the endpoint, open the associated action log and look for a message that indicates the action lock is off. Action logs are in the <Tanium_Client_installation_directory>/Downloads folder. You can identify the log for a specific action by the log file name (Action_<ID>.txt), which contains the Action ID. For more information, see Track action IDs.

Override action locks

To override action locks for certain operations that Tanium solutions perform, see Solution-specific impacts and overrides for action locks.

To override action locks for a specific action, perform the following steps to edit the associated package before deploying the action.

Note: If a package is Tanium-defined content, clone it and edit the clone instead of editing the original package. For more information, see Tip 4: Limit customizations to Tanium content. You require Package write permission on the content set of a package to edit it.
  1. Consult whoever turned on action locks to verify that it is safe to run the action on the target endpoints.
  2. From the Main menu, go to Administration > Content > Packages and click the package Display Name.
  3. Click Edit Mode , select Ignore Action Lock, and click Save.