← Back to the cybersecurity blog

Deploying all 19 Microsoft Defender ASR rules without breaking line-of-business apps

By Thilina Manana · COO, Director Técnico de Seguridad hard2bit y socio fundador · Published: 03 December 2026 · Updated: 03 December 2026
Deploying all 19 Microsoft Defender ASR rules

Microsoft Defender Antivirus includes 19 attack surface reduction (ASR) rules, and Microsoft's ASR rules reference states that they run on any Windows edition that includes Defender, Windows 11 Home among them. They come at no extra cost, but they stay inert until a policy assigns them a mode, which is why the ASR report in the Microsoft Defender portal counts "exposed devices", those with unconfigured rules, as a separate figure.

This guide is for IT and SOC teams in mid-sized organisations that already run Defender as their primary antivirus, managed through Intune, Group Policy or Configuration Manager, with or without Defender for Endpoint Plan 2. By the end, every rule should have a justified mode, a check carried out on the device itself and an alert that fires if someone weakens it.

Rule names, GUIDs, dependencies and modes were checked against Microsoft Learn on 3 December 2026; the rules reference used is dated 9 September 2026. Microsoft adds and reclassifies rules fairly often, so a table like the one below will date.

What does an ASR rule do, and where does it leave a trace?

An ASR rule watches a behaviour, not a file. One stops Word and Excel from spawning child processes, another stops processes from opening LSASS memory, a third blocks persistence through WMI event subscriptions. Defender evaluates the behaviour as it happens and, depending on the mode, blocks it, logs it or warns the user. Each rule has a GUID, which is what Group Policy, PowerShell and Intune custom profiles ask for.

Microsoft's ASR rules overview sets out the conditions. Defender Antivirus must run in active mode, with real-time protection and cloud-delivered protection switched on. If another antivirus product has pushed Defender into passive mode, EDR in block mode or limited periodic scanning, the rules stop acting whatever the policy says. According to the rules reference, three of them also depend on AMSI, the interface that lets Defender inspect scripts, and Defender's components must not lag more than two versions behind the current release. The rules exist only on Windows; Linux and macOS machines never get them, even when onboarded to Defender for Endpoint.

Five modes and their codes

ASR rule modes
ModeCodeEffectNotes
Off (Disabled)0Explicitly turns the rule offCan conflict with another policy assigning the same rule a different mode
Block1Blocks the behaviour and logs itEnd state for almost every rule
Audit2Logs what would have been blockedThe basis of the testing phase
Not configured5Functionally off, without the conflict riskPreferable to 0 when retiring a rule
Warn6Blocks; an override lasts 24 hoursAdministrator approval required for overrides since platform 4.18.26060

Source: Microsoft Learn, ASR rules overview and configuration article (checked 28 Nov 2026).

Microsoft makes clear that a Warn override is temporary and no substitute for an exclusion. Configuration Manager cannot set Warn mode, and on Windows 10 builds older than 1809 a rule set to Warn behaves as Block.

Where each event lands

On the device, ASR events go to Applications and Services Logs > Microsoft > Windows > Windows Defender > Operational. Microsoft's ASR event reference for Event Viewer lists four IDs: 1121 when a rule blocks, 1122 when a rule in Audit would have blocked, 1129 when a user overrides a Warn prompt, and 5007 when Defender's settings change.

With Defender for Endpoint Plan 2, the same activity reaches the DeviceEvents table in advanced hunting, under ActionType values such as AsrOfficeChildProcessAudited or AsrPsexecWmiChildProcessBlocked. One detail alters how any count should be read: according to Microsoft's monitoring guidance, advanced hunting throttles ASR events to one per unique process per hour, stamped with the first sighting. A row count measures process-hour combinations, not attempts.

The ASR report and the device timeline come with Plan 2 and with Microsoft Defender for Business; advanced hunting needs Plan 2. Without Plan 2 or Defender for Business (on Windows Pro, say, or Microsoft 365 E3, which includes Plan 1), events stay in each machine's Event Viewer, and Microsoft's ASR rules overview suggests collecting them with Windows Event Forwarding. If Defender's Operational channel is not yet reaching the SIEM, our piece on which logs to send to the SIEM covers how to rank it alongside sources such as the built-in Sysmon in Windows 11 and Server 2025.

Which rules can go straight to Block, and which need an audit period first?

Microsoft groups three rules as standard protection and considers them safe to block without lengthy testing, subject to the caveats in the table. CISA's countermeasure CM0004, part of its Eviction Strategies Tool, gives the same advice: start with those three, as they usually have little business impact. For the other sixteen we recommend an Audit phase, which Microsoft's ASR FAQ puts at about 30 days.

All 19 ASR rules: GUID, starting mode and risks
Rule (Intune name)GUIDStart inWatch for
Block abuse of exploited vulnerable signed drivers (Device)56a863a9-875e-4185-98a7-b882c64b5ce5BlockStops vulnerable drivers being written to disk; does not stop drivers already on disk from loading
Block credential stealing from the Windows local security authority subsystem9e6c4e1f-7d60-472f-ba1a-a39ef669e4b2Block, unless LSA protection is onRedundant with LSA protection; noisy; no Warn mode
Block persistence through WMI event subscriptione6db77e5-3df2-4cf1-b95a-636979351e5bBlock; Audit where Configuration Manager is usedThe Configuration Manager client depends on WMI; on servers, the support table lists only Windows Server 1903 (SAC) or later, not 2016 or 2012 R2
Block Adobe Reader from creating child processes7674ba52-37eb-4a4f-a9a1-f0f9a1619a2cAuditEDR alerts only at cloud level High+ or Zero tolerance
Block all Office applications from creating child processesd4f940ab-401b-4efc-aadc-ad5f3c50688aAuditBusiness macros and add-ins that launch cmd or PowerShell
Block executable content from email client and webmailbe9ba2d9-53ea-4cdc-84e5-9b1eeee46550Short AuditCovers .zip archives; EDR alerts only at cloud level High+ or Zero tolerance
Block executable files from running unless they meet a prevalence, age, or trusted list criterion01443614-cd74-433a-b99e-2ecdc07bfc25Long AuditNeeds cloud protection; harsh on developer machines and in-house software
Block execution of potentially obfuscated scripts5beb7efe-fd9a-4556-801d-275e5ffc04ccAuditNeeds cloud protection and AMSI; legitimate packed scripts exist
Block JavaScript or VBScript from launching downloaded executable contentd3e037e1-3eb8-44c8-a917-57927947596dAuditUnsupported on Windows Server 2016 and 2012 R2; EDR alerts only at High+ or Zero tolerance
Block Office applications from creating executable content3b576869-a4ec-4529-8536-b80a7769e899AuditApplies regardless of where Office is installed
Block Office applications from injecting code into other processes75668c1f-73b5-4cf0-bb93-3ecf5cb7cc84AuditNo Warn mode; incompatible with BeyondTrust Privilege Guard and Heimdal
Block Office communication application from creating child processes26190899-1602-49e8-8b27-eb1d0a1ce869AuditOutlook add-ins that open external programs
Block process creations originating from PSExec and WMI commandsd1e49aac-8f56-4280-b9ba-993a6d77406cLong Audit; Not configured under Configuration ManagerIn our experience, breaks more admin tooling than any other rule
Block rebooting machine in Safe Mode33ddedf1-c6e0-47cb-833e-de6133960387AuditSafe Mode stays reachable from the Windows Recovery Environment
Block untrusted and unsigned processes that run from USBb2b3f03d-6a65-4f7b-a9c7-1c7ef74a9ba4AuditDoes not stop the file being copied to disk
Block use of copied or impersonated system toolsc0033c00-d16d-4114-a5a0-dc9b3a7d2cebAuditHeuristic: may block legitimate software in non-default paths
Block Webshell creation for Serversa8f5898e-1dc8-49a9-9878-85004b8a61e6Audit, Exchange onlyExchange servers only; if managed from Defender for Endpoint, leave it Not configured in Group Policy; unsupported via Intune on 2016 and 2012 R2 with the unified solution
Block Win32 API calls from Office macros92e97fa1-2edf-4476-bdd6-9dd0b4dddc7bAuditNot applicable to Windows Server
Use advanced protection against ransomwarec1db55ab-c21a-4637-bb3f-a12568109d35AuditNeeds cloud protection; blocks files without a positive reputation yet; unsupported via Intune on 2016 and 2012 R2 with the unified solution

Names, GUIDs, dependencies and limitations: Microsoft Learn ASR rules reference (updated 9 Sep 2026). The "Start in" column is Hard2bit's judgement built on Microsoft's notes: "Short Audit" means about 30 days or less; "Long Audit", several month-end cycles.

To order the other sixteen, Microsoft's implementation guidance suggests starting with whichever rule fired least during Audit and widening the rollout ring by ring. That is a sound noise criterion, but it says little about risk, so we add a second test: which stage of an intrusion does the rule close?

The Office, email and script rules cut off entry through attachments; the PsExec and WMI rule hampers lateral movement and the WMI persistence rule hampers footholds; the ransomware and Safe Mode rules guard the end of the chain. Between two rules with similar noise, the one covering the stage where the organisation detects least goes first.

According to the rules reference, three rules raise EDR alerts only when the cloud protection level is High+ or Zero tolerance. The cloud protection level documentation explains what each level involves. Raising the level to get those alerts has a price: Zero tolerance blocks every unknown executable and can stop unsigned in-house software. It is a separate change, piloted like the rest of the rules.

The LSASS rule and LSA protection

The current reference narrows this rule's role. With LSA protection enabled it adds no protection, and the Defender portal labels it not applicable. It remains useful where LSA protection or Credential Guard cannot be switched on, for instance because of smart card drivers that load into LSA. Microsoft also advises starting with a small set of devices, since the rule produces a large volume of audit events, almost all safe to ignore. Our guide to protecting LSASS from credential dumping explains how to choose between the three layers.

PsExec and WMI: the rule most likely to break something

Rule d1e49aac blocks processes created through PsExec and WMI, two remote execution routes that MITRE ATT&CK tracks as T1569.002 and T1047. Many administration tools rely on the same routes: software deployment, inventory agents, support scripts.

Configuration Manager is a special case. Microsoft asks organisations using it not to enable the rule by any other method, because the client depends on WMI, and Configuration Manager itself is not listed among the methods that can deploy it. On those machines, the course consistent with the documentation is to leave it Not configured. Elsewhere, it is the rule that spends longest in Audit, and every event deserves a look at which process and which account started the execution.

Implementation: where each value goes and how to confirm it applied

Intune and the Defender portal

Microsoft's preferred route in Intune is an endpoint security policy: Endpoint security > Attack surface reduction > Create policy, platform Windows, profile Attack Surface Reduction Rules. The Defender portal uses the same policies. Once a rule has a mode, its own exclusions section appears. Assign the policy to Entra ID device groups, as Defender for Endpoint management does not support user groups.

Group Policy

The path is Computer configuration > Administrative templates > Windows components > Microsoft Defender Antivirus > Microsoft Defender Exploit Guard > Attack Surface Reduction (builds before Windows 10 2004 may show Windows Defender Antivirus). In "Configure Attack Surface Reduction rules", each row takes the GUID as the value name and the mode code as the value. Microsoft's configuration article stresses that Group Policy ASR values do not accept quotation marks, leading or trailing spaces or stray characters.

Per-rule exclusions need the 24H2 or later Administrative Templates in the Central Store, with the path1>path2 syntax as the value against each GUID.

PowerShell for single machines and the lab

Set-MpPreference replaces the device's whole rule list, whereas Add-MpPreference appends to it. Mixing them up is a common way of losing rules that were already in Block. Both need an elevated session, and any policy overwrites the values at the next start-up or policy refresh. The example below sets three rules to Audit; if one of them was already in Block on that machine it would be downgraded, so run it in the lab or after reviewing the current state:

# Sets the Office child process, Office executable content and PsExec/WMI rules to Audit.
# Add-MpPreference keeps other rules, but changes the mode of these three if they already exist.
Add-MpPreference -AttackSurfaceReductionRules_Ids d4f940ab-401b-4efc-aadc-ad5f3c50688a,3b576869-a4ec-4529-8536-b80a7769e899,d1e49aac-8f56-4280-b9ba-993a6d77406c -AttackSurfaceReductionRules_Actions AuditMode,AuditMode,AuditMode

Which policy wins in a conflict

Microsoft documents the order of precedence. Local PowerShell settings lose to any policy, and between MDM and Group Policy, Group Policy wins by default. Configuration Manager applies rules through the Policy CSP and follows the same precedence as MDM.

Reversing the default means setting ./Device/Vendor/MSFT/Policy/Config/ControlPolicyConflict/MDMWinsOverGP to 1 through an OMA-URI profile, since no Group Policy template or cmdlet exists for it. The controlled configuration feature of Intune or Defender for Endpoint security settings management goes further and ignores Group Policy, Configuration Manager and local settings altogether. Even so, the tidiest option is never to configure one rule through two channels.

A second interaction explains many exclusions that appear not to work. When "Disable admin merge" is set to true (through Intune, the Defender portal, the Defender CSP or the Group Policy setting "Configure local administrator merge behavior for lists"), local exclusions and per-rule exclusions are ignored.

Checking on the device itself

A management console does not always reflect what the device enforces. Microsoft documents a known issue in Configuration Manager whereby ASR on server operating systems can show as compliant without being enforced, with no fix date. Verification therefore happens on the endpoint, in an elevated PowerShell session. The script below checks the prerequisites and validates every configured GUID against the 19 documented rules:

# Prerequisites: Defender active (AMRunningMode = Normal), tamper protection and engine versions.
Get-MpComputerStatus | Select-Object AMRunningMode, AntivirusEnabled, RealTimeProtectionEnabled, IsTamperProtected, AMProductVersion, AMEngineVersion
# Cloud: MAPSReporting 0 means off and 2 is Advanced; CloudBlockLevel shows the protection level.
Get-MpPreference | Select-Object MAPSReporting, CloudBlockLevel

# The 19 rules documented as of 9 Sep 2026.
$known = '56a863a9-875e-4185-98a7-b882c64b5ce5','9e6c4e1f-7d60-472f-ba1a-a39ef669e4b2','e6db77e5-3df2-4cf1-b95a-636979351e5b','7674ba52-37eb-4a4f-a9a1-f0f9a1619a2c','d4f940ab-401b-4efc-aadc-ad5f3c50688a','be9ba2d9-53ea-4cdc-84e5-9b1eeee46550','01443614-cd74-433a-b99e-2ecdc07bfc25'
$known += '5beb7efe-fd9a-4556-801d-275e5ffc04cc','d3e037e1-3eb8-44c8-a917-57927947596d','3b576869-a4ec-4529-8536-b80a7769e899','75668c1f-73b5-4cf0-bb93-3ecf5cb7cc84','26190899-1602-49e8-8b27-eb1d0a1ce869','d1e49aac-8f56-4280-b9ba-993a6d77406c'
$known += '33ddedf1-c6e0-47cb-833e-de6133960387','b2b3f03d-6a65-4f7b-a9c7-1c7ef74a9ba4','c0033c00-d16d-4114-a5a0-dc9b3a7d2ceb','a8f5898e-1dc8-49a9-9878-85004b8a61e6','92e97fa1-2edf-4476-bdd6-9dd0b4dddc7b','c1db55ab-c21a-4637-bb3f-a12568109d35'
# Lists configured rules with their mode and flags any GUID that matches no documented rule.
$p = Get-MpPreference
$ids = @()
if ($p.AttackSurfaceReductionRules_Ids) { $ids = @($p.AttackSurfaceReductionRules_Ids | ForEach-Object { $_.ToLower() }) }
for ($i = 0; $i -lt $ids.Count; $i++) { [pscustomobject]@{ Id = $ids[$i]; Mode = $p.AttackSurfaceReductionRules_Actions[$i]; Valid = ($known -contains $ids[$i]) } }
# Documented rules that are not configured on this device.
$known | Where-Object { $ids -notcontains $_ }

Reading configuration does not prove a rule acts. The step that completes verification is a functional test on a pilot machine, described further down, which should produce a 1122 while the rule is in Audit and a 1121 once it moves to Block. Tamper protection (IsTamperProtected) matters too, because it stops a privileged process from switching off protections such as real-time or cloud protection, which the rules depend on; on our reading of the documentation, it does not stop the rules themselves being changed through policy, which is why event 5007 deserves monitoring.

There is a concrete reason for validating GUIDs. While preparing this guide we found that the PowerShell example on Microsoft's own configuration page gives the WMI rule's GUID one character short in its final block (636979351e5 instead of 636979351e5b). In that example the rule is set to Disabled, so the typo does not itself switch the WMI rule off; pasting the command verbatim does, however, leave an entry that matches no rule, and because it uses Set-MpPreference it wipes any rules already on the device. Anyone adapting it to enable the WMI rule would leave that rule unconfigured. The script above would flag it in the Valid column.

How are blocks, overridden warnings and configuration changes detected?

With Defender for Endpoint Plan 2: ranking Audit noise

This query supplies the evidence for deciding which rule moves to Block and which exclusions are needed. It groups Audit events by rule and by detected file, keeping the source application only as context:

// ASR rules in Audit over the last 30 days, by rule and by detected file.
DeviceEvents
| where Timestamp > ago(30d)
| where ActionType startswith "Asr" and ActionType endswith "Audited"
// Microsoft samples use Ruleid and other queries use RuleId; KQL property names are case-sensitive.
| extend AF = parse_json(AdditionalFields)
| extend RuleId = tostring(coalesce(AF.RuleId, AF.Ruleid))
// FolderPath and FileName are the detected file; the initiating process is the source application.
| summarize Rows = count(), Devices = dcount(DeviceId), Source = make_set(InitiatingProcessFileName, 5) by ActionType, RuleId, FolderPath, FileName
| order by Devices desc

Keeping the detected file apart from the source application prevents the costliest mistake. For the Office, Adobe and Outlook rules, the source is WINWORD.EXE, EXCEL.EXE, OUTLOOK.EXE or the PDF reader; excluding those would switch the whole rule off without trace, since excluded files generate no events. Exclusions target the detected file, by full path and not by folder, and should be cross-checked against the "Add exclusions" action in the ASR report, which exports those paths.

A signed file present on hundreds of devices is a candidate; one sitting in a user profile on a single machine gets investigated before anything is excluded.

Remote execution and persistence through WMI

// PsExec/WMI and WMI persistence events, in Audit or Block, grouped by hour.
DeviceEvents
| where Timestamp > ago(7d)
| where ActionType in ("AsrPsexecWmiChildProcessBlocked", "AsrPersistenceThroughWmiBlocked", "AsrPsexecWmiChildProcessAudited", "AsrPersistenceThroughWmiAudited")
| summarize Devices = dcount(DeviceId), Names = make_set(DeviceName, 20), Processes = make_set(FileName, 20), Accounts = make_set(InitiatingProcessAccountName, 20) by ActionType, bin(Timestamp, 1h)
// Several devices in one hour raise the priority, but a single block already warrants review.
| extend Priority = iff(Devices >= 3, "High", "Normal")

Audit events are included because the PsExec and WMI rule sits in that phase for months (as does the WMI persistence rule wherever Configuration Manager is used), and a block-only filter would stay silent throughout that time. Nor does the query drop rows below a device threshold: targeted lateral movement may touch one or two machines an hour, and the PsExec and WMI rule raises no EDR alert, so the threshold only sets priority.

The LSASS rule is left out on purpose because, according to Microsoft's reference, it produces a large volume of events, almost all safe to ignore. Expected false positives are software deployments over WMI and inventory agents, recognisable by their service accounts.

Overridden Warn prompts

// Users who clicked Unblock on an ASR warning.
DeviceEvents
| where Timestamp > ago(30d)
| where ActionType startswith "Asr" and ActionType endswith "WarnBypassed"
| project Timestamp, DeviceName, ActionType, FileName, FolderPath, InitiatingProcessAccountName

The reference documents WarnBypassed action types for two rules only, Safe Mode and impersonated system tools. On the device, event 1129 records an override of any rule in Warn, which makes the Operational log the more complete source here.

Configuration changes made with PowerShell

// ASR rule or exclusion changes visible on the command line.
DeviceProcessEvents
| where Timestamp > ago(30d)
| where ProcessCommandLine has_any ("Set-MpPreference", "Add-MpPreference", "Remove-MpPreference")
| where ProcessCommandLine has_any ("AttackSurfaceReductionRules_Ids", "AttackSurfaceReductionRules_Actions", "AttackSurfaceReductionOnlyExclusions")
| project Timestamp, DeviceName, AccountName, InitiatingProcessFileName, ProcessCommandLine

The query only sees a cmdlet when it appears on a process command line. Interactive sessions, scripts run with -File, abbreviated parameters and changes made through the registry or Defender's WMI class all escape it. Event 5007 and PowerShell script block logging cover those cases. False positives come from in-house provisioning scripts, which should run from known accounts and hosts.

Without Plan 2: Sigma over Defender's Operational log

On Windows Pro or Microsoft 365 E3, the telemetry sits in each device's Event Viewer. Once that channel reaches the SIEM, the two Sigma rules below cover remote execution and persistence through WMI, and the weakening of rules. The ID field in events 1121 and 1122 should hold the rule GUID; Microsoft does not document the fields of these events, so this needs confirming in a lab before the rule is relied on. SigmaHQ publishes an equivalent rule for PsExec and WMI that filters on process name instead of GUID, and the two approaches complement each other.

# Rule 1: ASR records remote execution or persistence through WMI (block 1121 or audit 1122).
title: ASR detects remote execution or persistence through WMI
id: 7fade6b5-2732-4872-99ed-ac89cfd23eea
status: experimental
logsource: {product: windows, service: windefend}
detection: {selection: {EventID: [1121, 1122], 'ID|contains': ['d1e49aac-8f56-4280-b9ba-993a6d77406c', 'e6db77e5-3df2-4cf1-b95a-636979351e5b']}, condition: selection}
# False positives: software deployment and inventory agents that use WMI.
falsepositives: ['Legitimate administration tools']
level: high

# Rule 2: an ASR rule set to disabled (0), audit (2) or not configured (5) according to event 5007.
title: ASR rule weakened in Defender configuration
id: 171a1ac5-9c93-4bac-b87e-1d0570706278
status: experimental
logsource: {product: windows, service: windefend}
detection: {selection: {EventID: 5007, 'NewValue|contains': '\ASR\Rules', 'NewValue|endswith': ['= 0x0', '= 0x2', '= 0x5']}, condition: selection}
# False positives: a planned retirement or test phase, which should match an approved change.
falsepositives: ['Authorised policy changes']
level: medium

The second rule follows the logic of the Windows Defender ASR Rule Disabled detection from the Splunk Threat Research Team, which reads the final value of the change recorded in event 5007.

Its limits should be understood: it misses a rule being deleted, and rules applied by MDM or Group Policy may be recorded in a different format. Before it goes into production, the exact format of the NewValue field should be confirmed on a lab machine with the Windows build and event collector in use. For event 1129, a rule mirroring the first one with EventID: 1129 and no GUID filter is enough; rule 1 can drop to medium severity for 1122 if it proves noisy during the Audit phase.

Validating the whole chain without offensive tooling

On a lab machine with the Office child process rule in Audit, a test document whose macro opens Calculator produces event 1122; in a Plan 2 tenant, the same activity appears in DeviceEvents as AsrOfficeChildProcessAudited. For the PsExec and WMI rule, starting Notepad locally through WMI with the rule in Block produces a 1121 that should trigger Sigma rule 1. Changing a rule's mode on that machine produces a 5007.

What is being tested is the chain: local event, arrival in the SIEM or advanced hunting, and the detection firing. If the event appears on the device but never reaches the SIEM or fails to trigger the detection, the rule protects and the SOC stays unaware; if not even the local event appears, the next step is to check whether the rule acts at all.

Common mistakes and the limits of the control

  • Over-broad exclusions. Microsoft warns that an excluded file runs without reports or events. Excluding a whole folder leaves a permanent gap; excluding a specific path and file limits the damage.
  • Exclusions that seem to fail. They apply only when a process starts, so a service that was already running keeps triggering the rule until it restarts.
  • Office outside Program Files. The Office child process, Outlook and code injection rules are enforced only when Office lives under %ProgramFiles% or %ProgramFiles(x86)%.
  • Older servers. The WMI persistence and JavaScript or VBScript rules are not listed as supported on Windows Server 2016 or 2012 R2, and the webshell and ransomware rules are unsupported when deployed through Intune to those versions using the modern unified solution.

Some attacks sit outside every Office rule. When a user pastes a command into the Run dialog, as in ClickFix-style fake CAPTCHA campaigns, the parent process is Windows Explorer, not an Office application. There, the obfuscated script rule, PowerShell logging and detection of trusted binary abuse are the relevant controls. And Defender's configuration can be changed through policy or from a privileged account: ASR shrinks the surface, but it does not replace an EDR or a managed SOC reviewing event 5007.

What evidence counts in an ENS, ISO 27001 or NIS2 audit

For organisations operating in Spain, the National Security Framework (Esquema Nacional de Seguridad, ENS) sits alongside ISO 27001 and NIS2. The table maps ASR to all three.

Mapping ASR rules to compliance controls
FrameworkControlEvidence ASR provides
ENS (Royal Decree 311/2022)op.exp.6 Protection against malicious codeExported ASR policy and Get-MpPreference output from a sample of devices
ENS (Royal Decree 311/2022)op.exp.2 and op.exp.3 Security configuration and its managementConfiguration tab of the ASR report, or an in-house inventory of modes per device
ENS (Royal Decree 311/2022)op.exp.8 Activity loggingEvents 1121, 1122 and 5007 centralised and retained
ISO/IEC 27001:2022A.8.7 Protection against malware and A.8.15 LoggingRules in Block mode and the log of event 1121 blocks
ISO/IEC 27001:2022A.8.9 Configuration management and A.8.16 Monitoring activitiesExclusions register with justification, and alerts on event 5007
NIS2 DirectiveArt. 21(2)(g) basic cyber hygiene and 21(2)(f) assessing the effectiveness of measuresResults of the event chain validation and its periodic repetition

The mapping is indicative and does not replace each organisation's risk assessment. Texts: Royal Decree 311/2022 (BOE), Directive (EU) 2022/2555.

The exclusions register carries the most weight with an auditor: what was excluded, from which rule, why, who approved it and when it is reviewed. A rule in Block with twenty unexplained folder exclusions is weaker evidence for an auditor than a well-monitored rule in Audit. Neither Royal Decree 311/2022 nor the NIS2 Directive names ASR, but both expect evidence that defences against malicious code exist and work. Hard2bit covers that ground in its ENS compliance and systems hardening work.

Where to start this week

The first step, before any change, is to take stock of the current state, either from the configuration tab of the ASR report or with the verification script, so that no rule already in Block gets downgraded. Then, in a pilot ring, the three standard protection rules go into Block, honouring their caveats, and the rest into Audit with two exceptions: the webshell rule, which goes only to Exchange servers through a single channel, and the PsExec and WMI rule, which stays Not configured wherever Configuration Manager is used.

Audit mode never blocks, so users will not notice it. After about 30 days the noise query will show which rules can move to Block and which exclusions are needed, and the rollout moves out ring by ring. What keeps the protection working after that is unglamorous: an up-to-date exclusions register, on-device checks and an alert whenever a rule is set to 0, 2 or 5.

Sources and methodology: ASR rules reference (updated 9 September 2026) and the Microsoft Learn pages on the ASR overview, configuration, events, report, monitoring, FAQ and implementation; Defender Antivirus cloud protection levels; CISA countermeasure CM0004; MITRE ATT&CK techniques T1569.002 and T1047; SigmaHQ and Splunk Threat Research detections; Royal Decree 311/2022 (BOE), Directive (EU) 2022/2555 and ISO/IEC 27001:2022, Annex A. Information checked on 3 December 2026.
Disclaimer: the configurations, queries and detection rules in this article are indicative and based on the documentation available on 3 December 2026. Products change, and behaviour can vary with the Windows build, the Defender platform version, the event collector and the SIEM. Every change should be tested in a lab and rolled out in phases before it reaches production, and testing on third-party systems requires written authorisation.

Frequently asked questions

Is Microsoft 365 E5 needed to use ASR rules? ▾

No. The rules run with Defender Antivirus on any Windows edition that includes it. What licensing changes is visibility: Defender for Endpoint Plan 2 and Defender for Business provide the ASR report, and only Plan 2 offers advanced hunting. Without them, events have to be collected from each device's Operational log.

Which ASR rules can go to Block without an Audit phase? ▾

The three standard protection rules: vulnerable signed drivers, LSASS credential theft and WMI event subscription persistence. The WMI rule should go through Audit where Configuration Manager is in use, and the LSASS rule adds no protection once LSA protection is on. Even these three are best rolled out to a pilot group first.

How long should rules stay in Audit? ▾

Microsoft's FAQ treats about 30 days as a reasonable baseline. We add that the period should include at least one month-end close, so that macros, add-ins and jobs running once a month surface during Audit and not after the rule starts blocking.

Why does a rule the console shows as applied fail to block? ▾

Typical causes are Defender in passive mode because of another antivirus, cloud protection switched off for rules that need it, Office installed outside Program Files, a mistyped GUID, or a clash between Group Policy and MDM. Servers managed by Configuration Manager also face a known issue that reports ASR as compliant without enforcing it.

Is Warn mode better than Block? ▾

Warn eases the transition, but every override now needs an administrator's sign-off and expires after a day, so it works as a stepping stone. For permanent use, Block with justified exclusions is the right setting. Nor is Warn available for every rule or from every management tool.

How can a weakened ASR rule be detected? ▾

Event 5007 in Defender's Operational log records every configuration change; the Sigma rule in this guide looks for rules moved to 0, 2 or 5. With Plan 2, monitoring of Defender cmdlets carrying ASR parameters in DeviceProcessEvents can be added, bearing in mind that it misses registry, WMI and interactive-session changes.

Do ASR rules protect Linux servers or Macs? ▾

No. They are a Defender Antivirus feature for Windows; a Linux server or Mac onboarded to Defender for Endpoint does not receive them. Those platforms rely on Defender's own per-platform preferences and on the EDR's behavioural detection.

Share this article

Cite this article

If you write about this topic, you can cite it like this:

Thilina Manana (3 December 2026). Deploying all 19 Microsoft Defender ASR rules without breaking line-of-business apps. Hard2bit. https://hard2bit.com/en/blog/microsoft-defender-asr-rules-deployment-audit-exclusions-detection/

<a href="https://hard2bit.com/en/blog/microsoft-defender-asr-rules-deployment-audit-exclusions-detection/">Deploying all 19 Microsoft Defender ASR rules without breaking line-of-business apps</a> (Hard2bit)

Want a straight answer on scope, priorities and price?

Most organizations reach us mid-question: something needs fixing, nobody has scoped it, and finance wants a number. Thirty minutes with a technical consultant — not a salesperson — gets you a defined scope, priorities ranked by risk and a price range. With what comes out of that call, we turn it into a fixed proposal. We work with organizations in Spain, across the EU and in LATAM.

If your situation is different, tell us anyway — we also take one-off questions on cybersecurity and regulatory compliance.

Based in Spain · Working across the EU and LATAM · ENS High · ISO 27001 · We usually reply in under 24 business hours