Tanium Enforce and Microsoft Defender Tamper Protection

Special thanks the Enforce SME Team: Michael Khanolkar, Josh Holley, Tim Mintner, and Kofi Asirifi.  

What is Tamper Protection?

Microsoft Defender Tamper Protection prevents unauthorized changes to security settings by malicious applications or bad actors. When enabled, changes to security settings that can reduce the security posture of endpoints with Defender are blocked.  What is changing?

Microsoft announced that Tamper Protection will be enabled for all existing enterprise customers starting October 24, 2022, unless it is explicitly turned off.

This change affects customers with Defender for Endpoint Plan 2 or Microsoft 365 E5 licenses. All Tanium Enforce customers that are managing Defender on endpoints that are onboarded to Microsoft Defender for Endpoint (MDE) are impacted by this change. What can you expect?

Tanium Enforce manages Microsoft Defender settings using a Local Group Policy. With Tamper Protection enabled, Group Policy modifications to tamper protected settings are ignored. Enforce might report these settings as Applied, Partially Applied, or Not Applied. You will need to review the following list of affected settings. 

  • Disabling virus and threat protection

  • Disabling real-time protection

  • Turning off behavior monitoring

  • Disabling antivirus protection, such as IOfficeAntivirus (IOAV)

  • Disabling cloud-delivered protection

  • Removing security intelligence updates

  • Disabling automatic actions on detected threats

  • Suppressing notifications in the Windows Security app

  • Disabling scanning of archives and network files

Settings to manage definition and platform updates are not affected. 

Note:

Tanium is NOT advising to disable Tamper Protection.

How to identify endpoints with Tamper Protection Enabled? 

With Core Content 1.6.39 imported, to identify endpoints with Tamper Protection enabled ask the question:

Get Microsoft Defender Tamper Protection Status from all machines


TanEnforceMSDef_190e3ce3-8268-4a29-aa4f-91f4c3a86a40.png

To create a sensor, use the following code snippets. Windows

try {   $MpComputerStatus = Get-MpComputerStatus -ErrorAction Stop   $state = $($MpComputerStatus.IsTamperProtected)   if ( $state -eq "True" ) {       Write-Output "Enabled"       Exit   }   Write-Output "Disabled"}catch [System.Management.Automation.CommandNotFoundException] {   Write-Output "Microsoft Defender not installed"}catch {   Write-Output "Error: $($_.CategoryInfo.TargetName) - $($_.CategoryInfo.Reason)"}

macOS

#!/bin/shmdatp="mdatp" if ! command -v mdatp >/dev/null 2>&1; then   [ -e "/usr/local/bin/mdatp" ] && mdatp="/usr/local/bin/mdatp" || { echo "Microsoft Defender not installed" ; exit ; }fi status=`$mdatp health --field tamper_protection | grep -v ATTENTION` || { echo "Error: mdatp command failed" ; exit ; } [ "$status" = '"enabled"' ] && echo "True" || echo "False"# Copyright 2022, Tanium Inc.

Linux

#!/bin/shmdatp="mdatp" if ! command -v mdatp >/dev/null 2>&1; then   [ -e "/usr/bin/mdatp" ] && mdatp="/usr/bin/mdatp" || { echo "Microsoft Defender not installed" ; exit ; }fi status=`$mdatp health --field tamper_protection | grep -v ATTENTION` || { echo "Error: mdatp command failed" ; exit ; } [ "$status" = '"enabled"' ] && echo "True" || echo "False"# Copyright 2022, Tanium Inc.

Additional Resources

  1. Review policy settings when Windows Defender tamper protection is enabled

  2. Manage tamper protection for your organization using Microsoft 365 Defender porta