Runbook Lab · Security · Updated October 2026

Defender ASR rules: from Audit to Block without breaking things

Attack surface reduction rules stop Office macros, scripts and credential theft before they run. Turned on in Block mode all at once, they also stop the finance team's macro and the backup agent. Six steps to roll them out in rings, starting with read-only checks.

Get the free M365 Top 10 tracker View on GitHub

Before you start

CheckWhy
Microsoft Defender Antivirus is the active antivirus with real-time protection onASR rules do nothing when another antivirus is primary or Defender runs in passive mode.
Devices are onboarded to Defender for Endpoint or Defender for BusinessWithout onboarding you get no central reporting, so Audit mode tells you nothing.
One policy source per device (Intune, Group Policy or Configuration Manager)Two sources setting the same rule is the most common cause of "the rule is on but nothing happens".

The six steps

1. Read what is set today

Read-only, on a sample device. Actions: 0 off, 1 Block, 2 Audit, 6 Warn.

$p = Get-MpPreference
$i = 0
foreach ($id in $p.AttackSurfaceReductionRules_Ids) {
  [pscustomobject]@{ Rule = $id
    Action = $p.AttackSurfaceReductionRules_Actions[$i] }
  $i++ }

2. Put every rule in Audit

Intune > Endpoint security > Attack surface reduction > create an ASR rules policy, all rules on Audit, assigned to all devices. Leave it for two to four weeks so month-end jobs show up too.

3. Find the noisy rules

Defender portal > Advanced hunting (Plan 2 / E5). On Business Premium use Reports > Attack surface reduction rules instead.

DeviceEvents
| where Timestamp > ago(30d)
| where ActionType startswith "Asr"
| summarize Events = count(), Devices = dcount(DeviceId)
    by ActionType, FileName, InitiatingProcessFileName
| order by Events desc

4. Add narrow exclusions

One exclusion per legitimate tool, as a full file path, per rule where you can. No folder-wide or wildcard exclusions, and never exclude a whole user profile. Give every exclusion an owner and a review date in your tracker.

5. Move to Warn, then Block, in rings

Ring 0: IT devices. Ring 1: a pilot group of 5–10% of users. Ring 2: everyone. Warn lets a user unblock once, so it shows you what still breaks; a few rules don't support Warn, so check Microsoft's rule reference.

6. Keep watching

Re-run the step 3 query weekly. A rule that suddenly fires hundreds of times a day is either a new tool that needs an exclusion or an attack. Both need an owner.

Which rules go first

RuleGUIDSuggested ring to Block
Block credential stealing from LSASS9e6c4e1f-7d60-472f-ba1a-a39ef669e4b2Standard protection
Block abuse of exploited vulnerable signed drivers56a863a9-875e-4185-98a7-b882c64b5ce5Standard protection
Block persistence through WMI event subscriptione6db77e5-3df2-4cf1-b95a-636979351e5bStandard protection
Block executable content from email client and webmailbe9ba2d9-53ea-4cdc-84e5-9b1eeee46550Ring 2
Block all Office applications from creating child processesd4f940ab-401b-4efc-aadc-ad5f3c50688aRing 2 (macro-heavy teams last)
Block Office applications from creating executable content3b576869-a4ec-4529-8536-b80a7769e899Ring 2
Block execution of potentially obfuscated scripts5beb7efe-fd9a-4556-801d-275e5ffc04ccRing 3 (admin scripts)
Block process creations from PSExec and WMI commandsd1e49aac-8f56-4280-b9ba-993a6d77406cRing 3 (breaks some management tools)

The first three are Microsoft's "standard protection" rules, with minimal compatibility impact. Audit them anyway. Full list and the rules that don't support Warn: Microsoft Learn, "Attack surface reduction rules reference".

ASR covers the endpoints. Now the tenant.

ASR rules protect Windows devices. Most Microsoft 365 incidents still start in the tenant: no MFA, legacy authentication left on, external forwarding, a missing break-glass account. The free Microsoft 365 Emergency Top 10 turns those ten controls into a Jira import, a tracker CSV and read-only PowerShell checks.

Download the free Top 10 See all 10 controls

Need the whole tenant? The M365 Hardening Kit: Complete has 58 controls in 5 sprints and 48 read-only checks · €39.

FAQ

Should I turn on attack surface reduction rules in Block mode straight away?

No. Start every rule in Audit mode for two to four weeks, review what would have been blocked, add narrow exclusions for legitimate tools, then move rules to Warn or Block in rings: IT devices first, then a pilot group, then everyone.

How do I see which ASR rules are active on a Windows device?

Run Get-MpPreference in PowerShell and read AttackSurfaceReductionRules_Ids and AttackSurfaceReductionRules_Actions. The action values are 0 = off, 1 = Block, 2 = Audit, 6 = Warn. This only reads settings and changes nothing.

How do I find ASR audit events in Microsoft Defender?

In Advanced hunting, query DeviceEvents where ActionType starts with Asr. Events ending in Audited are what the rule would have blocked; events ending in Blocked were stopped. Group by rule, file and initiating process to find the noisy ones.

Which ASR rules are safest to block first?

Microsoft lists three standard protection rules with minimal compatibility impact: Block credential stealing from the Windows local security authority subsystem (LSASS), Block abuse of exploited vulnerable signed drivers, and Block persistence through WMI event subscription. Still audit them first in your own environment.