--- /dev/null
+alert tcp any any -> any any (tcp.mss:<536; sid:1234; rev:5;)
--- /dev/null
+requires:
+ min-version: 5.0.0
+ features:
+ - HAVE_LIBJANSSON
+
+checks:
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 1234
+
--- /dev/null
+#!/usr/bin/env python
+from scapy.all import *
+
+pkts = []
+
+pkts += Ether(dst='ff:ff:ff:ff:ff:ff', src='00:01:02:03:04:05')/ \
+ Dot1Q(vlan=6)/ \
+ IP(dst='255.255.255.255', src='192.168.0.1')/TCP(dport=80,flags="S",options=[("NOP",None),("MSS", 8)])
+
+wrpcap('input.pcap', pkts)
--- /dev/null
+alert udp any any -> any any (udp.hdr; content:"|00 08|"; offset:4; depth:2; sid:1234;)
--- /dev/null
+requires:
+ min-version: 5.0.0
+ features:
+ - HAVE_LIBJANSSON
+
+checks:
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 1234
+
--- /dev/null
+#!/usr/bin/env python
+from scapy.all import *
+
+pkts = []
+
+pkts += Ether(dst='ff:ff:ff:ff:ff:ff', src='00:01:02:03:04:05')/ \
+ Dot1Q(vlan=6)/ \
+ IP(dst='255.255.255.255', src='192.168.0.1')/UDP(dport=80)
+
+wrpcap('input.pcap', pkts)