Pcornel
Windows · Windows Security

Defender Firewall

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

Back to the Topic

Answer

Microsoft Defender Firewall filters host traffic using active network profiles and effective rules. This topic explains its security role; detailed profile/rule administration and command guidance remain in Windows → Windows Firewall.

Remember

  • Firewall enabled does not prove a specific rule permits or blocks the flow.
  • Profile selection changes which policy set is effective.
  • Rule presence does not prove rule match.
  • A blocked inbound flow can still have another upstream or application failure.
  • Detailed firewall administration stays in Windows Firewall.

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

profile → rules → enforcement

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 → Defender Firewall reference map

BoundaryMeaningEvidence limit
ProfileActive policy contextdoes not prove flow match
RuleConfigured condition/actionpresence is not match
Flow tupleTraffic being evaluatedmust match direction/addresses/ports
Decision/logObserved allow/blocklocal firewall only

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3202

Confirmation

Confirm action

Continue?