--- /dev/null
+alert icmp any any -> any any (itype:8; sid:1;)
+alert icmp any any -> any any (itype:8; detection_filter:track by_flow, count 1, seconds 3600; sid:2;)
+alert icmp any any -> any any (itype:8; detection_filter:track by_flow, count 2, seconds 3600; sid:3;)
+alert icmp any any -> any any (itype:8; detection_filter:track by_flow, count 4, seconds 3600; sid:4;)
+alert icmp any any -> any any (itype:8; detection_filter:track by_flow, count 7, seconds 3600; sid:5;)
+alert icmp any any -> any any (itype:8; detection_filter:track by_flow, count 8, seconds 3600; sid:6;)
--- /dev/null
+requires:
+ min-version: 8
+
+pcap: ../threshold-rule-flow/icmp.pcap
+
+checks:
+ - filter:
+ count: 8
+ match:
+ event_type: alert
+ alert.signature_id: 1
+ - filter:
+ count: 7
+ match:
+ event_type: alert
+ alert.signature_id: 2
+ - filter:
+ count: 6
+ match:
+ event_type: alert
+ alert.signature_id: 3
+ - filter:
+ count: 4
+ match:
+ event_type: alert
+ alert.signature_id: 4
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 5
+ - filter:
+ count: 0
+ match:
+ event_type: alert
+ alert.signature_id: 6
--- /dev/null
+alert icmp any any -> any any (itype:8; sid:1;)
+alert icmp any any -> any any (itype:8; detection_filter:track by_src, count 1, seconds 3600; sid:2;)
+alert icmp any any -> any any (itype:8; detection_filter:track by_src, count 2, seconds 3600; sid:3;)
+alert icmp any any -> any any (itype:8; detection_filter:track by_src, count 4, seconds 3600; sid:4;)
+alert icmp any any -> any any (itype:8; detection_filter:track by_src, count 7, seconds 3600; sid:5;)
+alert icmp any any -> any any (itype:8; detection_filter:track by_src, count 8, seconds 3600; sid:6;)
--- /dev/null
+requires:
+ min-version: 8
+
+pcap: ../threshold-rule-flow/icmp.pcap
+
+checks:
+ - filter:
+ count: 8
+ match:
+ event_type: alert
+ alert.signature_id: 1
+ - filter:
+ count: 7
+ match:
+ event_type: alert
+ alert.signature_id: 2
+ - filter:
+ count: 6
+ match:
+ event_type: alert
+ alert.signature_id: 3
+ - filter:
+ count: 4
+ match:
+ event_type: alert
+ alert.signature_id: 4
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 5
+ - filter:
+ count: 0
+ match:
+ event_type: alert
+ alert.signature_id: 6