Skip to content

Instantly share code, notes, and snippets.

@LaurenceJJones
Last active November 30, 2022 13:27
Show Gist options
  • Save LaurenceJJones/c1cd678afa4f9dae9474d7b6c22412d7 to your computer and use it in GitHub Desktop.
Save LaurenceJJones/c1cd678afa4f9dae9474d7b6c22412d7 to your computer and use it in GitHub Desktop.
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