Device protection with Defender for Endpoint · Prepare
Test attack surface reduction rules in audit mode
Run attack surface reduction rules and network protection in audit mode on a test ring, find what they would break, and decide each rule's mode.
- Duration
- 3 to 5 weeks
- Effort
- About 6 to 10 person-days
- Complexity
- Medium
- Beyond E5
- Nothing beyond Microsoft 365 E5
On this page
Overview
Attack surface reduction rules stop risky behaviour that attackers use and that legitimate software rarely needs: Office apps creating child processes or executable content, scripts launching downloads, credential theft from the local security authority. Some legitimate software does need it, though, and a rule that blocks a finance macro on the first day gets turned off for good. Audit mode logs what each rule would have blocked, without affecting anyone, so you find those apps first.
Technically, you set every rule to Audit on ring 1 devices (the standard protection rules can go straight to Block), along with network protection in audit mode, review the attack surface reduction report and advanced hunting for a normal working period, add narrow exclusions, and decide for each rule whether it goes to Block, Warn or stays in Audit.
You'll end up with: A tested rule set: each rule with its mode (Block, Warn or Audit), the exclusions it needs with a reason and owner, a briefed service desk, and a go/no-go decision for Deploy.
If you skip it: Rules turned on untested break apps the organization depends on, get switched off under pressure, and never come back.
Before you start
The path to this playbook
- Plan device onboarding and protection
- Test attack surface reduction rules in audit mode (you are here)
- Plan device onboarding and protection: Decide the antivirus, management tool, scope, roles and automation for Defender for Endpoint, and agree the rings you'll onboard in.
- Onboard ring 1 devices with Defender Antivirus active
How to do it
Rules depend on Microsoft Defender Antivirus, and several need cloud-delivered protection. Onboard the ring 1 devices (about 50, with champions from each department) and confirm Defender Antivirus is in active mode with cloud protection on. If some rules are already in Block or Warn mode on these devices, set them back to Audit for the test.
- Ask application owners what they run
How to do it
Collect the apps, macros, scripts and management tools each department relies on, especially anything that uses Office macros, PsExec or WMI, or runs from USB.
Test to sign-off
5 phases · 2 decisionsTurn on audit mode1 day
Set all rules to Audit on ring 1 in one policy, and the three standard protection rules to Block. Turn on network protection in audit mode at the same time.
Move on when Audit events from ring 1 appear in the attack surface reduction report.
Key decisions for this phase (1)
Audit everything, or start with a few rules?
Recommended default: All rules in Audit at once, with the standard protection rules in Block
Microsoft suggests enabling all rules in Audit at the same time so you see everything everyday work triggers. Audit mode doesn't affect users. The standard protection rules (vulnerable signed drivers, credential stealing from LSASS, persistence through WMI) can typically go to Block without testing.
How to do it
Use the attack surface reduction policy in Intune, or the tool you chose in Plan. The deployment method doesn't change the reporting, as long as devices are onboarded. If you use Configuration Manager, don't set the PsExec and WMI rule with another tool: the Configuration Manager client relies on WMI.
Watch a normal working period2 to 3 weeks
Let ring 1 work as usual, including month-end and other periodic tasks. Review audit events weekly with the champions: which rules fire, on which apps, on which devices.
Move on when Every rule that fired has been traced to an app and classified as legitimate or not.
How to do it
Use the attack surface reduction rules report in the Defender portal, advanced hunting for detail, and the device timeline for a single device. Security recommendations show a "user impact" value per rule, a useful first signal of which rules are safe to block.
Watch out for (1)
If you: Test for a few days only
What tends to happen: The quarterly report macro or the year-end script hits a block in production, and the rule is turned off.
A better approach:Cover a full working cycle, and ask owners about periodic tasks the test didn't see.
Add narrow exclusions1 week
For each legitimate app a rule would block, add the narrowest exclusion that works, in the same policy as the rule. Record the reason and an owner for each.
Move on when Every legitimate trigger has an exclusion or an agreed change to the app.
How to do it
Some rules have limited exclusion support; check the rule reference before relying on one. Microsoft's guidance is that a rule exclusion is better than turning a rule off or leaving it in Audit.
Watch out for (1)
If you: Exclude whole folders like Program Files to make the noise stop
What tends to happen: Attackers drop tools into excluded folders and the rules never see them.
A better approach:Exclude the specific file or process, and fix the app where you can.
Decide each rule's mode1 week
For each rule, choose Block, Warn or Audit for the Deploy rollout, starting with the rules that fired least. Rules with legitimate triggers you can't exclude yet go to Warn, where people can click through and you keep seeing the events.
Move on when Every rule has a mode and a reason.
Key decisions for this phase (1)
Where a rule still fires on legitimate work, Warn or Audit?
Recommended default: Warn where the rule supports it, Audit only where it doesn't
Warn mode shows a notification people can bypass, and logs it. Not every rule supports Warn. Audit gives no protection at all.
How to do it
Set the first rules to Block on ring 1 now, so the go/no-go is based on real blocks, not audit data alone.
Watch out for (1)
If you: Leave rules in Audit "for now" without a date
What tends to happen: The rule never protects anyone, and the reason for leaving it is forgotten.
A better approach:Give every Audit rule a review date and an owner.
Brief the service desk and decide go or no-go1 week
Show the service desk what a block and a warning look like, how to find the rule that fired, and how to request an exclusion. Then review the test results and decide whether Deploy can start.
Move on when Go is agreed and the exclusion request path works.
Keep the champions close. They notice blocked work first, and they explain the rules to their teams better than any email.
How you'll know it's working
3 measures
Capture a baseline before you start, or you won't be able to show the change.
| Measure | Where you see it | Good direction |
|---|---|---|
| Rules in Block or Warn mode on ring 1 | Attack surface reduction rules report | Up |
| Audit events per week from legitimate apps | Attack surface reduction rules report | Down |
| Exclusions without a reason or owner | Test record | Down |
Take it with you
plan, decisions, gate checks, 1 template
Plan outline: phases and when to move on
- Turn on audit mode (1 day). Move on when: Audit events from ring 1 appear in the attack surface reduction report.
- Watch a normal working period (2 to 3 weeks). Move on when: Every rule that fired has been traced to an app and classified as legitimate or not.
- Add narrow exclusions (1 week). Move on when: Every legitimate trigger has an exclusion or an agreed change to the app.
- Decide each rule's mode (1 week). Move on when: Every rule has a mode and a reason.
- Brief the service desk and decide go or no-go (1 week). Move on when: Go is agreed and the exclusion request path works.
Decisions to record, with the recommended answer
| Decision | Recommended default | Our choice |
|---|---|---|
| Audit everything, or start with a few rules? | All rules in Audit at once, with the standard protection rules in Block | |
| Where a rule still fires on legitimate work, Warn or Audit? | Warn where the rule supports it, Audit only where it doesn't |
Gate checks: questions to answer before each phase ends
Before leaving Turn on audit mode
- Are all rules in Audit on ring 1, and the standard protection rules in Block?
- Is network protection auditing?
Before leaving Watch a normal working period
- Has every rule that fired been traced to an app?
Before leaving Add narrow exclusions
- Does every exclusion have a reason and an owner?
Before leaving Decide each rule's mode
- Does every rule have a mode and a reason?
Before leaving Brief the service desk and decide go or no-go
- Can the service desk tell which rule blocked an app?
- Is the go/no-go decision recorded?
Message to ring 1 champions
You're one of the first to test new protection on your device. For the next few weeks it only watches: nothing is blocked. If something you use every day behaves differently, tell us right away. We'll ask you which apps, macros and scripts your team relies on, including the ones used once a month or once a year.
Contributor

Microsoft 365 architecture and governance · Protiviti