]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
Add test for TLS 1.3 draft 14
authorMats Klepsland <mats.klepsland@gmail.com>
Thu, 1 Nov 2018 22:15:59 +0000 (23:15 +0100)
committerVictor Julien <victor@inliniac.net>
Fri, 8 Feb 2019 10:48:56 +0000 (11:48 +0100)
tests/tls13-draft14/README.md [new file with mode: 0644]
tests/tls13-draft14/suricata.yaml [new file with mode: 0644]
tests/tls13-draft14/test.yaml [new file with mode: 0644]
tests/tls13-draft14/tls13_draft14.pcapng [new file with mode: 0644]

diff --git a/tests/tls13-draft14/README.md b/tests/tls13-draft14/README.md
new file mode 100644 (file)
index 0000000..24e6703
--- /dev/null
@@ -0,0 +1,8 @@
+Simple test that tests a TLS 1.3 draft 14 pcap file from Wireshark issue
+tracker [1].
+
+PCAP URL:
+  https://bugs.wireshark.org/bugzilla/attachment.cgi?id=14839
+
+[1] "12779 - Add TLS 1.3 support"
+https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=12779
diff --git a/tests/tls13-draft14/suricata.yaml b/tests/tls13-draft14/suricata.yaml
new file mode 100644 (file)
index 0000000..7a29ad4
--- /dev/null
@@ -0,0 +1,25 @@
+%YAML 1.1
+---
+
+include: ../../etc/suricata-3.1.2.yaml
+
+outputs:
+  - eve-log:
+      enabled: yes
+      filetype: regular #regular|syslog|unix_dgram|unix_stream|redis
+      filename: eve.json
+      types:
+        - tls:
+            extended: yes     # enable this for extended logging information
+
+app-layer:
+  protocols:
+    tls:
+      enabled: yes
+      detection-ports:
+        dp: 443
+
+      # Generate JA3 fingerprint from client hello
+      ja3-fingerprints: yes
+
+      encrypt-handling: bypass
diff --git a/tests/tls13-draft14/test.yaml b/tests/tls13-draft14/test.yaml
new file mode 100644 (file)
index 0000000..84a1045
--- /dev/null
@@ -0,0 +1,19 @@
+min-version: 4.1.0
+
+requires:
+  features:
+    - HAVE_LIBJANSSON
+    - HAVE_NSS
+
+args:
+  - -k none
+
+checks:
+
+  - filter:
+      count: 1
+      match:
+        event_type: tls
+        tls.version: "TLS 1.3 draft-<16"
+        tls.ja3.hash: "65825469c473e48f3ee2571129256ab0"
+        tls.ja3.string: "772,49195-49199-52393-52392-49196-49200-49162-49161-49171-49172-51-57-47-53-10,0-23-65281-10-11-35-13172-16-5-65282-40-13,23-24-25-256-257-258-259-260,0"
diff --git a/tests/tls13-draft14/tls13_draft14.pcapng b/tests/tls13-draft14/tls13_draft14.pcapng
new file mode 100644 (file)
index 0000000..4ffa752
Binary files /dev/null and b/tests/tls13-draft14/tls13_draft14.pcapng differ