Attack Surface Reduction
Cheat sheet · https://pcornel.dk/topic.php?topic=3207
Answer
ASR rules target behavioral patterns such as risky child-process creation, script/content abuse or credential-related behaviors depending on the individual rule. Each rule has its own scope, prerequisites and operating mode.
Remember
- ASR is a collection of independent rules, not one switch.
- Rule GUID/name + mode + event context must be kept together.
- Audit evidence does not prove the action would be blocked unless enforcement mode is verified.
- A blocked behavior does not prove malware; legitimate software can match risky patterns.
- Do not create broad exclusions before identifying the exact rule and process chain.
First checks
Get-MpComputerStatus— Defender state and signature ageGet-CimInstance -Namespace root\Microsoft\Windows\DeviceGuard -ClassName Win32_DeviceGuard— VBS, Credential Guard, HVCI stateGet-MpPreference | Select AttackSurfaceReductionRules_Ids,AttackSurfaceReductionRules_Actions— ASR rulesGet-ProcessMitigation -System— system exploit mitigationsGet-WinEvent -LogName 'Microsoft-Windows-Windows Defender/Operational' -MaxEvents 30— Defender events
Verify in this order
ASR rules → block risky behaviours (Office child processes, LSASS access…)
Where it usually breaks
First mismatch in identity/token/certificate → policy source → security provider/enforcement → target resource → audit/detection evidence; preserve identity/native error/pre-state before mutation.
Windows Security → Attack Surface Reduction reference map
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Rule | Specific behavior control | independent from other rules |
| Mode | Disabled/audit/warn/block as applicable | must prove effective mode |
| Process chain | Triggering behavior context | not malware verdict |
| Decision | Audit/block outcome | specific event only |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3207