From: Angelo Mirabella Date: Wed, 17 Jun 2020 06:33:21 +0000 (+0100) Subject: tests: add test for http raw header X-Git-Tag: suricata-6.0.4~285 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2b7f2b3c8b12b53727653073436e71aaa84561a;p=thirdparty%2Fsuricata-verify.git tests: add test for http raw header --- diff --git a/tests/http-raw-header/README.md b/tests/http-raw-header/README.md new file mode 100644 index 000000000..89ce12ae2 --- /dev/null +++ b/tests/http-raw-header/README.md @@ -0,0 +1,7 @@ +# Description + +Test signature match on raw http header. + +# PCAP + +The pcap comes from a redmine ticket (https://redmine.openinfosecfoundation.org/issues/3504). diff --git a/tests/http-raw-header/input.pcap b/tests/http-raw-header/input.pcap new file mode 100644 index 000000000..10f90e826 Binary files /dev/null and b/tests/http-raw-header/input.pcap differ diff --git a/tests/http-raw-header/test.rules b/tests/http-raw-header/test.rules new file mode 100644 index 000000000..62852b2dd --- /dev/null +++ b/tests/http-raw-header/test.rules @@ -0,0 +1 @@ +alert http $EXTERNAL_NET any -> $HOME_NET any (flow:established,to_client; content:"Server|3a 20 20 20 20 20 20 20|Yx|28|"; http_raw_header; sid:1;) diff --git a/tests/http-raw-header/test.yaml b/tests/http-raw-header/test.yaml new file mode 100644 index 000000000..d86f7bebf --- /dev/null +++ b/tests/http-raw-header/test.yaml @@ -0,0 +1,9 @@ +requires: + min-version: 4.1.0 + +checks: + - filter: + count: 1 + match: + event_type: alert + alert.signature_id: 1