Disassembler0 / Win10-Initial-Setup-Script

PowerShell script for automation of routine tasks done after fresh installations of Windows 10 / Server 2016 / Server 2019
MIT License
4.69k stars 1.08k forks source link

Windows Defender Attack Surface Reduction Rules (ASR) #332

Open jcspencer opened 3 years ago

jcspencer commented 3 years ago

Defender lets you set Attack Surface Reduction rules both via GPO or via Set-MpPreference. A list of the rules can be found here.

Current rules:

Is this something that would be worth me making a PR for?

The main issue is that there are currently 15 possible rules, each with three states (disabled, audit, enabled). Would this be something where there should be three options available as separate commands?

E3V3A commented 3 years ago

@jcspencer

Is this something that would be worth me making a PR for?

Absolutely, but before you do that, we need to address the issue of "out-of-box" experience for first time Windows users.

So perhaps we need to think about this:

  1. How can we get the out-of-box Vanilla settings for all those? (I.e. a log of what is currently used, before running and changin anything.)
  2. Which of the are the most important to have, but which will not block you from using Office tools in a standard way?
  3. Maybe have 3 "blocks" of different presets, eahc representing (user knowledge). For example: [basic, audit, hardened]?

For example, basic would block obvious stuff like:

But not: