From: Mats Klepsland Date: Thu, 1 Nov 2018 22:18:04 +0000 (+0100) Subject: Add test for TLS 1.3 draft 18 X-Git-Tag: suricata-6.0.4~486 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3ddf3c98c59df22b1dffec4cda23ba59e1ceccd;p=thirdparty%2Fsuricata-verify.git Add test for TLS 1.3 draft 18 --- diff --git a/tests/tls13-draft18/README.md b/tests/tls13-draft18/README.md new file mode 100644 index 000000000..8803a40cb --- /dev/null +++ b/tests/tls13-draft18/README.md @@ -0,0 +1,8 @@ +Simple test that tests a TLS 1.3 draft 18 pcap file from Wireshark issue +tracker [1]. + +PCAP URL: + https://bugs.wireshark.org/bugzilla/attachment.cgi?id=15156 + +[1] "12779 - Add TLS 1.3 support" +https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=12779 diff --git a/tests/tls13-draft18/suricata.yaml b/tests/tls13-draft18/suricata.yaml new file mode 100644 index 000000000..7a29ad442 --- /dev/null +++ b/tests/tls13-draft18/suricata.yaml @@ -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-draft18/test.yaml b/tests/tls13-draft18/test.yaml new file mode 100644 index 000000000..f2912a6c5 --- /dev/null +++ b/tests/tls13-draft18/test.yaml @@ -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-18" + tls.ja3.hash: "23d254f72096d25c350e4a4a792f4948" + tls.ja3.string: "771,4865-4866-4867-49195-49199-158-49196-49200-159-52393-52392-52244-52243-49161-49187-49171-49191-51-103-49162-49188-49172-49192-57-107-156-157-47-60-53-61-10,65281-23-35-13-11-40-45-43-10,29-23-24,0" diff --git a/tests/tls13-draft18/tls13_draft18.pcapng b/tests/tls13-draft18/tls13_draft18.pcapng new file mode 100644 index 000000000..c8100f0c7 Binary files /dev/null and b/tests/tls13-draft18/tls13_draft18.pcapng differ