Registry Key for Windows Defender ASR Rules

Attack Surface Reduction (ASR) rules in Windows Defender Exploit Guard help prevent common malware infection vectors. This article identifies the exact Windows Registry paths used to configure and enforce ASR rules, explains how specific rule IDs (GUIDs) map to registry values, and breaks down the numerical state codes required to manage blocking, auditing, and warning modes.


The Primary ASR Registry Keys

The behavior of Attack Surface Reduction rules is primarily controlled through two registry locations depending on whether the configuration is enforced via policy or stored locally.

Policy-Enforced Key:

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Windows Defender Exploit Guard\ASR\Rules

Local/Applied Key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Windows Defender Exploit Guard\ASR\Rules

How ASR Rules Are Structured in Regedit

Within the ...\ASR\Rules key, individual rules are configured as distinct registry values:


ASR Rule State Values

When configuring values under the Rules key, use the following integers to set the behavior for each rule GUID:

Value Enforcement State Description
0 Disabled The rule is turned off and performs no action.
1 Block The rule is active and immediately blocks matching behaviors.
2 Audit Actions are not blocked, but events are logged to the Windows Event Log.
6 Warn The user is prompted with a warning dialog allowing them to bypass the block.

To manage exclusions alongside ASR rules, Windows Defender utilizes a dedicated exclusions subkey:

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Windows Defender Exploit Guard\ASR\Exclusions