From: Philippe Antoine Date: Sat, 29 Mar 2025 21:07:59 +0000 (+0100) Subject: websocket: add test with decompression X-Git-Tag: suricata-7.0.11~89 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=985c61cdef5bf1bcc98ac07801f89700143dbfee;p=thirdparty%2Fsuricata-verify.git websocket: add test with decompression Ticket: 7285 --- diff --git a/tests/websocket-compressed/README.md b/tests/websocket-compressed/README.md new file mode 100644 index 000000000..77983d462 --- /dev/null +++ b/tests/websocket-compressed/README.md @@ -0,0 +1,11 @@ +# Test Description + +Test websocket decompression + +## Related issue + +https://redmine.openinfosecfoundation.org/issues/7285 + +## PCAP + +Supplied at https://redmine.openinfosecfoundation.org/issues/7285 diff --git a/tests/websocket-compressed/example_websocket.pcap b/tests/websocket-compressed/example_websocket.pcap new file mode 100644 index 000000000..e17749b15 Binary files /dev/null and b/tests/websocket-compressed/example_websocket.pcap differ diff --git a/tests/websocket-compressed/test.rules b/tests/websocket-compressed/test.rules new file mode 100644 index 000000000..a238735df --- /dev/null +++ b/tests/websocket-compressed/test.rules @@ -0,0 +1 @@ +alert websocket any any -> any any (msg:"There is no text opcode in this packet"; websocket.payload; content: "TOGGLE=5659131662f54334"; sid:1;) diff --git a/tests/websocket-compressed/test.yaml b/tests/websocket-compressed/test.yaml new file mode 100644 index 000000000..62ada0ec1 --- /dev/null +++ b/tests/websocket-compressed/test.yaml @@ -0,0 +1,12 @@ +requires: + min-version: 8 + +args: +- -k none --set stream.inline=true + +checks: +- filter: + count: 1 + match: + event_type: alert + alert.signature_id: 1