]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
http: adds check for request line missing protocol 1705/head 1706/head 1707/head
authorPhilippe Antoine <pantoine@oisf.net>
Wed, 13 Mar 2024 20:33:02 +0000 (21:33 +0100)
committerPhilippe Antoine <pantoine@oisf.net>
Thu, 14 Mar 2024 09:53:21 +0000 (10:53 +0100)
This generates an anomaly

Ticket: 6856

tests/http-not09/min8.rules [new file with mode: 0644]
tests/http-not09/test.yaml

diff --git a/tests/http-not09/min8.rules b/tests/http-not09/min8.rules
new file mode 100644 (file)
index 0000000..a5cf8be
--- /dev/null
@@ -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;)
index b835a389fe5b8e1e3db18347079e201fd0a9e8f5..d429013dc732e8740c800e812afa0269f5c556ee 100644 (file)
@@ -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