Pcornel
Security · Windows Security

Microsoft Defender Firewall

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

Back to the Topic

Answer

Microsoft Defender Firewall is the Windows host firewall for domain, private and public profiles, using application/service, address, port, interface and IPsec-aware rules with local and centrally managed policy precedence.

Remember

  • Firewall service running ≠ intended profile and rules enforced.
  • Network firewall permit ≠ Windows host firewall permit.
  • Configured or assigned policy ≠ resultant policy and effective runtime state.
  • Feature healthy ≠ protected workload or absence of compromise.

First checks

  • Get-NetFirewallProfile | ft Name,Enabled,DefaultInboundAction,LogAllowed,LogBlocked — profiles
  • Get-NetFirewallRule -Enabled True -Direction Inbound | ft DisplayName,Profile,Action — inbound rules
  • Get-NetConnectionProfile — network category

Verify in this order

packet → profile rules → allow/block

Where it usually breaks

First mismatch in platform/workload identity → desired configuration → management/control plane → runtime enforcement → telemetry → workload/resource outcome; preserve identity/policy/pre-state before mutation.

Windows Security → Microsoft Defender Firewall proof map

BoundaryEstablishDoes not establish
ScopeExact host, role, build/kernel, identity, workload and expected controlDoes not prove policy receipt or effective runtime state
Effective stateResultant/loaded policy, precedence, mode, labels/rules/keys and active services/kernel controlsConfiguration presence does not prove enforcement
Runtime evidenceCorrelated events/audit, process/token/credential, packet/syscall and workload resultOne event, clean status or allow/deny does not prove complete security
ClosureOriginal allowed/denied workload works, unsafe state is removed and recovery/regression passCommit, restart, block or compliance result alone is not closure

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

Confirmation

Confirm action

Continue?