Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions tests/websockets/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Test Description

Test websockets protocol

## PCAP

From the issue https://redmine.openinfosecfoundation.org/issues/2695

## Related issues

https://redmine.openinfosecfoundation.org/issues/2695
Binary file added tests/websockets/basic_websockets.pcap
Binary file not shown.
2 changes: 2 additions & 0 deletions tests/websockets/test.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
alert websockets any any -> any any (msg:"header frame"; flow:established,to_server; frame:websockets.header; content:"|81 88|"; sid:1;)
alert websockets any any -> any any (msg:"pdu frame"; flow:established,to_client; frame:websockets.pdu; content:"|81 15|version,hybi-draft-13"; sid:2;)
23 changes: 23 additions & 0 deletions tests/websockets/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
requires:
min-version: 8

args:
- -k none

checks:
- filter:
count: 1
match:
event_type: alert
alert.signature_id: 1
- filter:
count: 1
match:
event_type: alert
alert.signature_id: 2
- filter:
count: 3
match:
event_type: websockets
websockets.mask: true
websockets.opcode: text