]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
smtp-starttls: test logging of smtp txn after startssl
authorJason Ish <jason.ish@oisf.net>
Thu, 11 Nov 2021 22:44:25 +0000 (16:44 -0600)
committerJason Ish <jason.ish@oisf.net>
Fri, 14 Jan 2022 21:18:28 +0000 (15:18 -0600)
For ticket https://redmine.openinfosecfoundation.org/issues/4817.

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

diff --git a/tests/smtp-startssl/README.md b/tests/smtp-startssl/README.md
new file mode 100644 (file)
index 0000000..1f879f7
--- /dev/null
@@ -0,0 +1,4 @@
+Tests that an SMTP transaction with STARTTLS still logs an SMTP event, even if
+no email is present.
+
+Ticket: https://redmine.openinfosecfoundation.org/issues/4817
diff --git a/tests/smtp-startssl/input.pcap b/tests/smtp-startssl/input.pcap
new file mode 100644 (file)
index 0000000..9a1046a
Binary files /dev/null and b/tests/smtp-startssl/input.pcap differ
diff --git a/tests/smtp-startssl/test.yaml b/tests/smtp-startssl/test.yaml
new file mode 100644 (file)
index 0000000..9a36190
--- /dev/null
@@ -0,0 +1,16 @@
+requires:
+  min-version: 7
+
+args:
+- -k none
+
+checks:
+  - filter:
+      count: 1
+      match:
+        event_type: smtp
+  - filter:
+      count: 1
+      match:
+        smtp.helo: "desktop.unx.ca"
+        not-has-key: "email"