DaveyD347's picture
Add malicious URL classifier
84f95cd verified
Raw History Blame Contribute Delete
2.07 kB
{
"model_type": "tfidf-logreg+urlflags",
"labels": [
"benign",
"malicious"
],
"threshold": 0.5,
"oof_macro_f1_at_threshold": 0.9273,
"char_vectorizer": {
"analyzer": "char",
"lowercase": true,
"ngram_range": [
3,
5
],
"min_df": 5,
"max_features": 30000,
"sublinear_tf": true
},
"token_vectorizer": {
"analyzer": "word",
"lowercase": false,
"token_pattern": "[^ ]+",
"min_df": 3,
"max_features": 8000,
"sublinear_tf": true
},
"logreg_C": 0.3,
"flag_scale": 0.5,
"red_flag_features": [
"data_or_js_scheme",
"ip_host",
"at_symbol",
"non_ascii_host",
"punycode",
"brand_lookalike",
"brand_domain_misuse",
"brand_in_subdomain",
"brand_in_path",
"sensitive_words_host",
"sensitive_words_path",
"exe_download",
"double_extension",
"archive_download",
"risky_tld",
"free_hosting",
"dynamic_dns",
"shortener",
"redirect_param",
"email_in_url",
"embedded_domain_path",
"many_subdomains",
"random_host",
"hyphen_heavy",
"long_host",
"nonstandard_port",
"cms_path",
"encoded_chars",
"double_slash_path",
"long_url",
"no_https"
],
"grouped_cv_macro_f1": 0.9264,
"grouped_cv_macro_f1_std": 0.0155,
"cv_folds": 5,
"cv_grid": [
{
"C": 0.3,
"flag_scale": 0.5,
"macro_f1": 0.9264
},
{
"C": 1.0,
"flag_scale": 0.5,
"macro_f1": 0.9247
},
{
"C": 3.0,
"flag_scale": 0.5,
"macro_f1": 0.9239
},
{
"C": 0.3,
"flag_scale": 1.0,
"macro_f1": 0.9193
},
{
"C": 0.3,
"flag_scale": 2.0,
"macro_f1": 0.9189
},
{
"C": 1.0,
"flag_scale": 2.0,
"macro_f1": 0.9179
},
{
"C": 3.0,
"flag_scale": 2.0,
"macro_f1": 0.9176
},
{
"C": 10.0,
"flag_scale": 0.5,
"macro_f1": 0.916
},
{
"C": 1.0,
"flag_scale": 1.0,
"macro_f1": 0.9156
},
{
"C": 3.0,
"flag_scale": 1.0,
"macro_f1": 0.9152
},
{
"C": 10.0,
"flag_scale": 2.0,
"macro_f1": 0.9125
},
{
"C": 10.0,
"flag_scale": 1.0,
"macro_f1": 0.9121
}
],
"train_rows": 38456,
"n_features": 32887
}