Pcornel
Windows · Windows Security

Attack Surface Reduction

Cheat sheet · https://pcornel.dk/topic.php?topic=3207

Back to the Topic

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 age
  • Get-CimInstance -Namespace root\Microsoft\Windows\DeviceGuard -ClassName Win32_DeviceGuard — VBS, Credential Guard, HVCI state
  • Get-MpPreference | Select AttackSurfaceReductionRules_Ids,AttackSurfaceReductionRules_Actions — ASR rules
  • Get-ProcessMitigation -System — system exploit mitigations
  • Get-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

BoundaryMeaningEvidence limit
RuleSpecific behavior controlindependent from other rules
ModeDisabled/audit/warn/block as applicablemust prove effective mode
Process chainTriggering behavior contextnot malware verdict
DecisionAudit/block outcomespecific 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

Confirmation

Confirm action

Continue?