From: Philippe Antoine Date: Thu, 30 May 2024 09:28:58 +0000 (+0200) Subject: smtp: adds test with To field having quotes, commas... X-Git-Tag: suricata-6.0.20~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1882%2Fhead;p=thirdparty%2Fsuricata-verify.git smtp: adds test with To field having quotes, commas... Ticket: 3487 --- diff --git a/tests/smtp-to-comma/10.7.29.101_49898-178.63.41.150_25.pcap b/tests/smtp-to-comma/10.7.29.101_49898-178.63.41.150_25.pcap new file mode 100644 index 000000000..726b18f7f Binary files /dev/null and b/tests/smtp-to-comma/10.7.29.101_49898-178.63.41.150_25.pcap differ diff --git a/tests/smtp-to-comma/README.md b/tests/smtp-to-comma/README.md new file mode 100644 index 000000000..9aa6380cd --- /dev/null +++ b/tests/smtp-to-comma/README.md @@ -0,0 +1,11 @@ +# Test Description + +Test that we log SMTP `To` field right if there are quotes and commas, and spaces + +## PCAP + +smtp-data-rejected/10.7.29.101_49898-178.63.41.150_25.pcap modified by hand + +## Related issues + +https://redmine.openinfosecfoundation.org/issues/3487 diff --git a/tests/smtp-to-comma/test.yaml b/tests/smtp-to-comma/test.yaml new file mode 100644 index 000000000..007181843 --- /dev/null +++ b/tests/smtp-to-comma/test.yaml @@ -0,0 +1,15 @@ +requires: + min-version: 8 + +# disables checksum verification +args: + - -k none + +checks: + - filter: + count: 1 + match: + event_type: smtp + email.cc[0]: "\"jam,abrakadabra.ch\" " + # do not log empty fields + not-has-key: email.to