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 setting | What an attacker would do | Result with protection on |
|---|---|---|
| Real-time protection | Turn off on-access scanning | Change is ignored and logged |
| Cloud-delivered protection | Cut the link to cloud verdicts | Setting stays enabled |
| Behavior monitoring | Disable detection of suspicious behavior | Setting stays enabled |
| IOAV protection | Stop scanning of downloaded files | Setting stays enabled |
| Security intelligence updates | Remove or freeze signature updates | Updates continue normally |
| Exclusions (with conditions) | Add folders where malware can hide | Blocked when managed by Intune or Defender for Endpoint |
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 channel | Typical environment | Notes |
|---|---|---|
| Windows Security app | Home and unmanaged devices | Toggle under Virus and threat protection settings |
| Microsoft Defender portal | Organizations using Defender for Endpoint | Tenant-wide setting, enabled by default for new tenants |
| Microsoft Intune | Cloud-managed enterprise devices | Configured in an antivirus security policy |
| Configuration Manager with tenant attach | Hybrid on-premises fleets | Requires connection to the cloud tenant |
| Troubleshooting mode | Temporary diagnostics | Unlocks local changes for a limited window, then reverts |
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 compared with related Windows defenses
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.
| Feature | What it protects | Relationship to Tamper Protection |
|---|---|---|
| Tamper Protection | Defender configuration and service | Prevents the antivirus from being disabled |
| Attack surface reduction rules | Common malware behaviors | Their effectiveness depends on Defender staying active |
| Controlled folder access | Documents against ransomware writes | Also relies on Defender real-time protection |
| Memory integrity | Kernel against unsigned drivers | Makes kernel-level tampering harder |
| LSA protection | Credentials in the LSASS process | Separate control; both use protected processes |
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.
| Situation | Recommended approach | Reason |
|---|---|---|
| Personal Windows 11 device | Keep the default setting on | No management channel is needed |
| Fleet managed by Intune | Enable tenant-wide in the Defender portal | Central control and alerting |
| Legacy scripts change Defender settings | Move the settings into Intune policies first | Scripts will stop working after enablement |
| Vendor support asks to disable Defender | Use troubleshooting mode instead | Protection returns automatically |
| Defender in passive mode | Review the third-party product’s own tamper controls | Defender settings are not the active defense |
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.