Last active
November 30, 2022 13:27
-
-
Save LaurenceJJones/c1cd678afa4f9dae9474d7b6c22412d7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
onsuccess: next_stage | |
filter: "evt.Parsed.program == 'windows-firewall' and evt.Parsed.message contains ' DROP TCP ' and evt.Parsed.message contains ' RECEIVE'" | |
name: crowdsecurity/windows-firewall-logs | |
description: "Parse windows firewall drop logs" | |
grok: | |
pattern: "%{TIMESTAMP_ISO8601:date} DROP TCP %{IP:src_ip} %{IP:dst_ip} %{INT:src_port} %{INT:dst_port} %{INT:size} %{WORD:flags} %{INT:tcpsyn} %{INT:tcpack} %{INT:window} - - - RECEIVE( %{INT:pid})?" | |
apply_on: message | |
statics: | |
- meta: service | |
value: tcp | |
- meta: log_type | |
value: iptables_drop | |
- meta: source_ip | |
expression: "evt.Parsed.src_ip" | |
- target: evt.StrTime | |
expression: evt.Parsed.date |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment