Weekend walkthroughs are step-by-step setups, not fixes. This week: Attack Surface Reduction (ASR) rules.
ASR rules are one of the most useful protections already included in Microsoft Defender, and one of the most often left switched off. They block the behaviours attackers rely on: Office apps launching other programs, scripts downloading executables, credential theft from memory, ransomware-style file encryption.
After last week’s ClickFix post, this is a good next step. Rules like Block execution of potentially obfuscated scripts and Block JavaScript or VBScript from launching downloaded executable content cut off several of the tricks those attacks use once something does get run.
Here’s how I’d set them up with Intune, safely, without breaking anyone’s work.

Before you start: check the prerequisites
- Microsoft Defender Antivirus must be the primary antivirus, enabled and in active mode. ASR rules don’t work if Defender is in passive mode because another antivirus product is in charge.
- Real-time protection must be on.
- Cloud-delivered protection must be on, and devices must be able to reach the Defender cloud service. Several rules depend on it.
- Keep Defender up to date. The platform, engine and security intelligence should be no more than two versions behind the latest.
- Windows only. ASR rules are a Windows feature. They don’t apply to macOS or Linux, even if those devices are onboarded to Defender for Endpoint.
- Licensing: ASR rules themselves don’t need Microsoft 365 E5. Deploying through Intune needs Intune Plan 1 (included in Microsoft 365 E3). The full reporting and monitoring in the Defender portal is what benefits from E5 or Defender for Endpoint.
Step 1: Pick a pilot group
Create an Entra ID device group with a small, friendly set of machines: a few people from IT, and one or two from teams that use heavy Office macros or line-of-business apps (finance is usually a good test). These are the people most likely to hit a false positive, so you want to find out early and with people who’ll tell you.
Step 2: Create the policy in Intune
- In the Microsoft Intune admin center, go to Endpoint security > Attack surface reduction > Create policy.
- Set Platform to Windows and Profile to Attack Surface Reduction Rules, then select Create.
- On Basics, give it a clear name, for example ASR – Pilot – Audit.
- On Configuration settings, set each rule’s mode (see Step 3).
- Skip Scope tags unless you use them, assign the policy to your pilot group, then Review + create.
Step 3: Choose the starting mode for each rule
Each rule can be Not configured, Audit (log only), Block, or Warn (block, but let the user override).
Turn these three on in Block straight away. Microsoft groups them as the standard protection rules and says they can typically go into Block or Warn without testing:
- Block abuse of exploited vulnerable signed drivers
- Block credential stealing from the Windows local security authority subsystem (LSASS)
- Block persistence through WMI event subscription
Put everything else in Audit first, including these high-value ones:
- Block all Office applications from creating child processes
- Block Office applications from creating executable content
- Block Office applications from injecting code into other processes
- Block Win32 API calls from Office macros
- Block executable content from email client and webmail
- Block JavaScript or VBScript from launching downloaded executable content
- Block execution of potentially obfuscated scripts
- Block untrusted and unsigned processes that run from USB
- Use advanced protection against ransomware
A few to handle with care:
- Block process creations originating from PSExec and WMI commands: don’t enable this on devices managed by Configuration Manager, because its client relies heavily on WMI.
- Block Webshell creation for Servers: only for servers, and leave it Not configured in Group Policy if you manage it through Defender, to avoid conflicts.
- Block use of copied or impersonated system tools: can catch legitimate third-party tools that run from unusual folders, so audit it properly first.
Step 4: Watch the audit data
Leave the pilot in Audit long enough to cover normal business cycles. I’d give it a few weeks, including a month-end if finance is in the group. Then review what would have been blocked:
- In the Microsoft Defender portal, go to Reports > Endpoints > Attack surface reduction rules. The Detections tab shows what was audited or blocked, and the Configuration tab shows which devices have which rules in which mode.
- With Defender for Endpoint Plan 2, use advanced hunting for the full picture:
DeviceEvents
| where Timestamp > ago(14d)
| where ActionType startswith "Asr"
| summarize Hits = count() by ActionType, FileName, DeviceName
| order by Hits desc
For each hit, ask one question: is this a real business process, or something that shouldn’t be happening? You’ll often find a few surprises in the second pile.
Step 5: Add exclusions carefully
- Use per-rule exclusions, not global ones. In Intune, use ASR Only Per Rule Exclusions on the specific rule. If a device gets any policy with the global Attack Surface Reduction Only Exclusions, those exclusions apply to every ASR rule on that device.
- Exclude the narrowest thing that works: a specific file path rather than a whole folder, and a folder rather than a drive.
- Expect noise from the LSASS rule. It logs plenty of harmless activity from processes like
svchost.exe. Only add an exclusion if an app actually breaks. - Document every exclusion with a reason and an owner. Exclusions are holes in the protection, so they should be easy to review later.
Step 6: Switch to Block and expand
- Move the audited rules to Block (or Warn for rules where users might genuinely need to override, if your devices support it) for the pilot group.
- Give it a week or two, then expand in rings: IT, then one department, then everyone.
- Keep a small “break glass” group in Audit for anyone who needs a temporary exception while you sort out an exclusion.
Two rules can’t use Warn: the LSASS credential theft rule and Block Office applications from injecting code into other processes.
Gotchas I’d watch for
- ASR settings can come from three places in Intune: an endpoint protection configuration profile, an Endpoint security ASR policy, and the Defender for Endpoint security baseline. Intune merges non-conflicting rules into one set per device, but conflicting settings are held back. Pick one place to manage ASR and stick to it.
- Check the Configuration tab after rollout. Devices showing rules as “not configured” usually point to an assignment or conflict problem.
- Tell the service desk before you enforce. When an app suddenly can’t open a file or a macro stops working, they should think “ASR” before they think “reinstall Office”.
The takeaway
ASR rules are included in the Defender you probably already have. Three of them can go on today in Block. The rest just need a few weeks in Audit, a short exclusions list and a staged rollout. It’s one of the best value security changes you can make this month.