A global Windows Firewall setting was changed (not a specific rule).
Global firewall disable or profile switching to expose the host. Attackers may switch from Domain profile (stricter) to Public profile (more permissive) or simply disable the firewall.
Alert: firewall state changed to OFF for any profile. Alert: profile changed to less restrictive settings.
SubjectUserNameTargetUserNameLogonTypeIpAddressWorkstationName | Tactic | Technique |
|---|---|
| Defense Evasion | Disable or Modify System Firewall (T1562.004) |
Starting points — adapt the log source, projected fields and thresholds for your environment.
SecurityEvent
| where EventID == 4950 // A Windows Firewall setting has changed
| project TimeGenerated, Computer, SubjectUserName, TargetUserName, LogonType, IpAddress, WorkstationName
| sort by TimeGenerated desc
index=* sourcetype="WinEventLog:Security" EventCode=4950
| stats count earliest(_time) as first_seen latest(_time) as last_seen by ComputerName
| sort - count `# A Windows Firewall setting has changed — add EventData fields: SubjectUserName, TargetUserName, LogonType, IpAddress`
A Windows Firewall setting has changed. A global Windows Firewall setting was changed (not a specific rule).
Event 4950 is written to the Security channel by Microsoft-Windows-Security-Auditing. Advanced Audit Policy — enable the 'Windows Firewall' subcategory (Success and/or Failure).
Event 4950 is associated with: Disable or Modify System Firewall (T1562.004).
Alert: firewall state changed to OFF for any profile. Alert: profile changed to less restrictive settings.