From: Jeff Lucovsky Date: Tue, 6 Oct 2020 12:24:48 +0000 (-0400) Subject: bug-3616: New test with mixed file_data/transform rules X-Git-Tag: suricata-6.0.4~224 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73434f0921a018806ebe04b5dda784764298f30c;p=thirdparty%2Fsuricata-verify.git bug-3616: New test with mixed file_data/transform rules --- diff --git a/tests/bug-3616/input.pcap b/tests/bug-3616/input.pcap new file mode 100644 index 000000000..cc069dc98 Binary files /dev/null and b/tests/bug-3616/input.pcap differ diff --git a/tests/bug-3616/input.rules b/tests/bug-3616/input.rules new file mode 100644 index 000000000..c86ebeff0 --- /dev/null +++ b/tests/bug-3616/input.rules @@ -0,0 +1,3 @@ +alert http any any -> any any (msg:"CANARY TEST #1"; file_data; content:"commonly-accepted commonly-used"; sid:1; rev:1;) +alert http any any -> any any (msg:"strip_whitespace HTTP test #1"; flow:established; file_data; strip_whitespace; content:"bricks-and-clicks"; sid:2; rev:1;) +alert tcp any any -> any any (msg:"strip_whitespace TCP test #1"; flow:established; file_data; strip_whitespace; content:"inventedtheterm"; sid:3; rev:1;) diff --git a/tests/bug-3616/test.yaml b/tests/bug-3616/test.yaml new file mode 100644 index 000000000..546ecc5ff --- /dev/null +++ b/tests/bug-3616/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