]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
http: test FP for http.response_body
authorPhilippe Antoine <pantoine@oisf.net>
Fri, 12 Apr 2024 10:56:17 +0000 (12:56 +0200)
committerVictor Julien <victor@inliniac.net>
Fri, 19 Apr 2024 18:51:23 +0000 (20:51 +0200)
Ticket: 6948

We should not match on request body

tests/http-post-data-decompression/test.rules
tests/http-post-data-decompression/test.yaml

index 6ca8c9f7e7fd6b7c2d44811f553074484d6eed28..cd676a8075eaea6ec5b9cdc925b9e68405601010 100644 (file)
@@ -1 +1,2 @@
 alert http any any -> any any (msg: "GZIPPED REQUEST"; flow: established, to_server; content: "name"; http_client_body; nocase; sid: 1; rev: 1; )
+alert http any any -> any any (msg: "not in response"; http.response_body; content: "name"; nocase; sid: 2; rev: 1; )
index 823312db7ab2056fc6b58543697772258413aad6..e1810bbece8d75f5e26287413c38360829f7abc9 100644 (file)
@@ -9,3 +9,9 @@ checks:
       match:
         event_type: alert
         alert.signature_id: 1
+  - filter:
+      min-version: 8
+      count: 0
+      match:
+        event_type: alert
+        alert.signature_id: 2