Fix mitre rendering in host alerts custom queries

This commit is contained in:
Alfredo Cardigliano 2024-08-06 17:42:56 +02:00
parent 287c3e1806
commit 7e284e971b

View file

@ -392,6 +392,34 @@ local all_datatable_columns_def_by_tag = {
['cli_country'] = build_datatable_column_def_country('cli_country', "db_search.tags.cli_country"),
['srv_country'] = build_datatable_column_def_country('srv_country', "db_search.tags.srv_country"),
['community_id'] = build_datatable_column_def_community_id('community_id', "db_search.tags.community_id"),
['mitre_id'] = {
title_i18n = "db_search.tags.mitre_id",
data_field = "mitre_data",
sortable = true,
class = { "no-wrap" },
render_type = "formatMitreId",
},
['mitre_tactic'] = {
title_i18n = "db_search.tags.mitre_tactic",
data_field = "mitre_data",
sortable = true,
class = { "no-wrap" },
render_type = "formatMitreTactic",
},
['mitre_technique'] = {
title_i18n = "db_search.tags.mitre_technique",
data_field = "mitre_data",
sortable = true,
class = { "no-wrap" },
render_type = "formatMitreTechnique",
},
['mitre_subtechnique'] = {
title_i18n = "db_search.tags.mitre_subtechnique",
data_field = "mitre_data",
sortable = true,
class = { "no-wrap" },
render_type = "formatMitreSubTechnique",
},
}
-- #####################################