From: Jeff Lucovsky Date: Thu, 15 Oct 2020 12:46:23 +0000 (-0400) Subject: tests: Add SMTP tests for issue 3616 X-Git-Tag: suricata-6.0.4~223 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1da64da19cecae54966487dac9ab56049a6d431;p=thirdparty%2Fsuricata-verify.git tests: Add SMTP tests for issue 3616 --- diff --git a/tests/bug-3616-smtp/input.pcap b/tests/bug-3616-smtp/input.pcap new file mode 100644 index 000000000..931b43b3b Binary files /dev/null and b/tests/bug-3616-smtp/input.pcap differ diff --git a/tests/bug-3616-smtp/input.rules b/tests/bug-3616-smtp/input.rules new file mode 100644 index 000000000..eead62c6f --- /dev/null +++ b/tests/bug-3616-smtp/input.rules @@ -0,0 +1,3 @@ +alert smtp any any -> any any (msg:"SMTP CANARY TEST"; flow: established, to_server; file_data; content:"New code tooltip display"; sid:1;) +alert smtp any any -> any any (msg:"SMTP strip_whitespace test #1"; flow:established, to_server; file_data; strip_whitespace; content:"Version4.9.9.0"; sid:2;) +alert smtp any any -> any any (msg:"SMTP strip_whitespace test #2"; flow:established, to_server; file_data; strip_whitespace; content:"SupportforlatestMingwcompilersystembuilds"; sid:3;) diff --git a/tests/bug-3616-smtp/test.yaml b/tests/bug-3616-smtp/test.yaml new file mode 100644 index 000000000..546ecc5ff --- /dev/null +++ b/tests/bug-3616-smtp/test.yaml @@ -0,0 +1,19 @@ +requires: + min-version: 6 + +checks: + - filter: + count: 1 + match: + event_type: alert + alert.signature_id: 1 + - filter: + count: 1 + match: + event_type: alert + alert.signature_id: 2 + - filter: + count: 1 + match: + event_type: alert + alert.signature_id: 3