From: Victor Julien Date: Mon, 18 Jan 2021 09:38:54 +0000 (+0100) Subject: tests: add bug 2511 test X-Git-Tag: suricata-6.0.4~187 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f45c41bfc2fbade14ffebeb1fed98ee6fbed2cea;p=thirdparty%2Fsuricata-verify.git tests: add bug 2511 test --- diff --git a/tests/bug-2511/1.rules b/tests/bug-2511/1.rules new file mode 100644 index 000000000..7f308c0a4 --- /dev/null +++ b/tests/bug-2511/1.rules @@ -0,0 +1 @@ +alert http any any -> any any (msg:"SURICATA HTTP too many layers"; flow:to_server,established; app-layer-event:http.too_many_encoding_layers; flowint:http.anomaly.count,+,1; sid:1; rev:1;) diff --git a/tests/bug-2511/response_identity_identity_gzip_identity_gzip_gzip.pcap b/tests/bug-2511/response_identity_identity_gzip_identity_gzip_gzip.pcap new file mode 100644 index 000000000..0a25f6265 Binary files /dev/null and b/tests/bug-2511/response_identity_identity_gzip_identity_gzip_gzip.pcap differ diff --git a/tests/bug-2511/test.yaml b/tests/bug-2511/test.yaml new file mode 100644 index 000000000..cc2507150 --- /dev/null +++ b/tests/bug-2511/test.yaml @@ -0,0 +1,16 @@ +requires: + features: + - HAVE_LIBJANSSON + +checks: + - filter: + count: 1 + match: + event_type: alert + - filter: + count: 1 + match: + event_type: alert + alert.signature_id: 1 + +