mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
Match DPD TLS signature on one-sided connections.
This commit changes DPD matching for TLS connections. A one-sided match is enough to enable DPD now. This commit also removes DPD for SSLv2 connections. SSLv2 connections do basically no longer happen in the wild. SSLv2 is also really finnicky to identify correctly - there is very little data required to match it, and basically all matches today will be false positives. If DPD for SSLv2 is still desired, the optional signature in policy/protocols/ssl/dpd-v2.sig can be loaded. Fixes GH-1952
This commit is contained in:
parent
0793a38cc5
commit
95f1565498
4 changed files with 27 additions and 9 deletions
|
@ -1,17 +1,17 @@
|
|||
signature dpd_ssl_server {
|
||||
signature dpd_tls_server {
|
||||
ip-proto == tcp
|
||||
# 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]))|...?\x04..\x00\x02).*/
|
||||
requires-reverse-signature dpd_ssl_client
|
||||
enable "ssl"
|
||||
# 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"
|
||||
}
|
||||
|
||||
signature dpd_ssl_client {
|
||||
signature dpd_tls_client {
|
||||
ip-proto == tcp
|
||||
# Client hello.
|
||||
payload /^(\x16\x03[\x00\x01\x02\x03]..\x01...\x03[\x00\x01\x02\x03]|...?\x01[\x00\x03][\x00\x01\x02\x03\x04]).*/
|
||||
# SSL3 / TLS Client hello.
|
||||
payload /^\x16\x03[\x00\x01\x02\x03]..\x01...\x03[\x00\x01\x02\x03].*/
|
||||
tcp-state originator
|
||||
enable "ssl"
|
||||
}
|
||||
|
||||
signature dpd_dtls_client {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue