MICROSOFT DEFENDER · ATTACK SURFACE REDUCTION

Build ASR rules.
Deploy in one line.

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.

EXPORTS TOPowerShellIntune OMA-URIGroup PolicyRegistry.pol.reg
Windows Defender / OperationalSYNTHETIC
ASR ACTIVITYSAMPLE EVENTS
09:14:02
1122 Office child processEXCEL.EXE → render.exe
audit
09:14:37
1121 Obfuscated scriptspowershell.exe · invoice.ps1
block
// the rule GUID and mode travel with the event"RuleId": "5beb7efe-fd9a-…",
"Mode": "Block"
09:15:10
1129 USB unsigned processuser chose Unblock
warn bypass
EVENTS 1121 · 1122 · 1129COLLECT → CSV → ANALYZE
19 / ASR rules

3 in Microsoft's standard protection set

4 / presets

Apply or merge, then tune rule by rule

1 / script

Save · Install · Status · Collect · Restore

BUILD · SHARE · RUN

From a policy you can read
to a device that enforces it.

No agent, no account, no backend. The site is static and the policy rides in the link.

01

Build

Set every rule to Off, Audit, Warn or Block, start from a preset, and add only the exclusions you can justify.

02

Share

Copy the link for review. It holds the whole policy in its #p= fragment, so it never reaches a server log.

03

Run

Paste one command into an elevated PowerShell. It previews, asks, backs up, applies and verifies.

ONE SCRIPT. READ IT FIRST.

One line.
Nothing hidden.

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…

How the script works
Elevated PowerShell · example
& ([scriptblock]::Create((irm 'https://asrrules.com/asr-rules-builder.ps1'))) -Policy 'eyJ2IjoxLCJuYW1lIjoiU3RhbmRh…' -Action Install
-Action Install-WhatIf-Action Collect-Action Restore

EVERYTHING ASR DOES

Every control,
in one place.

Browse the rule reference

Every rule, every mode

Not set, Off, Audit, Warn and Block for all rules, with warn support enforced and Microsoft's notes beside each one.

Exclusions that warn you

ASR-only and per-rule exclusions with validation and risk hints for drive roots, wildcards, LOLBins and user-writable paths.

A link is the policy

State lives in the URL fragment. Send a link for review; nothing is stored or sent to a server.

One command, five actions

Install, preview with WhatIf, Save an offline script, check Status or Collect events from the same script.

Intune, GPO, registry

OMA-URI rows, a New-GPO script, Registry.pol, an importable GPO backup and a .reg file from the same policy.

Audit, then decide

Drop Collect CSVs into the analyzer for noisy rules, top processes, block candidates and exclusion suggestions.

START WITH A BASELINE

Pick a preset.
Make it yours.

Start from Standard protection Read the getting started guide