5 events · On by default
Windows Defender Firewall
Microsoft-Windows-Windows Firewall With Advanced Security/Firewall
Firewall rule additions, changes and deletions, and profile setting changes such as turning the firewall off.
Why it matters
Attackers open ports for RDP, WinRM or a backdoor with netsh or PowerShell. Rule-change events record the rule, the program and the port.
All Firewall events
Event Viewer path
Applications and Services Logs > Microsoft > Windows > Windows Firewall With Advanced Security > Firewall
Collect this log
wevtutil epl "Microsoft-Windows-Windows Firewall With Advanced Security/Firewall" "C:\IR\Microsoft-Windows-Windows Firewall With Advanced Security%4Firewall.evtx"