From: Philippe Antoine Date: Mon, 31 May 2021 08:11:05 +0000 (+0200) Subject: Adds http.header_names on HTTP2 traffic check X-Git-Tag: suricata-6.0.4~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9af70cf223a6cba76bbdc9ad70f4210060781e9;p=thirdparty%2Fsuricata-verify.git Adds http.header_names on HTTP2 traffic check --- diff --git a/tests/http2-keywords2/test.rules b/tests/http2-keywords2/test.rules index da9cbe6c4..34f5c14f3 100644 --- a/tests/http2-keywords2/test.rules +++ b/tests/http2-keywords2/test.rules @@ -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;) diff --git a/tests/http2-keywords2/test.yaml b/tests/http2-keywords2/test.yaml index d43b3a419..19c095f54 100644 --- a/tests/http2-keywords2/test.yaml +++ b/tests/http2-keywords2/test.yaml @@ -50,3 +50,8 @@ checks: match: event_type: alert alert.signature_id: 32 + - filter: + count: 1 + match: + event_type: alert + alert.signature_id: 33