——
GuideHARDENING

Microsoft Defender ASR rules: audit, pilot and enforce without breaking the business

Deploy Microsoft Defender Attack Surface Reduction rules safely: baseline, audit, pilot, enforcement, exceptions and rollback evidence.

Deploy Microsoft Defender Attack Surface Reduction rules safely: baseline, audit, pilot, enforcement, exceptions and rollback evidence.

Microsoft DefenderASRIntuneWindows securityendpoint hardening

A spreadsheet macro arrives five minutes before payroll closes. Defender blocks a child process; finance still needs to finish payroll; the helpdesk has three contradictory stories and an exception request. That is why Attack Surface Reduction (ASR) must be deployed as a measured control, not a collection of GUIDs pasted into production.

This guide is for the administrator responsible for Windows 10/11 endpoints and supported Windows Server workloads using Microsoft Defender Antivirus. It uses Intune where available, with a local PowerShell check on an authorised pilot device. The outcome is a small, named pilot that moves one rule from audit to enforcement with evidence, a narrow exception route and a usable exit path. ASR reduces risky behaviours; it does not replace patching, identity controls or incident response. If compromise is suspected, preserve evidence and contain the device rather than treating a policy change as medicine.

Decide what each rule is protecting

Microsoft describes ASR rules as controls for behaviours abused by malware, including Office child processes, scripts and code injection. The modes are operational decisions. Audit creates evidence without stopping activity. Warn requires an interactive user and is unsuitable for unattended servers. Block prevents the action. A rule can be harmless on a kiosk and painful on a workstation with a decade-old accounting add-in.

Create a scope record before changing anything: pilot group, business owner, Defender platform version, rule GUID, intended mode, known dependencies and rollback owner. Keep servers separate from workstations. Do not assume a popular baseline is safe for every workflow; legacy software has never read your baseline.

For adjacent controls, see Windows hardening for small business, Sysmon telemetry and Build a Mini SOC.

Establish a read-only baseline

On an authorised endpoint, open an elevated PowerShell session. This is read-only and needs local administrator rights because Defender preferences are protected configuration.

Get-MpComputerStatus |
  Select-Object AMRunningMode, AMServiceEnabled, AntivirusEnabled, RealTimeProtectionEnabled

Get-MpPreference |
  Select-Object AttackSurfaceReductionRules_Ids, AttackSurfaceReductionRules_Actions

A healthy managed device normally reports Defender enabled and returns matching arrays of rule IDs and actions. Empty ASR arrays are not necessarily errors: no visible ASR rule may be configured. Passive mode, third-party AV coexistence, or mismatched arrays are stop signs for the pilot. Confirm enrolment and intended management authority first.

In Intune, navigate to Endpoint security → Attack surface reduction → Create Policy, select the Windows platform and relevant profile, then create a policy assigned only to a dedicated pilot group. Set the chosen rule to Audit and leave unrelated settings Not configured. A pilot policy is not the time to become a second undocumented baseline.

How to verify it: Open the policy and confirm its assignment is the pilot group, not “All devices”. After normal device check-in, rerun the PowerShell command. Reporting delay is not proof of failure; check the assignment, endpoint sync state and local preference before changing mode.

Read audit evidence before blocking

Audit must answer what started the action, which rule observed it, which owner can explain it, and whether it is expected. Query a short time window rather than exporting the whole event log.

$start = (Get-Date).AddDays(-7)
Get-WinEvent -FilterHashtable @{
  LogName='Microsoft-Windows-Windows Defender/Operational'
  StartTime=$start
} | Where-Object { $_.Id -in 1121,1122,1123,1124 } |
  Select-Object TimeCreated, Id, ProviderName, Message |
  Format-List

A message naming a rule and process path is evidence, not a malware verdict. Correlate time with the approved task, parent process, signer and Defender device timeline. A repeated audited Office-to-script chain from an unsigned attachment is a strong blocking candidate. A signed finance plug-in spawning a child process may be compatibility trouble, or an excellent disguise. Investigate before excluding it.

In the Defender portal use Hunting → Advanced hunting or the device timeline, limited to pilot devices and the candidate rule. Keep the query and result count with the change record. If local events exist but portal data does not, investigate onboarding and sensor health rather than declaring ASR ineffective.

Run a named pilot, not a lottery

Use a representative small group: finance, ordinary office work, IT support, and separately a non-production server where applicable. Administrators alone are not representative; their workflow is unusually privileged and unusually willing to survive bad decisions.

For each rule document expected benefit, likely breakage, evidence window, business owner, exit criteria and rollback owner. Move from Audit to Warn only for interactive users who can make an informed choice. Move to Block when evidence supports it. In the same Intune policy change only one rule, save, and let the pilot sync. When five settings change together, the helpdesk receives a mystery novel instead of a diagnosis.

How to verify it: confirm the local action with Get-MpPreference, then run only an approved normal workflow previously seen in audit. Confirm the expected event and business outcome. Do not execute malware on production endpoints merely to decorate a report.

Exceptions must be narrow and temporary

Before approving an exception require the exact rule, executable path or signer, affected devices, business owner, expiry and compensating controls. Prefer an application update, a narrow device group, or vendor-supported configuration. Do not exclude whole Program Files or a profile directory; that converts an enforcement rule into a decorative suggestion.

Use a separate exception policy assigned only to named devices. Verify one endpoint, rerun the approved workflow, and schedule removal. If it still blocks, inspect the actual child process: the first path is often only the launcher.

Failure, containment and rollback

A realistic failure is a blocked payroll component during the pilot. Capture the event, policy revision, process path, impact and owner. Do not disable all ASR rules. Change only the affected rule back to Audit for the pilot group, or remove that group from the assignment; allow policy sync; confirm business recovery; retain the evidence for remediation.

If the event indicates suspicious activity, maintain containment, isolate according to the Windows incident process and review credentials. ASR alerting is not wallpaper, but neither is it a conviction.

How to verify rollback: record the old mode first. After sync, check Get-MpPreference, test the affected workflow and confirm unrelated rules did not change. Recovery proves availability, not safety.

Completion criteria

A rule is ready to expand only when its scope and mode are recorded, pilot evidence reviewed, exceptions named and expiring, telemetry visible and rollback exercised. Expand one cohort at a time. The next practical action is to add ASR event review to normal endpoint monitoring.

Related articles:

References