alert http2 any any -> any any (http2.frametype:GOAWAY; sid:2; rev:1;)
alert http2 any any -> any any (http2.settings:SETTINGS_HEADER_TABLE_SIZE>1000; sid:3; rev:1;)
alert http2 any any -> any any (http2.window:34634; sid:4; rev:1;)
-
-alert http any any -> any any (http.uri; content:"/doc/manual/html/index.html"; sid:10;)
-alert http1 any any -> any any (http.uri; content:"/doc/manual/html/index.html"; sid:11;)
-alert http2 any any -> any any (http.uri; content:"/doc/manual/html/index.html"; sid:12;)
-alert tcp any any -> any any (http.uri; content:"/doc/manual/html/index.html"; sid:13;)
-alert ip any any -> any any (http.uri; content:"/doc/manual/html/index.html"; sid:14;)
count: 0
match:
event_type: anomaly
- # HTTP generic keywords with HTTP2 traffic
- - filter:
- count: 1
- match:
- event_type: alert
- alert.signature_id: 10
- - filter:
- count: 0
- match:
- event_type: alert
- alert.signature_id: 11
- - filter:
- count: 1
- match:
- event_type: alert
- alert.signature_id: 12
- - filter:
- count: 1
- match:
- event_type: alert
- alert.signature_id: 13
- - filter:
- count: 1
- match:
- event_type: alert
- alert.signature_id: 14
--- /dev/null
+# Description
+
+Test http2 with HTTP keywords functionality
+
+# PCAP
+
+The pcap comes from https://wiki.wireshark.org/HTTP2
+It is the same as in http2-basic
--- /dev/null
+%YAML 1.1
+---
+
+outputs:
+ - eve-log:
+ enabled: true
+ types:
+ - alert
+ - http2
+ - files
+
+app-layer:
+ protocols:
+ http2:
+ enabled: true
--- /dev/null
+
+alert http any any -> any any (http.uri; content:"/doc/manual/html/index.html"; sid:10;)
+alert http1 any any -> any any (http.uri; content:"/doc/manual/html/index.html"; sid:11;)
+alert http2 any any -> any any (http.uri; content:"/doc/manual/html/index.html"; sid:12;)
+alert tcp any any -> any any (http.uri; content:"/doc/manual/html/index.html"; sid:13;)
+alert ip any any -> any any (http.uri; content:"/doc/manual/html/index.html"; sid:14;)
--- /dev/null
+requires:
+ features:
+ - HAVE_LIBJANSSON
+ min-version: 7.0.0
+
+# disables checksum verification
+args:
+ - -k none
+
+checks:
+
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 10
+ - filter:
+ count: 0
+ match:
+ event_type: alert
+ alert.signature_id: 11
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 12
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 13
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 14
--- /dev/null
+# Description
+
+Test more HTTP2 traffic against HTTP keywords
+
+# PCAP
+
+The pcap comes from https://wiki.wireshark.org/HTTP2
+It is the same as in http2-upgrade
--- /dev/null
+%YAML 1.1
+---
+
+outputs:
+ - eve-log:
+ enabled: yes
+ filetype: regular
+ filename: eve.json
+ types:
+ - alert:
+ tagged-packets: yes
+ - http:
+ extended: yes
+ - http2
+ - files
+
+app-layer:
+ protocols:
+ http2:
+ enabled: yes
--- /dev/null
+requires:
+ features:
+ - HAVE_LIBJANSSON
+ min-version: 7.0.0
+
+# disables checksum verification
+args:
+ - -k none --set stream.midstream=true
+
+checks:
+
+# checks for http.uri keyword : 1 for HTTP1, 1 for mimicked HTTP2 response, so 2 for whole HTTP
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 10
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 11
+ - filter:
+ count: 2
+ match:
+ event_type: alert
+ alert.signature_id: 12
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 20
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 21
http.http_method: "GET"
http.url: "/humans.txt"
http.status: 404
-# checks for http.uti keyword : 1 for HTTP1, 1 for mimicked HTTP2 response, so 2 for whole HTTP
- - filter:
- count: 1
- match:
- event_type: alert
- alert.signature_id: 10
- - filter:
- count: 1
- match:
- event_type: alert
- alert.signature_id: 11
- - filter:
- count: 2
- match:
- event_type: alert
- alert.signature_id: 12
- - filter:
- count: 1
- match:
- event_type: alert
- alert.signature_id: 20
- - filter:
- count: 1
- match:
- event_type: alert
- alert.signature_id: 21