diff --git a/scripts/base/protocols/ssl/dpd.sig b/scripts/base/protocols/ssl/dpd.sig index 2603441d9a..d1cfb85423 100644 --- a/scripts/base/protocols/ssl/dpd.sig +++ b/scripts/base/protocols/ssl/dpd.sig @@ -3,7 +3,7 @@ signature dpd_tls_server { # SSL3 / TLS Server hello. payload /^(\x15\x03[\x00\x01\x02\x03]....)?\x16\x03[\x00\x01\x02\x03]..\x02...((\x03[\x00\x01\x02\x03\x04])|(\x7F[\x00-\x50])).*/ tcp-state responder - enable "ssl" + enable "tls" } signature dpd_tls_client { @@ -11,12 +11,12 @@ signature dpd_tls_client { # SSL3 / TLS Client hello. payload /^\x16\x03[\x00\x01\x02\x03]..\x01...\x03[\x00\x01\x02\x03].*/ tcp-state originator - enable "ssl" + enable "tls" } -signature dpd_dtls_client { - ip-proto == udp - # Client hello. - payload /^\x16\xfe[\xff\xfd]\x00\x00\x00\x00\x00\x00\x00...\x01...........\xfe[\xff\xfd].*/ - enable "dtls" -} +# signature dpd_dtls_client { +# ip-proto == udp +# # Client hello. +# payload /^\x16\xfe[\xff\xfd]\x00\x00\x00\x00\x00\x00\x00...\x01...........\xfe[\xff\xfd].*/ +# enable "dtls" +# } diff --git a/src/analyzer/protocol/tls/CMakeLists.txt b/src/analyzer/protocol/tls/CMakeLists.txt index aeb55469af..f897f8cb40 100644 --- a/src/analyzer/protocol/tls/CMakeLists.txt +++ b/src/analyzer/protocol/tls/CMakeLists.txt @@ -4,5 +4,4 @@ spicy_add_analyzer( SOURCES TLS.spicy TLS.evt - zeek_TLS.spicy ) diff --git a/src/analyzer/protocol/tls/TLS.evt b/src/analyzer/protocol/tls/TLS.evt index 37e3f18a27..a0012006a2 100644 --- a/src/analyzer/protocol/tls/TLS.evt +++ b/src/analyzer/protocol/tls/TLS.evt @@ -2,72 +2,74 @@ protocol analyzer TLS over TCP: parse with TLS::Message, port 443/tcp; -import Zeek_TLS; +import TLS; +import zeek; +import spicy; on TLS::ClientHello -> event ssl_client_hello($conn, self.client_version, msg.record_version, cast