Troubleshooting Enforce

If Enforce is not performing as expected, you might need to troubleshoot issues or change settings.

Review AppLocker event logs

To see more details about AppLocker blocks on Windows endpoints, review the AppLocker event logs in Event Viewer.

  1. Open the Control Panel on the Windows endpoint and then click System and Security > Administrative Tools.
  2. To open the Event Viewer, double-click Event Viewer.
  3. Expand Applications and Services Logs and click either Tanium Enforce - AppLocker or Tanium Enforce - AppLocker - MSI and Script.
  4. Double-click any of the events to review more details about AppLocker blocks.

All AppLocker logs are gathered into the Tanium Enforce - AppLocker event log when aggregate results is run. Each of the two log file sizes is 10 MB.

Use Enforce sensors

The following list is a sample of available Enforce sensors. To view all sensors, go to Administration > Content > Sensors.

Note: Not all Enforce sensors report back the most recent data. Most sensors provide information that is gathered during the latest validation check on the endpoint. Validation checks are performed at intervals of approximately 15 minutes.
Enforce - Anti-Malware Definition Outdated

Reports the current Windows anti-malware definition version installed on the computer is out of date.

Enforce - Anti-Malware Definition Version

Reports the current Windows anti-malware definition version installed on the computer.

Enforce - Anti-Malware Engine Version

Reports the current Windows anti-malware engine version installed on the computer.

Enforce - Anti-Malware Threat Details

Reports all anti-malware threats along with detection date, process name, and file paths.

Enforce - Anti-Malware Threats Last X Days

Given a number of days in the past, this sensor reports all anti-malware threats since that date.

Enforce - Anti-Malware Threat Counts Last X Days

Given a number of days in the past, this sensor reports all anti-malware threats counts since that date.

Enforce - Total Anti-Malware Threats Last X Days

Given a number of days in the past, this sensor reports to the total number of anti-malware threats detected since that date.

Enforce - Coverage Status

Returns "Optimal" if Enforce is installed and running, "Needs Attention" if Enforce is not installed or is not healthy, "Unsupported" if the operating system is not supported.

Enforce - Device Setup Classes

Lists all device setup classes.

Enforce - Diagnostic - Applied Machine Policies

Specifically for small scale diagnostics. Returns the status of machine policy settings that are applied or partially applied on endpoints

Enforce - Diagnostic - Applied Policy Settings

Specifically for small scale diagnostics. Returns a list of all policy items to be applied on endpoints, including those that do not apply because they are superseded by a duplicate setting.

Enforce - Firewall Rules [Linux]

Reports all configured firewall rules on Linux endpoints.

Enforce - Firewall Rules [Windows]

Reports all configured firewall rules.

Enforce - Host Firewall Enabled

Returns Yes if firewall is enabled. Otherwise, it returns No.

Enforce - Machine Policy Status

Given a list of Policy Id numbers, reports the enforcement status of each.

Enforce - Machine Policy Status [VBS]

Given a list of Policy Id numbers, reports the enforcement status of each. Unlike other sensors, VBS sensors provide up-to-the-minute results.

Enforce Managed Definitions Targeting

Used for targeting Tanium Enforce Managed Definitions packages. This sensor determines if a host should require download and execution of the definitions package.

Enforce Prerequisites

Reports the installed prerequisites needed by some Enforce policies.

Enforce - USB Storage Devices

Lists hardware IDs for all USB storage devices.

Enforce - Tools Version

Reports support and installation details. Checks if the endpoint supports the tools and has enough disk space. If a package has been deployed, reports the install location, version of tools, and if all the required tools are present.

Resolve Active Directory policy conflicts

Enforce uses Local Group Policy Objects (LGPO) to apply policy settings that cannot be applied using a configuration service provider (CSP). When a setting is applied using LGPO, if an endpoint is joined to a domain and is receiving a domain policy that contains the same policy setting Enforce is trying to apply, the Domain Group Policy (DGPO) takes precedence. To resolve this, the DGPO policy setting must be set to Not configured for Enforce to manage it.

Domain-joined endpoints attempt to reach out to a domain controller to resolve conflicts between DGPO and LGPO settings when Enforce applies policies on the endpoint (at the initial enforcement time and then every 60 minutes thereafter). If a domain-joined endpoint cannot reach a domain controller, the endpoint cannot determine if LGPO settings are in conflict with DGPO settings. In this case, LGPO settings are not applied and consequently Enforce cannot apply policies of this type.

To determine whether an endpoint has policy settings that cannot be applied due to a lack of connectivity with the domain controller, ask this question in Interact: Get Client Extensions - Status contains Enforce from all machines and look for a gpo_failure key with the value No Domain Controller connectivity. You can drill down into that row in the results to identify the specific endpoints.
Figure 1. Question results
Example screen capture from Enforce that shows the No Domain Controller connectivity error
Note:
  • Conflicting DGPO and LGPO settings are reported as either Not Applied (only one policy setting exists in the policy and it conflicts with DGPO) or Partially Applied (more than one policy setting exists in the policy and at least one is in conflict with DGPO). Enforce does not apply policy items that are in conflict with DGPO. The group policy engine on the endpoint resolves that internally. The enforcement status drill down reports in the Reason column that the setting was verified with no items applied.

  • An LGPO setting that does not use a GPO client-side extension (CSE) is applied directly to the registry. These settings show as Applied even if the endpoint cannot connect to the domain controller. For more information about CSE, see Microsoft: Client-side Extensions.

Review policy settings when Windows Defender tamper protection is enabled

When you enable tamper protection in Windows Defender, the following policy settings are locked with their default values and cannot be edited through group policy. These settings might cause log errors if configured as part of an anti-virus policy or machine administrative template policy. For more information about settings that are disabled by Windows Defender tamper protection, see Microsoft Documentation: Protect security settings with tamper protection.

Review the status for policy settings on Windows endpoints

When you enforce a BitLocker policy, Machine Administrative Template policy, Security Settings policy, or User Administrative Template policy, settings on supported Windows 10 and later endpoints are applied using configuration service providers (CSPs) when possible. For more information, see Configuration service providers (CSPs). Policy settings that cannot be applied using a CSP are applied using Local Group Policy (LGPO), the Group Policy Security Settings extension, or the Group Policy Audit Configuration Extension.

To check the status of a policy setting on Windows endpoints, you can ask this question: Get Enforce - Diagnostic - Applied Policy Settings from <targeted endpoints> in Interact. In the results, the Status column shows the status and how the setting was applied. For example:

Table 2. Policy setting statuses

Status

Meaning

CSP:VERIFIED_FULL SECURITY:VERIFIED_NOT_APPLIED

CSP:VERIFIED_FULL indicates that the setting was successfully applied on the endpoint using a CSP. The SECURITY:VERIFIED_NOT_APPLIED status can be ignored; the setting application was not attempted using the Group Policy Security Settings extension because the setting was already successfully applied using a CSP.

CSP:VERIFIED_NOT_APPLIED LGPO:VERIFIED_FULL

CSP:VERIFIED_NOT_APPLIED indicates that the setting was not successfully applied on the endpoint using a CSP. The setting was then successfully applied using Local Group Policy (LGPO).

LGPO:VERIFIED_SUPERSEDED

The setting was superseded by another policy with a higher priority. Check the Errors column for the policy ID of the policy that superseded the setting. For more information about prioritizing policies, see Prioritize policies.

LGPO:VERIFIED_FULL

The setting was successfully applied using LGPO. Either the setting or the endpoint operating system is not supported by CSP, so that method was not attempted.

AUDIT:VERIFIED_FULL

The setting was successfully applied using the Group Policy Audit Configuration Extension. Audit settings are not supported for application using a CSP, so that method was not attempted.

CSP:VERIFIED_ERROR LGPO:VERIFIED_FULL

An error occurred when attempting to apply the setting using a CSP, but the setting was successfully applied using LGPO. Check the Errors column for more information on the CSP error. If both methods fail with an error, the setting application retries later. For more information, see Enforcing policies.

"Access is Denied" error when attempting to manually encrypt a removable drive

If you attempt to manually encrypt a removable drive using BitLocker in a remote desktop session (RDP), you might receive this error: Access is denied. This error can occur in this scenario if the All Removable Storage: Allow direct access in remote sessions policy setting is not enabled. To resolve this error, either enable BitLocker using the local console (not over RDP) or enable the policy setting using a Machine Administrative Template policy. This setting is in the System > Removable Storage Access section of the policy.

Translate encryption method values in an exported BitLocker policy

When you export a BitLocker policy, the encryption method settings appear in the JSON as unsigned integer values rather than algorithm names. To translate these integers to the corresponding algorithm, see BitLocker encryption method values in exported policies.

Identify and resolve issues with Client Extensions

Use the following steps to troubleshoot issues with the Client Extensions that Enforce installs and uses. During troubleshooting, consider environmental factors such as security exclusions, file locks, CPU usage, RAM usage, and disk failures.

Tip: For more information about the Client Extensions that Enforce installs and uses, see Client Extensions.
  1. If endpoints have Client Extension shared process mode enabled and you need to troubleshoot resource usage or crashes in the combined TaniumCX.exe or TaniumCX process, disable shared process mode on the affected endpoints, and then reproduce the issue if possible. For more information, see Manage Client Extension shared process mode.
  2. To review the health of Client Extensions or to start an investigation into an existing error, ask a question using the Client Extensions - Status sensor.

    The results of these questions help to identify endpoints with errors and provide a starting point to deploy actions that might help correct the issue. Filter the results and drill down as necessary to investigate results that indicate errors.

    Tip: Consider whether endpoints with errors share common characteristics, such as operating system, domain or organization unit, or the antivirus software that is installed.
  3. Target one or more endpoints with errors, and uninstall tools that report errors without blocking reinstallation. For more information, see Remove Enforce tools from endpoints and Endpoint Configuration User Guide: Uninstall a tool installed by Endpoint Configuration.
    CAUTION: When you perform a hard uninstallation of some tools, the uninstallation also removes data that is associated with the tool from the endpoint. This data might include important historical or environmental data. If data that you want to keep is associated with the tool, make sure you perform only a soft uninstallation of the tool.

    Wait for automatic reinstallation of the tool. If the reinstallation does not resolve the issue, continue to the next step.

  4. Ask a question using the Endpoint Configuration - Tools Status Details sensor, and include filters to limit the results to the tool that you are investigating. For example:

    Get Endpoint Configuration - Tools Status Details having Endpoint Configuration - Tools Status Details:Tool Name contains <Tool_Name> from all machines with Endpoint Configuration - Tools Status:Tool Name contains <Tool_Name>

    Review the columns in the results for specific information about errors. The following table provides guidance for some common error conditions:

    Table 3. Potential errors returned by the Endpoint Configuration - Tools Status Details sensor

    Error Condition

    Possible Resolution

    No error appears, but an available new version has not been installed

    Review the Targeted Version column to make sure that the endpoint has received the latest manifest. If the targeted version does not yet show the updated version, the Endpoint Configuration manifest has not updated on the endpoint, usually for one of the following reasons:

    Installation Blocker:

    Unmet Dependencies: [Tool name]

    If no Failure Message or Failure Step appears, the endpoint might be waiting for the dependencies to install. Wait to see if the condition resolves on its own. If this condition remains for an extended period, ask the question again and review any error information in other columns, especially the Failing Dependency column.

    Failing Dependency:[Tool name]

    Ask the question: Endpoint Configuration - Tools Status Details having Endpoint Configuration - Tools Status Details:Tool Name contains [Tool name] from all machines with Endpoint Configuration - Tools Status:Tool Name contains [Tool name]

    Investigate further errors with the tool.

    If the dependency has not been installed on an endpoint, ask the question: Get Endpoint Configuration - Tools Retry Status from all machines with Computer Name equals Computer_Name to review the retry status for the tool installation. For more information, see Review tool installations that are scheduled for a retry.

    Manually Blocked:

    blocked

    The tool was previously blocked, either manually or during a previous uninstallation. Unblock the tool. For more information, see Block or unblock tools from installing on an endpoint.

  5. Review the Extensions logs on the endpoint. Take note of entries that include fail or error. For more information, see Review the Extensions log for an endpoint.

For additional help, contact Tanium Support.

Remove Enforce tools from endpoints

You can deploy an action to remove Enforce tools from an endpoint or computer group. Separate actions are available for Windows and non-Windows endpoints.

  1. In Interact, target the endpoints from which you want to remove the tools. For example, ask a question that targets a specific operating system:Get Endpoint Configuration - Tools Status from all machines with Is Windows equals true
  2. In the results, select the row for Enforce, drill down as necessary, and select the targets from which you want to remove Enforce tools. For more information, see Tanium Interact User Guide: Drill Down.
  3. Click Deploy Action.
  4. For the Deployment Package, select Endpoint Configuration - Uninstall Tool [Windows] or Endpoint Configuration - Uninstall Tool [Non-Windows], depending on the endpoints you are targeting.
  5. For Tool Name, select Enforce.
  6. (Optional) By default, after the tools are removed they cannot be reinstalled. To allow tools to be automatically reinstalled, clear the selection for Block reinstallation. Re-installation occurs almost immediately.
    Note:

    If reinstallation is blocked, you must unblock it manually:

    • To allow Enforce to reinstall tools, deploy the Endpoint Configuration - Unblock Tool [Windows] or Endpoint Configuration - Unblock Tool [Non-Windows] package (depending on the targeted endpoints).

    • If you reinstall tools manually, select Unblock Tool when you deploy the Endpoint Configuration - Reinstall Tool [Windows] or Endpoint Configuration - Reinstall Tool [Non-Windows] package.

  7. (Optional) To remove all Enforce databases and logs from the endpoints, clear the selection for Soft uninstall.
    CAUTION: When you perform a hard uninstallation of some tools, the uninstallation also removes data that is associated with the tool from the endpoint. This data might include important historical or environmental data. If data that you want to keep is associated with the tool, make sure you perform only a soft uninstallation of the tool.
  8. (Optional) To also remove any tools that were dependencies of the Enforce tools that are not dependencies for tools from other solutions, select Remove unreferenced dependencies.
  9. (Optional) In the Deployment Schedule section, configure a schedule for the action.
    Tip: If some target endpoints might be offline when you initially deploy the action, select Recurring Deployment and set a reissue interval.
  10. Click Show preview to continue.
  11. A results grid appears at the bottom of the page showing you the targeted endpoints for your action. If you are satisfied with the results, click Deploy Action.