]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
tests: add tls fragmentation test
authorVictor Julien <victor@inliniac.net>
Thu, 11 Aug 2022 19:03:19 +0000 (21:03 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 21 Sep 2022 04:54:22 +0000 (06:54 +0200)
tests/tls-client-hello-frag-01/dump_mtu300.pcap [new file with mode: 0644]
tests/tls-client-hello-frag-01/test.rules [new file with mode: 0644]
tests/tls-client-hello-frag-01/test.yaml [new file with mode: 0644]

diff --git a/tests/tls-client-hello-frag-01/dump_mtu300.pcap b/tests/tls-client-hello-frag-01/dump_mtu300.pcap
new file mode 100644 (file)
index 0000000..299850e
Binary files /dev/null and b/tests/tls-client-hello-frag-01/dump_mtu300.pcap differ
diff --git a/tests/tls-client-hello-frag-01/test.rules b/tests/tls-client-hello-frag-01/test.rules
new file mode 100644 (file)
index 0000000..585aec8
--- /dev/null
@@ -0,0 +1 @@
+alert tls any any -> any any (tls.sni; content:"google"; sid:1;)
diff --git a/tests/tls-client-hello-frag-01/test.yaml b/tests/tls-client-hello-frag-01/test.yaml
new file mode 100644 (file)
index 0000000..292d2b8
--- /dev/null
@@ -0,0 +1,13 @@
+args:
+- -k none
+checks:
+  - filter:
+      count: 1
+      match:
+        event_type: alert
+        alert.signature_id: 1
+  - filter:
+      count: 1
+      match:
+        event_type: tls
+        tls.sni: www.google.com