]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
smtp: adds test with data command being rejected 1845/head
authorPhilippe Antoine <pantoine@oisf.net>
Sat, 30 Mar 2024 14:03:48 +0000 (15:03 +0100)
committerVictor Julien <victor@inliniac.net>
Tue, 21 May 2024 15:22:06 +0000 (17:22 +0200)
Ticket: 6906

tests/smtp-data-rejected/10.7.29.101_49898-178.63.41.150_25.pcap [new file with mode: 0644]
tests/smtp-data-rejected/README.md [new file with mode: 0644]
tests/smtp-data-rejected/suricata.yaml [new file with mode: 0644]
tests/smtp-data-rejected/test.yaml [new file with mode: 0644]

diff --git a/tests/smtp-data-rejected/10.7.29.101_49898-178.63.41.150_25.pcap b/tests/smtp-data-rejected/10.7.29.101_49898-178.63.41.150_25.pcap
new file mode 100644 (file)
index 0000000..551673c
Binary files /dev/null and b/tests/smtp-data-rejected/10.7.29.101_49898-178.63.41.150_25.pcap differ
diff --git a/tests/smtp-data-rejected/README.md b/tests/smtp-data-rejected/README.md
new file mode 100644 (file)
index 0000000..d5c8e10
--- /dev/null
@@ -0,0 +1,11 @@
+# Test Description
+
+Test that we handle SMTP DATA rejection even if the server advertised pipelining.
+
+## PCAP
+
+From QAlab TLPW
+
+## Related issues
+
+https://redmine.openinfosecfoundation.org/issues/6906
diff --git a/tests/smtp-data-rejected/suricata.yaml b/tests/smtp-data-rejected/suricata.yaml
new file mode 100644 (file)
index 0000000..fd1c840
--- /dev/null
@@ -0,0 +1,9 @@
+%YAML 1.1
+---
+
+outputs:
+  - eve-log:
+      enabled: yes
+      types:
+        - files:
+            force-hash: [sha256]
diff --git a/tests/smtp-data-rejected/test.yaml b/tests/smtp-data-rejected/test.yaml
new file mode 100644 (file)
index 0000000..f626001
--- /dev/null
@@ -0,0 +1,13 @@
+requires:
+  min-version: 8
+
+# disables checksum verification
+args:
+  - -k none
+
+checks:
+  - filter:
+      count: 1
+      match:
+        event_type: fileinfo
+        fileinfo.sha256: 2f4e7dba21a31bde1192ca03b489a9bd47281a28e206b3dcf245082a491e8e0a