From: Philippe Antoine Date: Thu, 17 Dec 2020 14:21:14 +0000 (+0100) Subject: Adds check with http.user_agent keyword and HTTP2 traffic X-Git-Tag: suricata-6.0.4~125 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebca55aebe4d68967785116685b2bab8c09fc01f;p=thirdparty%2Fsuricata-verify.git Adds check with http.user_agent keyword and HTTP2 traffic --- diff --git a/tests/http2-upgrade/test.rules b/tests/http2-upgrade/test.rules index 46d4352f4..5428b264d 100644 --- a/tests/http2-upgrade/test.rules +++ b/tests/http2-upgrade/test.rules @@ -1,3 +1,5 @@ alert http1 any any -> any any (http.uri; content:"/robots.txt"; sid:10;) alert http2 any any -> any any (http.uri; content:"/robots.txt"; sid:11;) alert http any any -> any any (http.uri; content:"/robots.txt"; sid:12;) + +alert http2 any any -> any any (http.user_agent; content:"curl"; sid:20;) diff --git a/tests/http2-upgrade/test.yaml b/tests/http2-upgrade/test.yaml index 26d913ee3..0fc697173 100644 --- a/tests/http2-upgrade/test.yaml +++ b/tests/http2-upgrade/test.yaml @@ -66,3 +66,8 @@ checks: match: event_type: alert alert.signature_id: 12 + - filter: + count: 1 + match: + event_type: alert + alert.signature_id: 20