Improved DGA detection

Before
Accuracy 66%, Precision 86%, Recall 38%

After
Accuracy 71%, Precision 89%, Recall 49%
This commit is contained in:
Luca Deri
2021-03-03 19:30:01 +01:00
parent 49843509e5
commit 0f8a994841
14 changed files with 168 additions and 138 deletions
+4 -2
View File
@@ -3530,9 +3530,11 @@ static void dgaUnitTest() {
for(i=0; dga[i] != NULL; i++)
assert(ndpi_check_dga_name(ndpi_str, NULL, (char*)dga[i], 1) == 1);
for(i=0; non_dga[i] != NULL; i++)
for(i=0; non_dga[i] != NULL; i++) {
/* printf("Checking non DGA %s\n", non_dga[i]); */
assert(ndpi_check_dga_name(ndpi_str, NULL, (char*)non_dga[i], 1) == 0);
}
ndpi_exit_detection_module(ndpi_str);
}