Added NDPI_MALICIOUS_JA3 flow risk
Added ndpi_load_malicious_ja3_file() API call
This commit is contained in:
@@ -705,6 +705,16 @@ extern "C" {
|
||||
*/
|
||||
int ndpi_load_risk_domain_file(struct ndpi_detection_module_struct *ndpi_str, const char* path);
|
||||
|
||||
/**
|
||||
* Read a file and load the list of malicious JA3 signatures
|
||||
*
|
||||
* @par ndpi_mod = the detection module
|
||||
* @par path = the path of the file
|
||||
* @return 0 if the file is loaded correctly;
|
||||
* -1 else
|
||||
*/
|
||||
int ndpi_load_malicious_ja3_file(struct ndpi_detection_module_struct *ndpi_str, const char *path);
|
||||
|
||||
/**
|
||||
* Get the total number of the supported protocols
|
||||
*
|
||||
|
||||
@@ -91,6 +91,7 @@ typedef enum {
|
||||
NDPI_HTTP_SUSPICIOUS_CONTENT,
|
||||
NDPI_RISKY_ASN,
|
||||
NDPI_RISKY_DOMAIN,
|
||||
NDPI_MALICIOUS_JA3,
|
||||
|
||||
|
||||
/* Leave this as last member */
|
||||
@@ -1099,7 +1100,8 @@ struct ndpi_detection_module_struct {
|
||||
content_automa, /* Used for HTTP subprotocol_detection */
|
||||
subprotocol_automa, /* Used for HTTP subprotocol_detection */
|
||||
bigrams_automa, impossible_bigrams_automa, /* TOR */
|
||||
risky_domain_automa, tls_cert_subject_automa;
|
||||
risky_domain_automa, tls_cert_subject_automa,
|
||||
malicious_ja3_automa;
|
||||
/* IMPORTANT: please update ndpi_finalize_initialization() whenever you add a new automa */
|
||||
|
||||
struct {
|
||||
|
||||
Reference in New Issue
Block a user