Defender Firewall
Cheat sheet · https://pcornel.dk/topic.php?topic=3202
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 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
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
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Profile | Active policy context | does not prove flow match |
| Rule | Configured condition/action | presence is not match |
| Flow tuple | Traffic being evaluated | must match direction/addresses/ports |
| Decision/log | Observed allow/block | local 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