Skip to content
LessIT

Defender for Endpoint

Configure Attack Surface Reduction Rules

Deploy ASR rules in audit mode via Intune, analyze impact reports, identify false positives, transition to block mode, configure per-rule exclusions, and monitor effectiveness with advanced hunting queries.

Intermediate 90 min 12 steps

Where it fits: lab 2 of 7

Onboard and harden Windows and Linux endpoints. Onboard devices to Defender for Endpoint, block risky behavior with ASR, network protection, device control and App Control, and cover Linux.

  1. Onboard a Windows Server Fleet to MDE 75 min
  2. Configure Attack Surface Reduction Rules 90 min
  3. Network Protection & Custom Indicators for IP/URL/Domain 120 min
  4. Device Control: USB and Removable Storage Management 90 min
  5. Deploy & Tune Endpoint Detection Policies 2.5 h
  6. App Control for Business: End-to-End Deployment 3 h
  7. Secure Linux Endpoints with Entra ID, Intune and Defender for Endpoint 9.5 h

What this lab covers

Attack Surface Reduction (ASR) rules are a set of configurable controls in Microsoft Defender for Endpoint that block common malware techniques at the operating system level. ASR rules target behaviors such as Office macro abuse, credential theft via LSASS, script-based attacks, executable content in emails, and exploit techniques used by commodity malware. Each rule can operate in one of three modes: Audit (log only), Block (enforce), or Warn (prompt the user before allowing). This lab walks you through a complete enterprise deployment: audit, analyze, exclude, block, and monitor.

The enterprise scenario

Scenario: A healthcare organization with 3,000 Windows workstations is experiencing increasing commodity malware attacks.

Attackers are exploiting Office macros, credential theft tools, and script-based attack vectors to gain footholds. The security team needs to block these vectors without disrupting clinical workflows or breaking line-of-business applications. The organization uses Microsoft Intune for endpoint management and requires a phased, low-risk deployment approach.

What you will learn

  • Understand the full catalog of ASR rules and their categories
  • Deploy ASR rules in audit mode via Microsoft Intune
  • Analyze ASR audit data to identify false positives and legitimate blocks
  • Transition rules from audit to block mode using a phased approach
  • Configure per-rule exclusions to prevent workflow disruptions
  • Monitor ASR effectiveness with advanced hunting KQL queries
  • Create custom ASR reporting dashboards for stakeholder visibility
  • Troubleshoot ASR-related application compatibility issues

Before you start

  • Licensing: Microsoft Defender for Endpoint Plan 2 (or Microsoft 365 E5 / E5 Security)
  • Operating System: Windows 10 version 1709 or later, or Windows 11
  • Cloud Protection: Microsoft Defender Antivirus cloud-delivered protection must be enabled
  • Intune: Devices enrolled in Microsoft Intune with appropriate device compliance policies
  • Portal Access: Security Administrator or Endpoint Security Manager role in security.microsoft.com and intune.microsoft.com
  • Antivirus: Microsoft Defender Antivirus in active mode (not passive or disabled)
  • Real-Time Protection: Real-time protection and behavior monitoring enabled on all target endpoints
  • Network: Outbound HTTPS (443) connectivity to MDE cloud service URLs

The 12 steps

  1. Understand ASR Rules and Categories
  2. Review ASR Rule Prerequisites
  3. Create a Test Device Group in Intune
  4. Deploy ASR Rules in Audit Mode via Intune
  5. Generate Test Events to Validate Audit Logging
  6. Analyze ASR Audit Events with Advanced Hunting
  7. Identify and Configure Exclusions
  8. Transition High-Confidence Rules to Block Mode
  9. Configure Warn Mode for User-Facing Rules
  10. Build an ASR Monitoring Dashboard
  11. Create Alert Rules for ASR Block Events
  12. Validate Full Deployment and Document Policies

Related labs