]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
smtp: test protocol detection after TLS from client 2246/head
authorPhilippe Antoine <pantoine@oisf.net>
Thu, 19 Dec 2024 10:27:10 +0000 (11:27 +0100)
committerVictor Julien <victor@inliniac.net>
Tue, 21 Jan 2025 17:36:33 +0000 (18:36 +0100)
Ticket: 7469

tests/smtp-tls-protodetect/README.md [new file with mode: 0644]
tests/smtp-tls-protodetect/input.pcap [new file with mode: 0644]
tests/smtp-tls-protodetect/test.yaml [new file with mode: 0644]

diff --git a/tests/smtp-tls-protodetect/README.md b/tests/smtp-tls-protodetect/README.md
new file mode 100644 (file)
index 0000000..53113b7
--- /dev/null
@@ -0,0 +1,11 @@
+# Test Description
+
+Test SMTP recognition from probing parser when client starts TLS
+
+## PCAP
+
+extract from QA TLPW1
+
+## Related issues
+
+https://redmine.openinfosecfoundation.org/issues/7469
diff --git a/tests/smtp-tls-protodetect/input.pcap b/tests/smtp-tls-protodetect/input.pcap
new file mode 100644 (file)
index 0000000..e584ef0
Binary files /dev/null and b/tests/smtp-tls-protodetect/input.pcap differ
diff --git a/tests/smtp-tls-protodetect/test.yaml b/tests/smtp-tls-protodetect/test.yaml
new file mode 100644 (file)
index 0000000..2430a55
--- /dev/null
@@ -0,0 +1,14 @@
+requires:
+  min-version: 8
+
+# disables checksum verification
+args:
+  - -k none
+
+checks:
+  - filter:
+      count: 1
+      match:
+        event_type: flow
+        app_proto: tls
+        app_proto_tc: smtp