Added binary data transfer risk alert

This commit is contained in:
Luca
2024-04-03 15:41:26 +02:00
parent 1acc9ee396
commit 225ff7f8a4
9 changed files with 54 additions and 10 deletions
+6 -2
View File
@@ -67,8 +67,12 @@ static void ndpi_set_binary_application_transfer(struct ndpi_detection_module_st
|| ends_with(ndpi_struct, (char*)flow->host_server_name, ".windows.com")
)
;
else
ndpi_set_risk(flow, NDPI_BINARY_APPLICATION_TRANSFER, msg);
else {
if((flow->http.response_status_code >= 200) && (flow->http.response_status_code < 300))
ndpi_set_risk(flow, NDPI_BINARY_APPLICATION_TRANSFER, msg);
else
ndpi_set_risk(flow, NDPI_BINARY_TRANSFER_ATTEMPT, msg);
}
}
/* *********************************************** */