]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
tests: add empty TCP SACK test
authorVictor Julien <victor@inliniac.net>
Thu, 7 Nov 2019 09:23:31 +0000 (10:23 +0100)
committerVictor Julien <victor@inliniac.net>
Thu, 7 Nov 2019 09:27:43 +0000 (10:27 +0100)
tests/tcp-empty-sack/tcp-opt.pcap [new file with mode: 0644]
tests/tcp-empty-sack/test.rules [new file with mode: 0644]
tests/tcp-empty-sack/test.yaml [new file with mode: 0644]

diff --git a/tests/tcp-empty-sack/tcp-opt.pcap b/tests/tcp-empty-sack/tcp-opt.pcap
new file mode 100644 (file)
index 0000000..38dff5d
Binary files /dev/null and b/tests/tcp-empty-sack/tcp-opt.pcap differ
diff --git a/tests/tcp-empty-sack/test.rules b/tests/tcp-empty-sack/test.rules
new file mode 100644 (file)
index 0000000..eb6e981
--- /dev/null
@@ -0,0 +1 @@
+alert pkthdr any any -> any any (msg:"SURICATA TCP option invalid length"; decode-event:tcp.opt_invalid_len; classtype:protocol-command-decode; sid:2200036; rev:2;)
diff --git a/tests/tcp-empty-sack/test.yaml b/tests/tcp-empty-sack/test.yaml
new file mode 100644 (file)
index 0000000..1650b7d
--- /dev/null
@@ -0,0 +1,10 @@
+requires:
+  features:
+    - HAVE_LIBJANSSON
+
+checks:
+  - filter:
+      count: 0
+      match:
+        event_type: alert
+        alert.signature_id: 2200036