--- /dev/null
+alert tcp any any -> any any (msg:"TCP window size"; window:30336; sid:1;)
+alert tcp any any -> any any (msg:"TCP window size"; tcp.window:!1024; sid:2;)
\ No newline at end of file
--- /dev/null
+requires:
+ min-version: 8.0
+ pcap: false
+
+args:
+ - --engine-analysis
+
+checks:
+- filter:
+ filename: rules.json
+ count: 1
+ match:
+ id: 1
+ lists.packet.matches[0].name: "tcp.window"
+ lists.packet.matches[0].window.size: 30336
+ lists.packet.matches[0].window.negated: false
+
+- filter:
+ filename: rules.json
+ count: 1
+ match:
+ id: 2
+ lists.packet.matches[0].name: "tcp.window"
+ lists.packet.matches[0].window.size: 1024
+ lists.packet.matches[0].window.negated: true
\ No newline at end of file