Attack surface reduction (ASR) rules block the behaviours most commodity malware and ransomware operators rely on, yet many estates leave them in Audit mode for years because nobody owns the move to Block. The rules themselves are a few GUIDs and a mode value; the hard part is the deployment: proving which line-of-business apps a rule will break, writing exclusions narrow enough not to undo the protection, and moving ring by ring to enforcement with a way back. This guide is the deployment runbook for Microsoft Defender ASR rules: prerequisites, the rule set and its quirks, policy sources and precedence, audit data, exclusions, ring rollout, rollback and measurement. It is written for endpoint engineers and security operations teams running Microsoft Defender for Endpoint, Intune, Configuration Manager or Group Policy. For where ASR fits among other Windows controls, read the Windows Endpoint Hardening Guide first.
This is an independent guide from NHI Mgmt Group, based on Microsoft's public documentation as of November 2026. It is not sponsored or reviewed by Microsoft. Product features change, so confirm settings against Microsoft's current documentation.
Key takeaways
- Check prerequisites before any rule: ASR rules work only when Microsoft Defender Antivirus is the primary antivirus in active mode with real-time and cloud-delivered protection on.
- Start the three standard protection rules in Block: Microsoft says they can typically go to Block or Warn without testing; audit the rest first.
- Pick one policy source per rule: Intune or Configuration Manager settings overwrite local PowerShell values, and configuring the same rule in Group Policy and MDM creates conflicts.
- Prefer narrow, per-rule exclusions: excluded files run with no further ASR events, so a broad folder exclusion silently removes protection.
- Measure the move to Block: track rules in Block per device, audit-to-block conversion and exclusion count, not just "policy deployed".
Prerequisites and what ASR rules need to work
ASR rules are part of Microsoft Defender Antivirus, so their prerequisites are antivirus prerequisites. Microsoft's ASR overview sets these conditions:
- Active mode: Defender Antivirus must be the primary antivirus. Rules do not run in passive mode, in passive mode with EDR in block mode, in limited periodic scanning, or with the antivirus off. Estates still running another antivirus product must plan that change first.
- Real-time protection: on.
- Cloud-delivered protection: on, and devices must reach the Defender Antivirus cloud service. Microsoft calls it critical to ASR rule functionality, and several rules (obfuscated scripts, the prevalence rule, advanced ransomware protection) state they require it.
- Current components: platform, engine and security intelligence no more than two versions behind the latest, which also reduces false positives.
- Supported systems: centrally managed rules, reporting and alerting cover Windows 10 or later Pro and Enterprise, Windows Server 2012 R2 or later and Azure Local 23H2 or later. ASR rules do not apply to macOS or Linux, even when onboarded to Defender for Endpoint.
- Availability: ASR rules do not require Microsoft 365 E5, but Microsoft recommends E5 or equivalent for the portal report, advanced hunting and device timeline. Without them, build reporting from Windows events collected with Windows Event Forwarding. The deployment guide applies to Defender for Endpoint Plan 1 and Plan 2; advanced hunting is a Plan 2 capability.
Microsoft also records a known issue where ASR on server operating systems can report as compliant without enforcement, so verify servers with test events rather than trusting the configuration report alone.
The rule set and how to sequence it
Rule modes are the same everywhere: 0 Off, 1 Block, 2 Audit, 5 Not configured and 6 Warn. Warn behaves like Block but lets the user select Unblock for 24 hours; since platform version 4.18.26060 that override needs administrator approval. Warn needs Windows 10 1809 or later, is not available through Configuration Manager, and is not supported by the LSASS and Office code injection rules. The table groups the rules by deployment wave, using notes from Microsoft's rule reference.
| Wave | Rule | GUID | Deployment note |
|---|---|---|---|
| 1: standard protection | Block abuse of exploited vulnerable signed drivers | 56a863a9-875e-4185-98a7-b882c64b5ce5 | Blocks writing vulnerable signed drivers, not loading ones already present. |
| 1: standard protection | Block credential stealing from the Windows local security authority subsystem | 9e6c4e1f-7d60-472f-ba1a-a39ef669e4b2 | Noisy in Audit; no Warn mode; limited exclusion support. |
| 1: standard protection | Block persistence through WMI event subscription | e6db77e5-3df2-4cf1-b95a-636979351e5b | Audit first where Configuration Manager is used, as it relies heavily on WMI. |
| 2: email and Office | Block executable content from email client and webmail | be9ba2d9-53ea-4cdc-84e5-9b1eeee46550 | Usually few business hits. |
| 2: email and Office | Block all Office applications from creating child processes | d4f940ab-401b-4efc-aadc-ad5f3c50688a | Enforced only for Office installed under Program Files; add-ins often trigger it. |
| 2: email and Office | Block Office applications from creating executable content | 3b576869-a4ec-4529-8536-b80a7769e899 | Not affected by Office install location. |
| 2: email and Office | Block Office applications from injecting code into other processes | 75668c1f-73b5-4cf0-bb93-3ecf5cb7cc84 | Restart Microsoft 365 Apps after enabling; no Warn mode. |
| 2: email and Office | Block Win32 API calls from Office macros | 92e97fa1-2edf-4476-bdd6-9dd0b4dddc7b | Pair with macro policy. |
| 2: email and Office | Block Office communication application from creating child processes | 26190899-1602-49e8-8b27-eb1d0a1ce869 | Test add-ins and integrations that launch from the mail client. |
| 2: email and Office | Block Adobe Reader from creating child processes | 7674ba52-37eb-4a4f-a9a1-f0f9a1619a2c | Test PDF workflows that launch other tools. |
| 3: scripts and binaries | Block execution of potentially obfuscated scripts | 5beb7efe-fd9a-4556-801d-275e5ffc04cc | Requires cloud protection; admin scripts can trigger it. |
| 3: scripts and binaries | Block JavaScript or VBScript from launching downloaded executable content | d3e037e1-3eb8-44c8-a917-57927947596d | Check legacy logon scripts. |
| 3: scripts and binaries | Block untrusted and unsigned processes that run from USB | b2b3f03d-6a65-4f7b-a9c7-1c7ef74a9ba4 | Check field and engineering tooling. |
| 3: scripts and binaries | Block use of copied or impersonated system tools | c0033c00-d16d-4114-a5a0-dc9b3a7d2ceb | Heuristic; a block is not proof of malice. |
| 3: scripts and binaries | Block rebooting machine in Safe Mode | 33ddedf1-c6e0-47cb-833e-de6133960387 | Recovery Environment access remains available. |
| 4: high-impact | Block process creations originating from PSExec and WMI commands | d1e49aac-8f56-4280-b9ba-993a6d77406c | Breaks management tools that use PsExec or WMI process creation; long audit. |
| 4: high-impact | Block executable files from running unless they meet a prevalence, age, or trusted list criterion | 01443614-cd74-433a-b99e-2ecdc07bfc25 | Hits unsigned in-house software; requires cloud protection. |
| 4: high-impact | Use advanced protection against ransomware | c1db55ab-c21a-4637-bb3f-a12568109d35 | New benign files can be blocked until reputation builds. |
| Servers | Block Webshell creation for Servers | a8f5898e-1dc8-49a9-9878-85004b8a61e6 | Leave Not configured in Group Policy and local settings when Defender for Endpoint manages it. |
The LSASS rule is redundant where LSA protection and Credential Guard are already enabled, but it still costs little to keep in Block. Microsoft also notes some ASR rules work poorly with frequently used unsigned, internally developed apps and scripts, so code signing for in-house tools makes waves 3 and 4 much easier.
Choosing a policy source and avoiding conflicts
| Method | Where it is set | Precedence and notes |
|---|---|---|
| Intune endpoint security policy | Endpoint security, Attack surface reduction, profile Attack Surface Reduction Rules (platform Windows) | Microsoft's recommended route. Assign to device groups; user groups are not supported. Supports per-rule exclusions. |
| Defender portal security settings management | Endpoint security policies, Windows policies, template Attack surface reduction rules | Same settings as Intune. |
| Any MDM (Policy CSP) | ./Vendor/MSFT/Policy/Config/Defender/AttackSurfaceReductionRules, pipe-delimited GUID=mode; global exclusions at ./Device/Vendor/MSFT/Policy/Config/Defender/AttackSurfaceReductionOnlyExclusions | Overwrites local settings; overwrites Group Policy only when MDMWinsOverGP is 1. |
| Configuration Manager | Exploit Guard policy, attack surface reduction settings | Applied through the Policy CSP; no Warn mode. |
| Group Policy | Computer Configuration, Administrative Templates, Windows Components, Microsoft Defender Antivirus, Microsoft Defender Exploit Guard, Attack Surface Reduction | Beats MDM unless MDMWinsOverGP is set. Per-rule exclusions need the 24H2 or later administrative templates. |
| PowerShell | Set-MpPreference / Add-MpPreference with AttackSurfaceReductionRules_Ids and AttackSurfaceReductionRules_Actions | Lowest precedence: overwritten by any policy source. Useful for labs and unmanaged devices. |
Decision guidance: choose one management plane per device population and stay with it. Intune-managed estates should use the endpoint security policy, because it carries per-rule exclusions and feeds the portal report. Domain-joined estates without Intune can use Group Policy, but keep MDM out of ASR settings on those devices. Configuration Manager suits co-managed servers, accepting that Warn mode is not available there. Small organisations can run a single Intune policy with two or three device groups as rings; large organisations should create one policy per ring and per exception population, so a rollback touches only the devices affected. Note the PowerShell Set-MpPreference form replaces the whole rule list, while Add-MpPreference changes only the rules named.
Audit mode: collecting the evidence
Microsoft's test phase deploys all non-standard rules in Audit together to ring 1, which changes nothing for users and only logs events. The deployment method does not change the reporting, provided devices are onboarded to Defender for Endpoint. Collect from these sources:
| Source | What it shows | Availability |
|---|---|---|
ASR rules report (security.microsoft.com/asr) | Detections tab (audited and blocked, 30 days), Configuration tab (rule state per device), Add exclusions tab (files by detection count and expected impact) | Defender for Endpoint; Go hunt needs Plan 2 |
| Advanced hunting | DeviceEvents where ActionType starts with Asr; AdditionalFields carries IsAudit and RuleId | Plan 2 |
| Windows event log | Microsoft-Windows-Windows Defender/Operational: 1121 rule fired in Block, 1122 rule fired in Audit, 1129 user override in Warn, 5007 settings changed | Any plan; forward with Windows Event Forwarding |
| Champions | Which workflows broke, and when | Feedback channel set up in planning |
A useful hunting pattern is to filter audited events and summarise by rule, initiating process and folder path, for example DeviceEvents | where ActionType startswith "Asr" and ActionType endswith "Audited" followed by a count by ActionType, InitiatingProcessFileName and FolderPath. Microsoft does not set a fixed audit duration; plan for at least one full business cycle that includes month-end processing, patching and any seasonal applications, and longer for wave 4 rules. Microsoft publishes an asr-events.xml custom view for Event Viewer covering events 1121, 1122, 1129 and 5007.
Exclusions without losing the protection
Microsoft's warning is explicit: excluding files or folders can severely reduce ASR protection, excluded files are allowed to run and no reports or events are recorded for them. Microsoft still recommends an exclusion over turning a rule off or returning it to Audit, because the rest of the estate stays protected. Use the narrowest type that fixes the problem:
- Per-rule exclusion: applies to one rule only. Supported through Intune endpoint security policies, the Defender portal and Group Policy (value format
Path1\Proc1>Path2\Proc2against the rule GUID). This is the default choice. - Global ASR exclusion:
AttackSurfaceReductionOnlyExclusionsapplies to every ASR rule. Use only for a process that trips several rules for a known reason. - Indicators: most rules honour file and certificate indicators, which suit signed in-house software better than paths.
- Antivirus exclusions: not honoured by every rule. Microsoft lists seven rules that ignore Defender Antivirus file and folder exclusions, including the LSASS, WMI persistence, Office code injection and PSExec/WMI rules; all rules honour process exclusions.
Path rules: exclude a specific file path in preference to a folder. Wildcards and environment variables are allowed, but do not use user environment variables, wildcards cannot define a drive letter, and nested folders need repeated \*\ segments. Exclusions take effect when the process starts, so a running service keeps triggering until restarted. Exclude only from paths standard users cannot write to; an exclusion for a user-writable folder hands that rule's bypass to anyone who can drop a file there. One more trap: when local admin merge is disabled (Intune Disable Local Admin Merge, the Defender CSP DisableLocalAdminMerge or the matching Group Policy), per-rule and local ASR exclusions do not apply. For exclusion governance across all endpoint controls, use the EDR Tuning and Exclusions Management Guide.
Phased rollout from Audit to Block
- Plan: pick the first business unit by size, champion availability and use of scripts, macros and shared tools; inventory line-of-business apps; agree who gathers reports, who investigates blocks (security operations) and who owns exclusions (endpoint team). Reuse existing Windows update rings if you have them.
- Standard protection everywhere: set the three standard protection rules to Block across the estate, subject to the WMI rule caveat for Configuration Manager.
- Ring 1 audit: all other rules to Audit for the pilot ring. Review the report weekly with champions and draft exclusions.
- Ring 1 enforce: move rules to Block or Warn one or a few at a time, starting with the rule that has the fewest events, as Microsoft advises. Use Warn where supported to surface disruption before full Block.
- Ring n+1: for each further ring, repeat Microsoft's sequence: Audit, review, exclusions, Block, review, refine. Move on only when the current ring is stable.
- Wave 4 last: run the PSExec/WMI, prevalence and ransomware rules in Audit longest, and start them on populations with the least custom software.
- Roll back by rule and ring: if a rule breaks a critical workflow, add a per-rule exclusion if the cause is clear; otherwise return that rule to Audit for that ring's policy only. Never roll back by switching the whole policy off. Record every rollback with an owner and a date to retry.
Organisations moving from a third-party host intrusion prevention product can, per Microsoft's planning guide, run it alongside ASR rules until rules reach Block, then retire it.
Where identity fits
Several rules exist to protect credentials and admin channels. The LSASS rule targets credential dumping, and the PSExec/WMI rule targets the remote execution paths that stolen administrator and service account credentials are used for. Exclusions for management agents and deployment tools often name processes that run as SYSTEM or under service accounts, so treat each one as a privileged change: record which identity runs the excluded process and review it with the account owner. Pair ASR with unique local administrator passwords (see the Local Administrator Password Solution (LAPS) Guide) so a blocked credential theft attempt is not the only barrier.
Detection and measurement
- Coverage: percentage of supported devices with all standard protection rules in Block (the report's Configuration tab shows this directly).
- Enforcement depth: median number of rules in Block per device, per ring.
- Conversion: rules moved from Audit to Block per quarter; any rule in Audit for more than [180 days] needs a named owner and a plan.
- Exclusion hygiene: count of global and per-rule exclusions, share that point to folders rather than files, and share reviewed in the last [12 months].
- Tamper signals: alert on event 5007 changes to ASR settings outside change windows, and on ASR rules in Off where policy says Block.
- Prevention value: Block events (1121) by rule, triaged by security operations, with high-severity rules (LSASS, Office injection) investigated as possible intrusions.
Common failure patterns
- Permanent Audit: rules deployed in Audit with no exit criteria or owner, so the report fills with events nobody acts on.
- Passive mode surprise: devices where another antivirus is primary report an ASR policy but enforce nothing, because the rules need Defender Antivirus in active mode.
- Folder exclusions: a whole application or temp folder excluded to stop a single false positive, removing that rule's protection and its telemetry for everything in the folder.
- Conflicting sources: the same rules set in Group Policy and Intune, giving devices that flip state or ignore the intended mode.
- Exclusions that never apply: per-rule exclusions created while local admin merge is disabled, or antivirus exclusions relied on for rules that do not honour them.
- Servers trusted on paper: server compliance reported without testing that rules actually fire.
Framework mapping
| Framework | Reference | How ASR deployment supports it |
|---|---|---|
| MITRE ATT&CK mitigations | M1040 Behavior Prevention on Endpoint; M1038 Execution Prevention | ASR rules are behaviour-based prevention on the host. |
| MITRE ATT&CK techniques | T1003.001 LSASS Memory; T1546.003 WMI Event Subscription; T1047 Windows Management Instrumentation; T1204.002 Malicious File; T1566.001 Spearphishing Attachment; T1055 Process Injection; T1091 Replication Through Removable Media; T1505.003 Web Shell; T1486 Data Encrypted for Impact | Techniques targeted by individual rules (LSASS, WMI persistence, PSExec/WMI, Office and email rules, USB, web shell, ransomware). |
| NIST SP 800-53 Rev 5 | SI-3 Malicious Code Protection; CM-7 Least Functionality; CM-6 Configuration Settings; SI-4 System Monitoring | Rule configuration, enforcement and event monitoring. |
| NIST CSF 2.0 | PR.PS-05; PR.PS-01; DE.CM-09 | Preventing unauthorised execution, managing configuration, monitoring endpoints. |
For the wider execution-control picture, see the App Control for Business (WDAC) guide, which Microsoft's rule reference names as a complement to the vulnerable driver rule, and the Office Macro Blocking Guide.
Practitioner checklist
- Confirm Defender Antivirus is in active mode with real-time and cloud-delivered protection on every target device.
- Choose one policy source per device population and remove ASR settings from the others.
- Set the three standard protection rules to Block estate-wide.
- Run all other rules in Audit for ring 1 with named champions and a feedback channel.
- Collect events from the ASR report, advanced hunting or forwarded 1121, 1122, 1129 and 5007 events.
- Write per-rule, file-level exclusions only for paths standard users cannot write to.
- Move rules to Block one at a time, fewest events first, using Warn where supported.
- Roll back a single rule in a single ring's policy, never the whole policy.
- Test that rules fire on servers rather than trusting the compliance report.
- Report coverage, Audit-to-Block conversion and exclusion counts monthly.
Standards and references
- Microsoft: Attack surface reduction rules overview
- Microsoft: Attack surface reduction rules reference
- Microsoft: Configure attack surface reduction rules and exclusions
- Microsoft: Plan attack surface reduction rules deployment
- Microsoft: Test attack surface reduction rules
- Microsoft: Enable attack surface reduction rules
- Microsoft: Attack surface reduction rules report
- Microsoft: Attack surface reduction Windows events
Related NHI Mgmt Group resources: Windows Endpoint Hardening Guide · Microsoft Defender for Endpoint Guide · Audit Mode vs Enforcement Mode · EDR Tuning and Exclusions Management Guide