About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.
A program that worked yesterday will not start, or an Office document cannot do something it used to do, and the Windows Defender Operational log holds event 1121. That event is the signature of an attack surface reduction (ASR) rule firing in block mode. Its audit-mode twin is event 1122. Microsoft's own troubleshooting page frames the two outcomes an administrator meets: an ASR rule "blocks a file or process, or does some other action that it shouldn't (false positive)", or it "doesn't work as described, or doesn't block a file or process that it should (false negative)".
What follows explains what the events mean, how to prove which rule and which mode are involved, and the two changes Microsoft documents: changing a rule's mode and adding an exclusion. Nothing before the Fix section changes anything. Controlled folder access, which has its own events from 1123, is a different feature and has its own article.
What the error means
Microsoft's events page says all attack surface reduction events sit in Applications and Services Logs, and that the ASR rule events are in the Windows Defender > Operational log. It lists four of them:
| Event ID | Description on Microsoft's page |
|---|---|
| 1121 | Event when rule fires in block mode |
| 1122 | Event when rule fires in audit mode |
| 1129 | Event when user overrides block in warn mode |
| 5007 | Event when settings are changed |
In Event Viewer the path is Applications and Services Logs > Microsoft > Windows > Windows Defender > Operational.
Two limits of Microsoft's pages are worth stating. First, they do not print the message text of event 1121, only the one-line descriptions above, so an event's wording is not quoted here. Second, the audit events are listed differently on two pages. The events page gives 1122 for ASR rule audit events and 1125 for network protection audit events. The overview page's audit-mode row says detections "are available in the following locations: Event IDs 1122, 1125, 1132, and 1134 in Windows Event Viewer", without saying which ID belongs to which feature. Filter on 1121, 1122, 1129 and 5007 for ASR rules, as the events page's own query does.
Likely causes
Microsoft's troubleshooting page works from three starting points:
| Cause | How it shows |
|---|---|
| A false positive: a legitimate file or process matches a rule | Event 1121 for something you expect to run |
| The rule is in Audit mode, so it is not blocking what you expected | Event 1122 instead of 1121, and no block |
| The configuration has an error | A rule not listed, or a GUID with stray characters |
On the second: "If the ASR rule was already in Audit mode, that explains why it wasn't blocking the files or processes you expected it to block (false negative)." The page names two ways a rule slips into Audit mode: "You were testing another feature and forgot to set the ASR rule back into Block or Warn mode" and "An automated PowerShell script changed the rule mode."
On the third, the page says that if you used Group Policy, "verify there are no extra characters like quotation marks or spaces in the ASR rule GUID value". The configuration page repeats it for the policy values: "Quotation marks, leading spaces, trailing spaces, and extra characters aren't supported in any of the ASR rule-related values in Group Policy."
The overview page lists requirements a rule depends on: Microsoft Defender Antivirus enabled and in Active mode, not Passive, not limited periodic scanning and not Off; real-time protection on; cloud-delivered protection, which it calls critical to ASR rule functionality; and component versions no more than two versions older than the current ones. A rule on a device that fails these may not behave as described.
Prove the cause before changing anything
All of these only read.
Step one: find the events. In Event Viewer, open the Windows Defender > Operational log and filter on 1121 and 1122. Microsoft's events page offers a custom view as XML you paste into Event Viewer under Create Custom View, on the XML tab, using Edit query manually. The query it gives for ASR rule events is this, laid out on separate lines:
<QueryList>
<Query Id="0" Path="Microsoft-Windows-Windows Defender/Operational">
<Select Path="Microsoft-Windows-Windows Defender/Operational">*[System[(EventID=1121 or EventID=1122 or EventID=1129 or EventID=5007)]]</Select>
<Select Path="Microsoft-Windows-Windows Defender/WHC">*[System[(EventID=1121 or EventID=1122 or EventID=1129 or EventID=5007)]]</Select>
</Query>
</QueryList>
Read the time of the event against the time the user tried the action. As general advice, not a statement on Microsoft's pages: the Details tab of the event holds the fields, and the ones that name the file and the rule are what you need. Microsoft's pages do not describe those fields.
Step two: list the rules configured on the device and their modes. This is the command from Microsoft's troubleshooting page, run in PowerShell on the device:
$p = Get-MpPreference;0..([math]::Min($p.AttackSurfaceReductionRules_Ids.Count,$p.AttackSurfaceReductionRules_Actions.Count)-1) | % {[pscustomobject]@{Id=$p.AttackSurfaceReductionRules_Ids[$_];Action=$p.AttackSurfaceReductionRules_Actions[$_]}} | Format-Table -AutoSize
The output has an Id column with each rule's GUID and an Action column. Microsoft's reading of the sample is "2 = Audit mode, 1 = Block mode". The overview's mode table gives the full set: 0 Off or Disabled, 1 Block, 2 Audit, 5 Not configured, 6 Warn. Keep this output, because it is the record the Fix steps depend on. The troubleshooting page's tip adds that the Effective settings tab on the device page in the portal shows the value of each ASR rule setting and the source that configured it.
Step three: decide which case you have.
- Event 1121 for a file you expect to run: a possible false positive. Note the rule from the event before doing anything.
- Event 1122 where you expected a block: the rule is in Audit mode, which the page says explains a false negative.
- No event at all: check the requirements list above and the configuration for stray characters.
Example (illustrative, not a recorded case): at a small practice a line-of-business program stops launching a helper script on one workstation. The Operational log has event 1121 at the moment of the failure, and the listing from step two shows the rule that fired set to 1 (Block). That is a block, not an audit, so the program's behaviour matches the rule, and the question becomes whether the program is legitimate.
Fix
Two changes are documented. Neither is a first move: confirm from the proof that the rule really fired and that the file really is legitimate.
Change one rule's mode
The troubleshooting page says to put a misbehaving rule into Audit mode for testing, and, for the false negative, to set a rule that was left in Audit mode back to Block or Warn. In its words: "Use the same method you originally used to distribute ASR rules to devices (for example, Group Policy, Intune, or PowerShell) to set the problematic rules to Audit mode." Of Audit mode the page says: "ASR rules in Audit mode don't block files or processes, but the actions that the rule would have taken in Block or Warn mode are recorded."
Save first: keep the listing from step two of the proof section, in its read-only form, and for Group Policy or Intune also note the policy setting you will change.
Risk: the next step changes the mode of one ASR rule. Setting a rule to Audit stops it blocking, so the behaviour that rule exists to stop is allowed to run until you set it back. Choose one rule only. If you use PowerShell, the configuration page warns that "Set-MpPreference overwrites any existing rules and their corresponding modes with the values you specify", and that on a device managed by Intune, Configuration Manager or another management platform, "the management software overwrites any conflicting PowerShell settings on startup". Use the method that actually owns the setting.
Use the same method you used to deploy the rule. If that was PowerShell, the page's syntax, in an elevated session, is the cmdlet name followed by the rule GUID and the action, where the cmdlet is one of Add-MpPreference, Set-MpPreference or Remove-MpPreference; the page says valid action values include AuditMode and Enabled. The page does not say what Add-MpPreference does when the rule already has a mode, so confirm the result with the listing afterwards.
Add-MpPreference -AttackSurfaceReductionRules_Ids <RuleGuid> -AttackSurfaceReductionRules_Actions AuditMode
To undo it, only if you need to reverse this change: this changes the same rule's mode again. Use the same method to set that one rule back to the value in your saved listing (1 for Block, 2 for Audit, 6 for Warn, 0 for Disabled, 5 for Not configured, as the overview's mode table gives them), then run the listing again and compare it with what you saved. The page does not state what Add-MpPreference does to a rule that already has a mode. If the listing afterwards still shows the Audit value, the page's only documented overwrite is Set-MpPreference, which replaces every rule, so restore the rules from the saved listing by the method that owns them. If the rule was not in your saved listing at all, the page says the Remove-MpPreference cmdlet removes the specified rules and their modes without affecting other values, and its syntax is identical, so give it the same two parameters.
Add an exclusion for a confirmed false positive
The page's instruction is: "For false positives, add the file or path as an exclusion to the ASR rule." Microsoft's overview warns about the cost: "Excluding files or folders can severely reduce ASR rule protection." It continues: "Excluded files are allowed to run, and no reports or events about the file are recorded."
Save first: record the exclusions already in place. For global ASR rule exclusions on a device, the configuration page gives the read-only command (Get-MpPreference).AttackSurfaceReductionOnlyExclusions; per-rule exclusions are held in the Group Policy, Intune or Defender portal policy, so note them there.
Risk: the next step exempts a path from ASR rule checks, and Microsoft says no events are recorded for the excluded file, so you lose the trail as well as the protection. The PowerShell form below is a global exclusion, which the configuration page says applies to all ASR rules. Per-rule exclusions are narrower, and the overview says they are supported only through Group Policy (and its registry settings), Intune endpoint security policies and endpoint security policies in the Microsoft Defender portal. Choose a specific executable and not a folder where you can; for Group Policy the page recommends the form that names "a specific file in a specific folder".
Add-MpPreference -AttackSurfaceReductionOnlyExclusions "<PathOrPathAndFilename1>"
To undo it, only if you need to reverse this change: this removes the exclusion, so the path is checked by the ASR rules again and may be blocked again. The configuration page says the syntax is identical for the three cmdlets, so remove the same path with the Remove cmdlet, unless the same path was already in the exclusions you saved, in which case leave it.
Remove-MpPreference -AttackSurfaceReductionOnlyExclusions "<PathOrPathAndFilename1>"
If the rule still misbehaves
The page lists next steps that are not walked through here: use the Microsoft Security Intelligence web-based submission form to report a false negative or false positive, and collect diagnostic data with the MDE Client Analyzer in verbose mode or with MpCmdRun.exe -GetFiles, which writes MpSupportFiles.cab. In that cab file the page names MPOperationalEvents.txt, MPRegistry.txt and MPLog.txt as the most relevant.
Confirm the fix
- The device's listing shows the expected action value for that rule, matching what you saved or intended.
- Repeat the action on the device. A rule in Block mode fires event 1121 and blocks, and a rule in Audit mode fires 1122 without blocking.
- Event 5007, "Event when settings are changed", shows in the Operational log that a setting changed, which helps you place a change in time.
- For an exclusion, remember Microsoft's warning that no events are recorded for the excluded file, so absence of an event is expected there.
What to watch afterwards
- Scripts or tests that change rule modes. Microsoft names a forgotten test and an automated PowerShell script as ways a rule ends up in Audit mode.
- Management platforms that overwrite local settings at startup.
- Warn mode overrides. In Warn mode users can select Unblock to bypass the block for 24 hours, and the overview says administrator approval is now required to use the Unblock option, from platform version 4.18.26060. Event 1129 records an override.
- Defender versions falling more than two behind, which the overview ties to false positives.
Read next
Related articles you may want next.
- Backup & RecoveryControlled folder access is blocking the backup software: event 1123 and how to allow the appControlled folder access blocks your backup agent with event 1123. Find the program and folder, allow the app by path, and keep ransomware protection on.Read article
- TroubleshootingGroup Policy Not Applying: gpresult, Events and SYSVOLA Group Policy setting missing on a hosted server: read gpresult as the affected user, check loopback, filter one run's events, then check SYSVOL state.Read article
- TroubleshootingWindows event logs: retention, forwarding and keeping the evidence an investigation needsHow long Windows event logs last by default, why they overwrite, and how forwarding and size settings keep evidence for an investigation.Read article
Risks and limits
These steps have not been run or lab-tested. Microsoft's pages do not print the event message for 1121 and do not describe its fields, so matching an event to a rule is left to the reader's reading of the event itself. The configuration page's PowerShell example is not reproduced, because a GUID in it differs from the one in the troubleshooting page's listing; use the GUID from your own listing. A global exclusion affects every ASR rule on the device, and Microsoft states that excluded files generate no events.
Sources
- Troubleshoot attack surface reduction (ASR) rules — Microsoft Learn, page dated 2026-07-17, accessed 3 December 2026
- Attack surface reduction events in Windows Event Viewer — Microsoft Learn, page dated 2026-07-02, accessed 3 December 2026
- Configure attack surface reduction (ASR) rules and exclusions — Microsoft Learn, page dated 2026-09-08, accessed 3 December 2026
- Attack surface reduction (ASR) rules overview — Microsoft Learn, page dated 2026-08-04, accessed 3 December 2026
This article was originally published on .