Skip to content

Commit 1dac143

Browse files
committed
Update: grok regex update for firewall attack
1 parent c494756 commit 1dac143

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

watchguard_firebox/assets/logs/watchguard-firebox.yaml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -296,26 +296,25 @@ pipeline:
296296
enabled: true
297297
source: message
298298
samples:
299-
- SYN flood attack against 10.10.10.10 from 10.10.10.10 detected.
300-
500 SYN packets dropped since last alarm.
299+
- UDP flood attack against 10.10.10.10 from 10.10.10.10 detected.
300+
500 UDP flood packets dropped since last alarm. (udp_flood_dos)
301301
- IPv4 source route attack from 10.10.10.10 detected.
302302
- IP scan attack against 10.10.10.10 from 10.10.10.10 detected.
303-
- "DDOS against server 10.10.10.10 detected. "
303+
- DDOS against server 10.10.10.10 detected. (ddos_attack_dest_dos)
304304
- DDOS from client 10.10.10.10 detected.
305305
grok:
306306
supportRules: ""
307-
matchRules: >
307+
matchRules: >-
308308
parse_rule_30000152_to_30000159_30000162_to_30000166
309309
%{regex(".*(?= attack)"):attack_type} attack (against
310310
%{ip:network.destination.ip} )?from %{ip:network.client.ip}
311311
detected.( %{integer:drop_packet_count} %{regex(".*(?=
312-
packets)"):drop_packet_type} packets dropped since last alarm.)?
313-
314-
315-
parse_rule_30000161 %{regex(".*(?= from)"):attack_type} from client %{ip:network.client.ip} detected.
312+
packets)"):drop_packet_type} packets dropped since last alarm.)?(
313+
(%{notSpace}))?
316314
315+
parse_rule_30000161 %{regex(".*(?= from)"):attack_type} from client %{ip:network.client.ip} detected.( (%{notSpace}))?
317316
318-
parse_rule_30000160 %{regex(".*(?= against)"):attack_type} against server %{ip:network.destination.ip} detected.
317+
parse_rule_30000160 %{regex(".*(?= against)"):attack_type} against server %{ip:network.destination.ip} detected.( (%{notSpace}))?
319318
- type: pipeline
320319
name: Processing of firewall alarm events
321320
enabled: true

watchguard_firebox/assets/logs/watchguard-firebox_tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ tests:
115115
- "source:LOGS_SOURCE"
116116
timestamp: 1744104397000
117117
-
118-
sample: "<142>Apr 2 18:47:10 WatchGuard-Firebox TEST (2025-04-08T09:26:37) test: msg_id=\"3000-0160\" DDOS against server 10.0.1.34 detected."
118+
sample: "<142>Apr 2 18:47:10 WatchGuard-Firebox TEST (2025-04-08T09:26:37) test: msg_id=\"3000-0160\" DDOS against server 10.10.10.10 detected. (ddos_attack_dest_dos)"
119119
result:
120120
custom:
121121
attack_type: "DDOS"
@@ -130,7 +130,7 @@ tests:
130130
hostname: "WatchGuard-Firebox"
131131
prival: 142
132132
timestamp: 1744104397000
133-
message: "DDOS against server 10.0.1.34 detected."
133+
message: "DDOS against server 10.10.10.10 detected. (ddos_attack_dest_dos)"
134134
service: "firewall"
135135
tags:
136136
- "source:LOGS_SOURCE"

0 commit comments

Comments
 (0)