TechBuzzPro

Turn On Attack Surface Reduction Rules in Windows 11

· 6 min read · Windows & PC

In this article
  1. What You’ll Need
  2. Step‑by‑Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can enable Attack Surface Reduction (ASR) rules in Windows 11 through the built‑in Windows Security app or via PowerShell, giving you granular control over potentially unsafe behaviours.

Attack Surface Reduction is a set of endpoint‑hardening controls that block common exploit techniques, such as executing scripts from unknown locations, launching Office macros, or running untrusted binaries. Enabling these rules reduces the attack surface of your PC, making it harder for ransomware, trojans, and other malware to gain a foothold. The feature is part of Microsoft Defender for Endpoint and is also available on Windows 10/11 Pro, Enterprise, and Education editions.

What You’ll Need

  • Administrator rights on the Windows 11 PC.
  • Windows Security (formerly Windows Defender) installed – it ships with all supported editions.
  • Optional: PowerShell 5.1 or later if you prefer the command‑line method.

Step‑by‑Step

  1. Open Windows Security. Click the Start button, type Windows Security, and press Enter.
  2. Navigate to the “Virus & threat protection” pane. In the left‑hand navigation, select Virus & threat protection. (Menu names may vary slightly by version or language.)
  3. Access “Manage settings” under “Virus & threat protection settings”. Scroll down to the Virus & threat protection settings section and click Manage settings.
  4. Locate the “Attack surface reduction” link. In the same page, find the Attack surface reduction link under the Ransomware protection or Exploit protection header and click it. If you do not see the link, your edition may not support ASR; you need Windows 11 Pro, Enterprise, or Education.
  5. Review the list of ASR rules. Each rule has a description, a default state (Off, Audit, or Block), and a toggle. The most common baseline is to set the rule to Block. For example, “Block executable content from email and webmail clients” is rule 1.
  6. Enable a rule. Click the toggle next to the rule you want to enforce, then choose Block from the drop‑down menu. You may be prompted to confirm that you have administrator rights; click Yes if the UAC dialog appears.
  7. Repeat for additional rules. It is recommended to enable at least the following core rules:
    • Rule 1 – Block executable content from email and webmail clients.
    • Rule 3 – Block Office applications from creating child processes.
    • Rule 5 – Block credential stealing from the Windows local security authority subsystem.
    • Rule 14 – Block untrusted and unsigned processes that attempt to load into a privileged process.
  8. Apply the changes. After toggling the desired rules, close the Windows Security window. The new settings take effect immediately, though some may require a restart of affected applications.
  9. Optional: Use PowerShell for bulk configuration. Open PowerShell as Administrator (right‑click the Start button, choose Windows PowerShell (Admin)) and run the following command for each rule you wish to enable:
    Set-MpPreference -AttackSurfaceReductionRules_Ids "{GUID}" -AttackSurfaceReductionRules_Actions Block
    Replace {GUID} with the rule identifier, e.g., 01443614-cd74-433a-b99e-2ecdc07bfc25 for Rule 1. You can retrieve the full list of GUIDs from Microsoft’s official documentation.
  10. Verify the configuration. Return to the Windows Security > Attack surface reduction page; each rule you set to Block will display a green check mark. Alternatively, run Get-MpPreference | Select -Expand AttackSurfaceReductionRules_Ids in PowerShell to see the current state.

Common Mistakes

1. Attempting to enable ASR on Windows 11 Home. The Home edition does not expose the ASR UI, and PowerShell will reject the command with an “Access is denied” error. Upgrade to a supported edition or use Microsoft Defender for Endpoint if you need enterprise‑grade protection.

2. Leaving a rule in “Audit” mode. Audit logs the violation but does not block it, which can give a false sense of security. Confirm that the drop‑down is set to Block unless you are deliberately testing.

3. Disabling rules that break legitimate software. Some older line‑of‑business applications rely on script execution or child‑process creation. If you encounter compatibility issues, temporarily set the rule to Audit to collect events, then create an exclusion for the specific program.

4. Forgetting to restart after enabling certain rules. A few rules, such as those affecting Windows Explorer, only apply after the affected process restarts. A quick sign‑out/in or system reboot clears any lingering permissions.

Tips

  • Use the Event Viewer (Windows Logs > Microsoft > Windows > Defender > Operational) to see which ASR rules are being triggered. Look for Event ID 1121 (blocked) or 1120 (audit).
  • If you manage multiple PCs, deploy ASR settings via Group Policy (Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus > ASR Rules) or Microsoft Endpoint Manager for consistency.
  • Combine ASR with Controlled Folder Access and Exploit Protection for a layered defense.
  • Document any exclusions you create; keep them in a secure change‑log to avoid “rule creep” over time.
  • Regularly review the Microsoft Defender security intelligence portal for newly published ASR rule GUIDs and recommended baselines.

Troubleshooting

Symptom: The toggle is grayed out or unresponsive. Ensure you are logged in as a local or domain administrator. If you are using a managed device, a corporate policy may have locked the setting; contact your IT administrator.

Symptom: PowerShell returns “The request is not supported on this version of the operating system.” Verify that you are running Windows 11 Pro, Enterprise, or Education. Home edition lacks the underlying WMI class.

Symptom: An application crashes after you enable a rule. Check the Event Viewer for the specific rule ID that blocked the process. If the rule is essential for the app’s functionality, create an exclusion:

Set-MpPreference -ExclusionProcess "C:\Program Files\LegacyApp\app.exe"
After adding the exclusion, re‑enable the rule.

Symptom: No events appear in the Defender Operational log. Make sure “Audit” mode is not set for all rules; at least one rule must be in Block or Audit to generate logs. Also confirm that the “Microsoft Defender Antivirus” service is running (services.msc).

If none of the above resolves the issue, try these steps in order:

  1. Restart the computer to clear any stale policy caches.
  2. Run Update-MpSignature in an elevated PowerShell window to ensure Defender definitions are up to date.
  3. Open Settings > Windows Update and install any pending updates; ASR improvements are delivered via feature updates.
  4. Reset Windows Security settings to default by running Remove-MpPreference -All (caution: this removes all custom Defender configurations).
  5. If the problem persists, consider reinstalling the Windows Security app via PowerShell: Get-AppxPackage Microsoft.Windows.SecHealthUI | Remove-AppxPackage; Get-AppxPackage -AllUsers Microsoft.Windows.SecHealthUI | Add-AppxPackage.

Frequently Asked Questions

Do ASR rules replace Windows Firewall?

No. ASR focuses on preventing malicious code execution, while Windows Firewall controls network traffic. Use both for comprehensive protection.

Can I enable ASR on a Windows 11 device that is not joined to a domain?

Yes. Local administrator rights are sufficient; domain membership is only needed for centralized policy deployment.

Will enabling ASR impact system performance?

ASR runs at the kernel level and has a negligible performance impact on modern hardware. The trade‑off is increased security.

Are there any risks of data loss when configuring ASR?

ASR blocks execution, it does not delete files. However, if a legitimate script is blocked, the associated task may fail, so test critical workflows after enabling new rules.

How often should I review my ASR settings?

Review quarterly or after major software deployments. Adjust exclusions as needed, but keep the core baseline rules enabled.

Is there a way to export and import ASR configurations?

Yes. Use PowerShell to export the current preference with Export-Clixml -Path "C:\ASRConfig.xml" -InputObject (Get-MpPreference) and import on another machine with Import-Clixml -Path "C:\ASRConfig.xml" | Set-MpPreference.