From 1f7c57deff9debbda3d26be906e067dcf73ce1f9 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Thu, 12 Jan 2023 10:06:31 +0100 Subject: Improved DGA detection --- src/lib/ndpi_main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/lib/ndpi_main.c') diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 547550c45..642ddb780 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -8859,6 +8859,7 @@ int ndpi_check_dga_name(struct ndpi_detection_module_struct *ndpi_str, if((!name) || (strchr(name, '_') != NULL) + || (strchr(name, '-') != NULL) || (ndpi_ends_with(name, "in-addr.arpa")) || (ndpi_ends_with(name, "ip6.arpa")) /* Ignore TLD .local .lan and .home */ -- cgit v1.2.3