]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
Adds http.header_names on HTTP2 traffic check
authorPhilippe Antoine <contact@catenacyber.fr>
Mon, 31 May 2021 08:11:05 +0000 (10:11 +0200)
committerVictor Julien <victor@inliniac.net>
Fri, 3 Sep 2021 10:47:06 +0000 (12:47 +0200)
tests/http2-keywords2/test.rules
tests/http2-keywords2/test.yaml

index da9cbe6c4d5f8f6ed1d16d304639371471eedad6..34f5c14f3d84df7994dbe7dae3e797086a2b37db 100644 (file)
@@ -8,3 +8,5 @@ alert http2 any any -> any any (http.stat_code; content:"404"; sid:21;)
 alert http2 any any -> any any (http.server; content:"nghttpx"; sid:30;)
 alert http2 any any -> any any (http.method; content:"GET"; sid:31;)
 alert http2 any any -> any any (http.host.raw; content:"nghttp2.org"; sid:32;)
+
+alert http2 any any -> any any (http.header_names; content:"|0d 0a|user-agent|0d 0a|accept|0d 0a|"; sid:33;)
index d43b3a41984733bd763c6a2d6a4d1c690bd217de..19c095f5405efed21b6cc7f451cc87b1dd2e6cb2 100644 (file)
@@ -50,3 +50,8 @@ checks:
       match:
         event_type: alert
         alert.signature_id: 32
+  - filter:
+      count: 1
+      match:
+        event_type: alert
+        alert.signature_id: 33