diff --git a/tests/tls/tls-bypass-missing-event/test.rules b/tests/tls/tls-bypass-missing-event/test.rules new file mode 100644 index 000000000..98bf6528c --- /dev/null +++ b/tests/tls/tls-bypass-missing-event/test.rules @@ -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;) diff --git a/tests/tls/tls-bypass-missing-event/test.yaml b/tests/tls/tls-bypass-missing-event/test.yaml new file mode 100644 index 000000000..abc28b94d --- /dev/null +++ b/tests/tls/tls-bypass-missing-event/test.yaml @@ -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 diff --git a/tests/tls/tls-bypass-missing-event/tor_bl.pcap b/tests/tls/tls-bypass-missing-event/tor_bl.pcap new file mode 100755 index 000000000..307e452ba Binary files /dev/null and b/tests/tls/tls-bypass-missing-event/tor_bl.pcap differ