--- /dev/null
+# Description
+
+Check presence and value of tx_id and tx_cnt in events.
+
+# PCAP
+
+The pcap contains smb traffic with a smb share to match on
--- /dev/null
+alert ssh $HOME_NET any -> any any (msg:"pcre without content and no match"; pcre:"/rabbit/"; sid:1; rev:1;)
+alert smb $HOME_NET any -> any any (msg:"smb share content with match"; smb.share; content:"C"; sid:2; rev:1;)
--- /dev/null
+requires:
+ min-version: 8
+
+pcap: ../smb-filename/input.pcap
+
+checks:
+ - filter:
+ count: 29
+ match:
+ event_type: flow
+ - filter:
+ count: 1
+ match:
+ event_type: flow
+ src_port: 49455
+ flow.tx_cnt: 22
+ - filter:
+ count: 1
+ match:
+ event_type: flow
+ src_port: 49452
+ flow.tx_cnt: 43