Added NDPI_MALWARE_HOST_CONTACTED flow risk

This commit is contained in:
Luca Deri
2023-10-13 00:01:55 +02:00
parent 30fc89e556
commit b6179467eb
7 changed files with 72 additions and 43 deletions
+1
View File
@@ -1026,6 +1026,7 @@ extern "C" {
void* ndpi_find_ipv4_category_userdata(struct ndpi_detection_module_struct *ndpi_str,
u_int32_t saddr);
int ndpi_fill_ip_protocol_category(struct ndpi_detection_module_struct *ndpi_struct,
struct ndpi_flow_struct *flow,
u_int32_t saddr,
u_int32_t daddr,
ndpi_protocol *ret);
+2 -1
View File
@@ -159,7 +159,8 @@ typedef enum {
NDPI_TCP_ISSUES, /* 50 */ /* TCP issues such as connection failed, probing or scan */
NDPI_FULLY_ENCRYPTED, /* This (unknown) session is fully encrypted */
NDPI_TLS_ALPN_SNI_MISMATCH, /* Invalid ALPN/SNI combination */
NDPI_MALWARE_HOST_CONTACTED, /* Flow client contacted a malware host */
/* Leave this as last member */
NDPI_MAX_RISK /* must be <= 63 due to (**) */
} ndpi_risk_enum;