From: Philippe Antoine Date: Sat, 30 Mar 2024 14:03:48 +0000 (+0100) Subject: smtp: adds test with data command being rejected X-Git-Tag: suricata-6.0.20~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1845%2Fhead;p=thirdparty%2Fsuricata-verify.git smtp: adds test with data command being rejected Ticket: 6906 --- 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 index 000000000..551673c69 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 index 000000000..d5c8e10a2 --- /dev/null +++ b/tests/smtp-data-rejected/README.md @@ -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 index 000000000..fd1c840be --- /dev/null +++ b/tests/smtp-data-rejected/suricata.yaml @@ -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 index 000000000..f6260018e --- /dev/null +++ b/tests/smtp-data-rejected/test.yaml @@ -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