Firewall blocked an application from accepting connections. Application and Protocol are key.
Backdoor or reverse shell listener being blocked by firewall. Attacker may subsequently disable firewall (5025) to resolve this.
Alert: unexpected applications being blocked. Correlate with 5025 (firewall stop) that may follow.
SubjectUserNameTargetUserNameLogonTypeIpAddressWorkstationName Starting points — adapt the log source, projected fields and thresholds for your environment.
SecurityEvent
| where EventID == 5031 // Windows Firewall blocked an application from accepting incoming connections
| project TimeGenerated, Computer, SubjectUserName, TargetUserName, LogonType, IpAddress, WorkstationName
| sort by TimeGenerated desc
index=* sourcetype="WinEventLog:Security" EventCode=5031
| stats count earliest(_time) as first_seen latest(_time) as last_seen by ComputerName
| sort - count `# Windows Firewall blocked an application from accepting incoming connections — add EventData fields: SubjectUserName, TargetUserName, LogonType, IpAddress`
Windows Firewall blocked an application from accepting incoming connections. Firewall blocked an application from accepting connections. Application and Protocol are key.
Event 5031 is written to the Security channel by Microsoft-Windows-Security-Auditing. Advanced Audit Policy — enable the 'Windows Firewall' subcategory (Success and/or Failure).
Alert: unexpected applications being blocked. Correlate with 5025 (firewall stop) that may follow.