Build
Set every rule to Off, Audit, Warn or Block, start from a preset, and add only the exclusions you can justify.
MICROSOFT DEFENDER · ATTACK SURFACE REDUCTION
The free ASR rules builder for Microsoft Defender attack surface reduction.
Pick a mode for every rule, tune exclusions, and share the result as a link. Then install, preview, audit or collect events on Windows with a single PowerShell command, or export it for Intune and Group Policy.
"RuleId": "5beb7efe-fd9a-…",
"Mode": "Block"3 in Microsoft's standard protection set
Apply or merge, then tune rule by rule
Save · Install · Status · Collect · Restore
BUILD · SHARE · RUN
No agent, no account, no backend. The site is static and the policy rides in the link.
Set every rule to Off, Audit, Warn or Block, start from a preset, and add only the exclusions you can justify.
Copy the link for review. It holds the whole policy in its #p= fragment, so it never reaches a server log.
Paste one command into an elevated PowerShell. It previews, asks, backs up, applies and verifies.
ONE SCRIPT. READ IT FIRST.
The command downloads asr-rules-builder.ps1 from this site and runs it with your policy. It refuses invalid input, shows current → new for every rule, asks before changing anything and writes a backup you can restore.
SHA-256 at build: 9FE67A08D9EC75DC…
& ([scriptblock]::Create((irm 'https://asrrules.com/asr-rules-builder.ps1'))) -Policy 'eyJ2IjoxLCJuYW1lIjoiU3RhbmRh…' -Action InstallEVERYTHING ASR DOES
Not set, Off, Audit, Warn and Block for all rules, with warn support enforced and Microsoft's notes beside each one.
ASR-only and per-rule exclusions with validation and risk hints for drive roots, wildcards, LOLBins and user-writable paths.
State lives in the URL fragment. Send a link for review; nothing is stored or sent to a server.
Install, preview with WhatIf, Save an offline script, check Status or Collect events from the same script.
OMA-URI rows, a New-GPO script, Registry.pol, an importable GPO backup and a .reg file from the same policy.
Drop Collect CSVs into the analyzer for noisy rules, top processes, block candidates and exclusion suggestions.
START WITH A BASELINE