Tamper Protection

On this page 7

Tamper Protection is a feature of Microsoft Defender Antivirus that locks critical security settings so that malicious software, scripts and local administrators cannot disable real-time protection, remove exclusion safeguards or stop the antivirus service. In Windows security, it closes a gap that attackers exploited for years: gaining administrative rights first and then switching the defenses off before deploying ransomware or other payloads.

The feature is enabled by default on consumer editions of Windows 10 and Windows 11 and can be managed centrally in Microsoft Defender for Endpoint, Intune or Configuration Manager. Its central principle is that only the trusted management channel, not the local machine, may change the protected settings.

How Tamper Protection blocks setting changes

Tamper Protection works by ignoring or reverting changes to protected Defender configuration that do not come from an authorized source. Attempts through the registry, Group Policy, PowerShell cmdlets such as Set-MpPreference, WMI or the Windows Security app are blocked, and the event is logged.

The enforcement runs inside protected Defender processes. The antivirus service runs as a protected process light (PPL) with an anti-malware signer level, which prevents even administrators from injecting code into it or terminating it with standard tools. The kernel driver of Defender guards its registry keys and files, so a script running with elevated rights still cannot overwrite the configuration directly.

The table lists the settings that Tamper Protection guards and the attack each one counters.

Protected settingWhat an attacker would doResult with protection on
Real-time protectionTurn off on-access scanningChange is ignored and logged
Cloud-delivered protectionCut the link to cloud verdictsSetting stays enabled
Behavior monitoringDisable detection of suspicious behaviorSetting stays enabled
IOAV protectionStop scanning of downloaded filesSetting stays enabled
Security intelligence updatesRemove or freeze signature updatesUpdates continue normally
Exclusions (with conditions)Add folders where malware can hideBlocked when managed by Intune or Defender for Endpoint
Settings protected by Tamper Protection

When a blocked attempt occurs, Windows records event ID 5013 in the Microsoft Defender Antivirus operational log, and Defender for Endpoint can raise an alert. These signals are valuable because a tampering attempt is itself an indicator of compromise.

Ways to manage Tamper Protection

The management channel determines who is allowed to change the setting. On a single home computer the user toggles it in the Windows Security app, while in organizations the switch is controlled from the cloud console so that a compromised endpoint cannot flip it.

Management channelTypical environmentNotes
Windows Security appHome and unmanaged devicesToggle under Virus and threat protection settings
Microsoft Defender portalOrganizations using Defender for EndpointTenant-wide setting, enabled by default for new tenants
Microsoft IntuneCloud-managed enterprise devicesConfigured in an antivirus security policy
Configuration Manager with tenant attachHybrid on-premises fleetsRequires connection to the cloud tenant
Troubleshooting modeTemporary diagnosticsUnlocks local changes for a limited window, then reverts
Management options by environment

Notably, Group Policy cannot turn Tamper Protection off. This is intentional: Group Policy objects can be modified by an attacker who controls a domain controller or local policy, which is exactly the scenario the feature is meant to resist.

Tamper Protection protects the protector, whereas most other features in the Windows security stack protect data, credentials or the kernel. Understanding the division of labor helps administrators avoid assuming that one control covers another.

FeatureWhat it protectsRelationship to Tamper Protection
Tamper ProtectionDefender configuration and servicePrevents the antivirus from being disabled
Attack surface reduction rulesCommon malware behaviorsTheir effectiveness depends on Defender staying active
Controlled folder accessDocuments against ransomware writesAlso relies on Defender real-time protection
Memory integrityKernel against unsigned driversMakes kernel-level tampering harder
LSA protectionCredentials in the LSASS processSeparate control; both use protected processes
How Tamper Protection relates to neighboring features

Because attack surface reduction rules, controlled folder access and network protection are all enforced by the Defender engine, disabling Defender would silently disable them too. Tamper Protection therefore acts as a foundation for the whole Defender layer.

Limitations and common mistakes

Tamper Protection raises the cost of an attack but does not make a compromised machine safe. Several practical limits deserve attention.

  • Kernel-level attackers using vulnerable signed drivers can still terminate security processes, which is why driver blocklists and memory integrity matter.
  • Third-party antivirus places Defender in passive mode, and Tamper Protection then has limited effect on the active product.
  • Exclusions added before enablement remain in place, so existing configurations should be audited.
  • Disabling it for troubleshooting and forgetting to re-enable it leaves a lasting gap; troubleshooting mode avoids this by reverting automatically.
  • Assuming Group Policy changes apply leads to confusion when Defender ignores them; check the management channel first.

Administrators can verify the state with the PowerShell command Get-MpComputerStatus, where the property IsTamperProtected reports whether the feature is active, and TamperProtectionSource shows which channel set it.

Planning a Tamper Protection rollout

A rollout succeeds when configuration is finalized before the lock is applied. Once Tamper Protection is active, local scripts and policies can no longer adjust Defender, so any legitimate exclusions or tuning must be delivered through the same managed channel that controls the feature.

SituationRecommended approachReason
Personal Windows 11 deviceKeep the default setting onNo management channel is needed
Fleet managed by IntuneEnable tenant-wide in the Defender portalCentral control and alerting
Legacy scripts change Defender settingsMove the settings into Intune policies firstScripts will stop working after enablement
Vendor support asks to disable DefenderUse troubleshooting mode insteadProtection returns automatically
Defender in passive modeReview the third-party product’s own tamper controlsDefender settings are not the active defense
Decision guide for common situations

After enablement, teams should monitor event 5013 and portal alerts for the first weeks. Unexpected blocks usually reveal forgotten management scripts, while genuine attempts point to devices that need investigation.

A plain-language summary

Think of the antivirus as a security guard and Tamper Protection as a lock on the guard’s control panel. Without the lock, a burglar who gets inside could simply switch the alarm off. With the lock, only the building manager with the right key, meaning the official management system, can change the settings.

On a home computer this lock is switched on automatically. Most people never need to touch it, and leaving it on is the safest choice.

An example from practice

A regional accounting firm with 150 Windows 11 laptops managed through Intune is hit by a phishing email. The attacker obtains local administrator rights on one laptop and runs a script that calls Set-MpPreference to disable real-time protection and add the entire user profile as an exclusion.

Because Tamper Protection is enabled from the Defender portal, every change is ignored. Defender logs event 5013, the security console raises a tampering alert, and the ransomware loader that the attacker downloads next is detected and quarantined. The IT team isolates the device within twenty minutes, resets the compromised credentials and confirms that no files were encrypted.