Skip to content

Commit

Permalink
http2: test all frames types
Browse files Browse the repository at this point in the history
  • Loading branch information
catenacyber authored and victorjulien committed Sep 11, 2024
1 parent 8131550 commit bda90c6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tests/http2-frames/test.rules
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
alert http2 any any -> any any (frame:http2.hdr; content:"|00 00 04 08 00|"; flow:to_server; sid:1;)
alert http2 any any -> any any (frame:http2.data; content:"|3f ff 00 01|"; bsize: 4; flow:to_server; sid:2;)
alert http2 any any -> any any (frame:http2.pdu; content:"|00 00 04 08 00 00 00 00 00 3f ff 00 01|"; flow:to_server; sid:3;)
11 changes: 10 additions & 1 deletion tests/http2-frames/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,18 @@ args:
pcap: ../http2-keywords2/input.pcap

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: 1
- filter:
count: 1
match:
event_type: alert
alert.signature_id: 2
- filter:
count: 1
match:
event_type: alert
alert.signature_id: 3

0 comments on commit bda90c6

Please sign in to comment.