From: Philippe Antoine Date: Tue, 20 Jun 2023 10:02:57 +0000 (+0200) Subject: Adds test about http event on chunk extension X-Git-Tag: suricata-7.0.0~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1256%2Fhead;p=thirdparty%2Fsuricata-verify.git Adds test about http event on chunk extension --- diff --git a/tests/http-event-chunk/README.md b/tests/http-event-chunk/README.md new file mode 100644 index 000000000..78d4e2dc2 --- /dev/null +++ b/tests/http-event-chunk/README.md @@ -0,0 +1,8 @@ +# Description + +Test http event on chunk extension +https://redmine.openinfosecfoundation.org/issues/6159 + +# PCAP + +The pcap comes from running htptopcap on data from https://github.com/OISF/libhtp/issues/83 diff --git a/tests/http-event-chunk/input.pcap b/tests/http-event-chunk/input.pcap new file mode 100644 index 000000000..0b9c0564b Binary files /dev/null and b/tests/http-event-chunk/input.pcap differ diff --git a/tests/http-event-chunk/test.rules b/tests/http-event-chunk/test.rules new file mode 100644 index 000000000..8f19e50a6 --- /dev/null +++ b/tests/http-event-chunk/test.rules @@ -0,0 +1 @@ +alert http any any -> any any (msg:"SURICATA HTTP request chunk extension"; flow:established,to_server; app-layer-event:http.request_chunk_extension; classtype:protocol-command-decode; sid:2221054; rev:1;) diff --git a/tests/http-event-chunk/test.yaml b/tests/http-event-chunk/test.yaml new file mode 100644 index 000000000..d74346ce6 --- /dev/null +++ b/tests/http-event-chunk/test.yaml @@ -0,0 +1,12 @@ +requires: + min-version: 7 + +args: + - -k none + +checks: + - filter: + count: 1 + match: + event_type: alert + alert.signature_id: 2221054