Skip to content

Commit

Permalink
tls: test for tls header inspection rules
Browse files Browse the repository at this point in the history
Ticket - 7235
  • Loading branch information
ilya-bakhtin authored and victorjulien committed Sep 28, 2024
1 parent 6e93dba commit 3be0daf
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/tls/tls-bypass-missing-event/test.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alert tcp-stream any any -> any ![21,25,110,143,443,465,587,636,989:995,3128,5061,5222,8443,8080] (msg:"Policy: Possible TOR SSL traffic (TLS1.3)";flow:established,to_server; content:"|16 03 01|"; depth:3; content:"|01|"; distance:2; within:1; content:"www"; pcre:"/www.[0-9a-z]{4,25}.com/"; metadata:created_at 2022_25_07,priority:5; sid:900000004; rev:1;)
13 changes: 13 additions & 0 deletions tests/tls/tls-bypass-missing-event/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
requires:
min-version: 7.0.7

args:
- --set app-layer.protocols.tls.encryption-handling=bypass

checks:

- filter:
count: 2
match:
event_type: alert
alert.signature_id: 900000004
Binary file added tests/tls/tls-bypass-missing-event/tor_bl.pcap
Binary file not shown.

0 comments on commit 3be0daf

Please sign in to comment.