Updated ESNI/SNI alarm generation prolicy

This commit is contained in:
Luca Deri
2020-11-08 10:07:35 +01:00
parent f6cb869c63
commit 89a363aff6
5 changed files with 24 additions and 6 deletions
+3 -1
View File
@@ -1539,7 +1539,9 @@ int processClientServerHello(struct ndpi_detection_module_struct *ndpi_struct,
/* Add check for missing SNI */
if((flow->protos.stun_ssl.ssl.client_requested_server_name[0] == 0)
&& (flow->protos.stun_ssl.ssl.ssl_version >= 0x0302) /* TLSv1.1 */) {
&& (flow->protos.stun_ssl.ssl.ssl_version >= 0x0302) /* TLSv1.1 */
&& (flow->protos.stun_ssl.ssl.encrypted_sni.esni == NULL) /* No ESNI */
) {
/* This is a bit suspicious */
NDPI_SET_BIT(flow->risk, NDPI_TLS_MISSING_SNI);
}