Improved alert on suspicious DNS traffic
This commit is contained in:
@@ -773,14 +773,13 @@ static void ndpi_search_dns(struct ndpi_detection_module_struct *ndpi_struct, st
|
||||
if(dot) {
|
||||
uintptr_t first_element_len = dot - _hostname;
|
||||
|
||||
if((first_element_len > 32) && (!is_mdns)) {
|
||||
if((first_element_len > 48) && (!is_mdns)) {
|
||||
/*
|
||||
The lenght of the first element in the query is very long
|
||||
and this might be an issue or indicate an exfiltration
|
||||
*/
|
||||
|
||||
/* printf("**** %lu [%s][%s]\n", first_element_len, dot, _hostname); */
|
||||
ndpi_set_risk(ndpi_struct, flow, NDPI_DNS_SUSPICIOUS_TRAFFIC, NULL);
|
||||
ndpi_set_risk(ndpi_struct, flow, NDPI_DNS_SUSPICIOUS_TRAFFIC, "Long DNS host name");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user