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

Who's in the room: Endpoint admin, security analyst, application owners, rule champions from each department, service desk lead

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

  1. Plan device onboarding and protection
  2. 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.

    Who: Endpoint adminProduces: Ring 1 devices onboarded and ready to audit

  • 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.

    Who: Endpoint adminProduces: A list of critical apps to watch during the test

Test to sign-off

5 phases · 2 decisions
  1. Turn 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.

    Who: Endpoint adminProduces: Ring 1 auditing every rule

    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.

    Other options: A few rules at a time, adding more each month · Decided by: Endpoint admin with the security analyst

    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.

  2. 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.

    Who: Security analyst with the rule championsProduces: A list of rules that fire, the apps behind them, and whether each is legitimate

    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.

  3. 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.

    Who: Endpoint adminProduces: Exclusions with a reason and 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.

  4. 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.

    Who: Security analyst with the endpoint adminProduces: A mode per rule, for Deploy

    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.

    Other options: Leave noisy rules in Audit until the app is fixed · Decided by: Security analyst

    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.

  5. 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.

    Who: Endpoint admin with the service desk leadProduces: A briefed service desk and a go/no-go decision

    Move on when Go is agreed and the exclusion request path works.

Alongside every phase:

Keep the champions close. They notice blocked work first, and they explain the rules to their teams better than any email.

What keeps it in place:

Rules and exclusions live in one policy (an Intune attack surface reduction policy, or the single tool you chose in Plan), so the tested set is exactly what Deploy rolls out. Each exclusion has a reason and an owner in the test record.

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.

Measures, where you see them, and the direction that means success
MeasureWhere you see itGood direction
Rules in Block or Warn mode on ring 1Attack surface reduction rules report Up
Audit events per week from legitimate appsAttack surface reduction rules report Down
Exclusions without a reason or ownerTest record Down

Take it with you

plan, decisions, gate checks, 1 template

Plan outline: phases and when to move on

  1. Turn on audit mode (1 day). Move on when: Audit events from ring 1 appear in the attack surface reduction report.
  2. 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.
  3. Add narrow exclusions (1 week). Move on when: Every legitimate trigger has an exclusion or an agreed change to the app.
  4. Decide each rule's mode (1 week). Move on when: Every rule has a mode and a reason.
  5. 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

DecisionRecommended defaultOur 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.

Microsoft Learn

5 links

Contributor

Compare notes or suggest an improvement

Your message goes straight to Sev Derghazarian.

What would you like to do?

Subject:

The send button is enabled once the spam check below completes.