Skip to content

Commit 5e6e6d3

Browse files
committed
tests: Add a test for http2 authority mismatch event
Ticket: #6425
1 parent b592bfc commit 5e6e6d3

File tree

4 files changed

+23
-0
lines changed

4 files changed

+23
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Description
2+
3+
Test http2 event for mismatch between authority and host
4+
5+
# PCAP
6+
7+
The pcap comes from https://redmine.openinfosecfoundation.org/issues/6425
1.12 KB
Binary file not shown.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
alert http2 any any -> any any (msg:"SURICATA HTTP2 authority host mismatch"; flow:established,to_server; app-layer-event:http2.authority_host_mismatch; classtype:protocol-command-decode; sid:2290013; rev:1;)
2+
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
requires:
2+
min-version: 6.0.0
3+
4+
# disables checksum verification
5+
args:
6+
- -k none --set app-layer.protocols.http2.enabled=true
7+
8+
checks:
9+
10+
- filter:
11+
count: 1
12+
match:
13+
event_type: alert
14+
alert.signature_id: 2290013

0 commit comments

Comments
 (0)