Skip to main content

Antivirus and tamper protection

Microsoft documentedDefender for Endpoint · Source checked 2026-10-22 · Not yet verified in tenant · Sources: [1][2][3][4][5][6][7][8][9][10][11][12][13][14][15][16][17][18]

What it is​

Defender Antivirus is the engine on the box. Real-time protection, behavior monitoring, cloud lookups, network protection, PUA, scans, and exclusions all live there. MDE adds the sensor, portal, and reporting. ASR rules, controlled folder access, and indicators also run in the engine, so its running mode decides whether most of this folder works at all.

Intune manages it under Endpoint security > Antivirus. Four Windows profiles: Microsoft Defender Antivirus (core settings), Microsoft Defender Antivirus exclusions (paths, extensions, processes only), Windows Security experience (the user-facing app plus tamper protection), and Defender Update controls (platform, engine, signature channels). The Defender portal shows the same templates under Endpoint security policies when security settings management is on.

Tamper protection is the lock. With it on, a local admin, a script, or malware cannot turn off real-time or cloud protection, stop signature updates, or add exclusions. Changes look like they worked and are ignored. Microsoft is renaming the management setting to controlled configuration, a superset where Intune becomes the only authority and unconfigured settings drop to secure defaults.

Licensing and prerequisites​

  • Defender AV ships with Windows. The Intune profiles need Intune Plan 1. Cloud protection, block at first sight, and sample submission: MDE P1 or P2.
  • Tamper protection: the cloud protection page lists it under P2, the Intune and overview pages say P1, P2, and Defender for Business. Treat P1 as the floor and confirm. EDR in block mode is P2 only.
  • Tamper protection via Intune: Windows 10 1709 or later, platform 4.18.1906.3, engine 1.1.15500.x, security intelligence 1.287.60.0 or later. Device must be onboarded to MDE first or it reports Not applicable. Intune and MDE in the same Entra tenant. Co-managed devices not supported.
  • Tamper protection via the portal toggle: platform 4.18.2010.7, engine 1.1.17600.5 or later, cloud protection on. From platform 4.18.2111.5, turning on tamper protection also turns on cloud protection.
  • Tamper-protected exclusions: platform 4.18.2211.5 or later, DisableLocalAdminMerge true, Intune-only or ConfigMgr-only management, exclusions pushed from that tool.
  • Roles: Intune Endpoint Security Manager. Defender portal needs Core security settings (manage).
  • macOS: macOS 11 or later, MDE 101.70.19 or later. Tamper exclusions need 101.98.71.

How it works​

Running modes​

The state depends on the OS, MDE onboarding, and whether a non-Microsoft AV is registered with Windows Security Center.

Primary AVOnboarded to MDEDefender state
Defender AVYes or NoActive
Non-MicrosoftYesPassive
Non-MicrosoftNoDisabled (client auto, server manual)

Active: scans, remediates, reports. Passive: scans and reports but does not remediate. Real-time blocking, cloud protection, network protection, ASR, controlled folder access, PUA, and scan schedules are off. Signatures still arrive on the Windows Update cadence. EDR response actions always work. EDR in block mode on top of passive lets the engine remediate what the EDR sensor finds post-breach. It honours AV exclusions, not indicators.

AMRunningMode in Get-MpComputerStatus reports Normal, Passive, or EDR Block Mode. Passive on clients needs wscsvc running. On servers it is the ForceDefenderPassiveMode DWORD under HKLM\SOFTWARE\Policies\Microsoft\Windows Advanced Threat Protection, set before onboarding. With tamper protection on (platform 4.18.2208.0 and later) a server can go passive to active but not back.

Cloud protection​

MAPS sends file metadata to Microsoft and gets a verdict during the block window. On by default. Block at first sight, tamper protection, EDR in block mode, emergency signature pushes, and three ASR rules depend on it. Cloud block level sets how aggressive the verdict is.

Intune and portalPowerShell CloudBlockLevelMeaning
Not configuredDefaultNormal blocking
HighHighMore unknowns blocked, some perf cost
High plusHighPlusExtra checks, more perf cost
Zero toleranceZeroToleranceBlocks all unknown executables

GPO also has Moderate. Cloud extended timeout adds up to 50 seconds to the default 10 second hold.

Features that stop working when cloud protection is off: tamper protection, block at first sight, EDR in block mode, emergency updates, and several ASR rules. Source: Microsoft Learn, CC BY 4.0.
Features that stop working when cloud protection is off: tamper protection, block at first sight, EDR in block mode, emergency updates, and several ASR rules. Source: Microsoft Learn, CC BY 4.0. · captured 2026-10-22

Exclusions​

Paths, extensions, processes. A process exclusion skips files opened by that process, not the binary itself, and applies to real-time protection only. Contextual exclusions limit a path to one trigger, for example C:\Example\*.test\:{ScanTrigger:OnDemand}. Intune merges exclusions from every assigned Antivirus and exclusions policy into one superset. On startup, Intune and ConfigMgr exclusions overwrite conflicting GPO and PowerShell entries.

Local admin exclusions merge with policy unless DisableLocalAdminMerge is true. HideExclusionsFromLocalAdmins hides the list from Get-MpPreference and the registry and implies HideExclusionsFromLocalUsers.

Tamper protection​

Protected on Windows: virus and threat protection, real-time protection, behavior monitoring, IOAV, cloud protection, security intelligence updates, automatic remediation, Windows Security notifications, archive scanning, exclusions. Registry edits to Defender settings are blocked. Since signature 1.383.1159.0, Allow Scanning Network Files is no longer locked. Viewing settings still works. Third-party AV can still register with Windows Security. The service stays protected in passive mode.

Precedence:

  1. An Intune or ConfigMgr policy that manages tamper protection beats the tenant-wide portal toggle.
  2. Policy or portal beats the Windows Security app toggle.
  3. If Intune manages it, flipping the portal toggle does not change the device. The portal setting only restricts protected settings to secure defaults.
  4. Controlled configuration beats tamper protection if a device gets both.

GPO changes to protected settings are ignored. Event ID 5013 logs a blocked change. Attempts show as TamperingAttempt in DeviceEvents and can raise the alerts "Tamper Protection bypass" and "Tampering with the Microsoft Defender for Endpoint sensor".

Exclusions become tamper-protected only when all four prerequisites above are met. The device reports it in HKLM\SOFTWARE\Microsoft\Windows Defender\Features\TPExclusions (1 protected, 0 not). ManagedDefenderProductType 6 is Intune only. 7 with SenseCM\EnrollmentStatus 4 is ConfigMgr, 7 with 3 is co-managed and not eligible. Read only. Editing them does nothing. You do not turn tamper protection off to push new exclusions from Intune.

macOS​

Levels: disabled, audit (default after install, reports only), block. Block stops uninstalling the app, killing wdavdaemon, and touching /Applications/Microsoft Defender.app/, /usr/local/bin/mdatp, /Library/LaunchDaemons/com.microsoft.fresno.plist, and /Library/Managed Preferences/. Precedence: MDM profile (tamperProtection/enforcementLevel) beats mdatp config, which beats the portal toggle (on = block, off = audit if licensed). A local admin can lower a local level, not an MDM one. Jamf and Intune helpers are excluded by default. Other trusted processes go in the MDM profile by path, teamId, signingId, and args. Enable SIP and grant Full Disk Access via MDM so a local admin cannot revoke it.

mdatp health on macOS reporting tamper protection in block mode. Source: Microsoft Learn, CC BY 4.0.
mdatp health on macOS reporting tamper protection in block mode. Source: Microsoft Learn, CC BY 4.0. · captured 2026-10-22

Configure​

  1. Intune admin center > Endpoint security > Antivirus > Create policy. Platform Windows, profile Microsoft Defender Antivirus. Co-managed devices need the Endpoint Protection workload on Intune.
Intune Endpoint security > Antivirus overview, where the profiles are created and listed. Source: Microsoft Learn, CC BY 4.0.
Intune Endpoint security > Antivirus overview, where the profiles are created and listed. Source: Microsoft Learn, CC BY 4.0. · captured 2026-10-22
  1. Core settings. Names are the CSP names Learn documents; settings catalog labels are close but not identical. Everything else stays Not configured.
SettingRecommendedWhy
Allow cloud protectionAllowedTamper protection, BAFS, EDR block mode, and several ASR rules need it.
Submit samples consentSend safe samples automaticallyNever send disables block at first sight.
Cloud block levelHighDefault is fine for most. Zero tolerance blocks every unknown executable.
Cloud extended timeoutUp to 50Longer hold for a verdict.
Allow real-time monitoringAllowedTamper-protected anyway.
Allow behavior monitoringAllowedNetwork protection needs it on clients.
Allow IOAV protectionAllowedDownloads and attachments.
Enable network protectionAudit, then Enabled (block)Block is required for URL and IP indicators and web content filtering.
PUA protectionAudit, then BlockAudit shows only in the Event Log.
Allow archive scanningAllowedTamper-protected.
Signature update intervalNon-zero0 disables checks.
Disable local admin mergeTrueRequired for tamper-protected exclusions. Drops local exclusions.
Scan parameter and scheduleQuick scan, dailyIgnored in passive mode.
Summary page of an Intune antivirus policy, the last screen before assignment. Source: Microsoft Learn, CC BY 4.0.
Summary page of an Intune antivirus policy, the last screen before assignment. Source: Microsoft Learn, CC BY 4.0. · captured 2026-10-22
  1. Exclusions in the same profile or a separate Microsoft Defender Antivirus exclusions profile. They merge. CSV import headers: ExcludedExtensions, ExcludedPaths, ExcludedProcesses.

  2. Tamper protection: new policy, platform Windows, profile Windows Security experience. Defender section > Tamper protection (device) > On. Learn's example assigns to All users and All devices, Include. The newer template carries Controlled Configuration (Device): Not configured, Off, Tamper Protection (On), Controlled Configuration (On).

What the device shows once the policy lands: tamper protection On in the Windows Security app, greyed out for local users. Source: Microsoft Learn, CC BY 4.0.
What the device shows once the policy lands: tamper protection On in the Windows Security app, greyed out for local users. Source: Microsoft Learn, CC BY 4.0. · captured 2026-10-22
  1. Tenant fallback: Defender portal > Settings > Endpoints > General > Advanced features > Tamper protection (security.microsoft.com/preferences2/endpoints). Policy beats this on any device that has one. Enable EDR in block mode is on the same page.
Tenant-wide tamper protection toggle under Advanced features in the Defender portal. Source: Microsoft Learn, CC BY 4.0.
Tenant-wide tamper protection toggle under Advanced features in the Defender portal. Source: Microsoft Learn, CC BY 4.0. · captured 2026-10-22
  1. macOS: platform macOS, profile Antivirus for AV settings. Tamper protection: Settings catalog > Microsoft Defender > Tamper protection > Enforcement level, or a custom profile with payload identifier com.microsoft.wdav.

  2. Assign to device groups. Windows Server uses the Windows platform. ConfigMgr tenant attach uses Windows (ConfigMgr) with the preview profiles.

Verify​

  • Get-MpComputerStatus: AMRunningMode Normal, RealTimeProtectionEnabled True, IsTamperProtected True, AntivirusSignatureVersion current. On Server 2012 R2 to 2019 and Windows 10 1709 to 1809 the Windows Security app does not show tamper protection. PowerShell is the local check.
  • Defender portal > device page > Security policies tab shows applied policies for devices under security settings management.
  • Intune > Endpoint security > Antivirus > Unhealthy endpoints, and Reports > Antivirus agent status. The Tamper protection column becomes Controlled configuration when that is in use.
  • Vulnerability Management recommendation "Turn on Tamper Protection".
Intune Unhealthy endpoints report, the quickest view of devices with real-time protection or signatures in a bad state. Source: Microsoft Learn, CC BY 4.0.
Intune Unhealthy endpoints report, the quickest view of devices with real-time protection or signatures in a bad state. Source: Microsoft Learn, CC BY 4.0. · captured 2026-10-22
  • Event log Windows Defender/Operational: 5013 blocked change, 1160 PUA detection, 5007 settings change.
  • macOS: mdatp health shows tamper_protection : "block".
DeviceEvents
| where Timestamp > ago(7d)
| where ActionType == "AntivirusDetection"
| extend x = parse_json(AdditionalFields)
| project Timestamp, DeviceName, FileName, FolderPath, SHA256,
ThreatName = tostring(x.ThreatName),
WasExecutingWhileDetected = tostring(x.WasExecutingWhileDetected),
WasRemediated = tostring(x.WasRemediated)
| order by Timestamp desc
DeviceEvents
| where Timestamp > ago(10d)
| where ActionType in ("TamperingAttempt", "AntivirusTroubleshootModeEvent")
| project Timestamp, DeviceName, ActionType, InitiatingProcessFileName, AdditionalFields

Troubleshoot​

SymptomLikely causeFix
Intune shows Conflict on an AV settingTwo profiles set the same non-mergeable settingMost secure wins, then last modified, then nothing. Remove the duplicate. Only exclusions merge.
Set-MpPreference returns no error, nothing changesTamper protection ignores the changeExpected. Use Intune, or troubleshooting mode. Check Event 5013.
GPO AV settings not appliedTamper protection ignores GPO for protected settingsMove the setting to Intune or exclude the device from the tamper policy.
Exclusions in Intune, Get-MpPreference shows noneHideExclusionsFromLocalAdmins on, or policy not arrivedVerify with MpCmdRun -CheckExclusion. Check policy report.
Exclusion works for scans, not for the appProcess exclusion covers files the process opens, not the binary, and real-time onlyPath exclusion for the binary.
TPExclusions is 0 under IntunePlatform below 4.18.2211.5, DisableLocalAdminMerge not true, or ManagedDefenderProductType 7Fix the condition. If all met, support case.
Tamper protection Not applicable in IntuneDevice not onboarded to MDEOnboard. Turns on at first check-in.
AMRunningMode Passive, should be activeThird-party AV in WSC, ForceDefenderPassiveMode 1, or Turn off Windows Defender GPO on an onboarded serverRemove the AV, flip the value, remove the GPO.
AMRunningMode Passive, no third-party AVwscsvc disabled, or Smart App Control On without MDEEnable wscsvc. Onboard.
Signatures staleSignatureUpdateInterval 0, no path to update source, or passive mode on Windows Update cadenceSet interval, check fallback order, Update-MpSignature.
Network protection Enabled, does nothing on a serverOpt-in not setAllowNetworkProtectionOnWinServer true, plus AllowNetworkProtectionDownLevel on 2012 R2 and 2016.
RSOP shows cloud block level disabledRSOP reads 0 as disabledConfirm HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\MpEngine exists.
Portal toggle off, devices still protectedIntune policy manages it and winsChange the policy.
Policy change not applied during troubleshooting modeChanges queue until the mode expiresWait for the 4 hour window.

Gotchas and limits​

  • Policy beats portal. The tenant toggle only covers devices without a tamper policy.
  • Controlled configuration beats both and only covers the Antivirus and ASR templates. EDR, firewall, settings catalog, and account protection are out of scope. Overlapping settings catalog policies report Not applicable.
  • Troubleshooting mode: 4 hours per run, 8 hours per device per day, up to 15 minutes to start, AV 4.18.2203 or later. Platform updates defer during the window. Offline devices do not get the command. Local admins still cannot uninstall AV.
  • DisableLocalAdminMerge true drops every locally added exclusion. Plan for it.
  • Co-managed devices never get tamper-protected exclusions.
  • Exclusions are visible to any local admin via Get-MpPreference and the registry unless hidden. Hiding does not change what is excluded.
  • GPO, Intune, and security settings management can all write the same CSP. Intune and ConfigMgr exclusions overwrite GPO on startup. Tamper protection ignores GPO for protected settings. For the rest, GPO wins over MDM unless MDMWinsOverGP is set. One channel per setting.
  • Server passive to active is one way under tamper protection.
  • PUA audit events go only to the Event Log.
  • Defender for Business is in the applies-to list for tamper protection and the Intune AV profiles, and built-in protection turns tamper protection on by default. Learn gives no other Business-specific behaviour on these pages. EDR in block mode is P2 only.
  • macOS: a level set with mdatp config can be lowered by any local admin. Only the MDM profile sticks. Excluding an interpreter such as Ruby without args excludes every script it runs.

Further reading​

Only three posts from the last 12 months passed the quality bar; Peter van der Woude and Jeffrey Appel have good tamper protection and AV baseline write-ups but they predate October 2025.

My notes​

TODO: Sohail's notes after verification.

Changelog​

DateChangeSource
2026-10-22Drafted from Learn[1]
2026-10-22Added Learn images, diagrams, further reading