From: Philippe Antoine Date: Wed, 13 Mar 2024 20:33:02 +0000 (+0100) Subject: http: adds check for request line missing protocol X-Git-Tag: suricata-6.0.17~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8fb8562426730bafc11f15392effdeb052b12603;p=thirdparty%2Fsuricata-verify.git http: adds check for request line missing protocol This generates an anomaly Ticket: 6856 --- diff --git a/tests/http-not09/min8.rules b/tests/http-not09/min8.rules new file mode 100644 index 000000000..a5cf8be07 --- /dev/null +++ b/tests/http-not09/min8.rules @@ -0,0 +1 @@ +alert http any any -> any any (msg:"SURICATA HTTP request missing protocol"; flow:established,to_server; app-layer-event:http.request_line_missing_protocol; classtype:protocol-command-decode; sid:2221055; rev:1;) diff --git a/tests/http-not09/test.yaml b/tests/http-not09/test.yaml index b835a389f..d429013dc 100644 --- a/tests/http-not09/test.yaml +++ b/tests/http-not09/test.yaml @@ -7,3 +7,15 @@ checks: match: event_type: http http.http_user_agent: myscript + - filter: + min-version: 8 + count: 1 + match: + event_type: anomaly + anomaly.event: REQUEST_LINE_MISSING_PROTOCOL + - filter: + min-version: 8 + count: 1 + match: + event_type: alert + alert.signature_id: 2221055