{%- set URL_BASE = salt['pillar.get']('global:url_base', '') %}

{
    "collection_index_url": "",

"versions": {
    "enabled": true,
    "entries": [
        {
            "name": "MITRE ATT&CK",
            "version": "16",
            "domains": [
                {
                    "name": "Enterprise",
                    "identifier": "enterprise-attack",
                    "data": ["assets/mitre/enterprise-attack.json"]
                }
            ]
        }
    ]
},

    "custom_context_menu_items": [ 
        {"label": "View related Detections","url": "  https://{{URL_BASE}}/#/detections?q=*{{ "{{technique_attackID}}" }}*+|+groupby+so_detection.language+|+groupby+so_detection.ruleset+so_detection.isEnabled+|+groupby+%22so_detection.category%22&z=America/New_York&el=500&gl=50&rt=0&rtu=hours"},
        {"label": "View related Alerts","url": "  https://{{URL_BASE}}/#/alerts?q=*{{ "{{technique_attackID}}" }}*+|+groupby+rule.name+event.module*+event.severity_label+rule.uuid&z=America/New_York&el=500&gl=500&rt=15&rtu=days"}
        ],

    "default_layers": {
        "enabled": true,
        "urls": ["assets/so/navigator_layer_all_detections.json","assets/so/navigator_layer_sigma.json","assets/so/navigator_layer_suricata.json","assets/so/navigator_layer_alerts.json"]
    },

    "comment_color": "yellow",
    "link_color": "blue",
    "banner": "",
    "customize_features": [
        {"name": "multiselect", "enabled": true, "description": "Disable to remove the multiselect panel from interface."},
        {"name": "export_render", "enabled": true, "description": "Disable to remove the button to render the current layer."},
        {"name": "export_excel", "enabled": true, "description": "Disable to remove the button to export the current layer to MS Excel (.xlsx) format."},
        {"name": "legend", "enabled": true, "description": "Disable to remove the legend panel from the interface."},
        {"name": "background_color", "enabled": true, "description": "Disable to remove the background color effect on manually assigned colors."},
        {"name": "non_aggregate_score_color", "enabled": true, "description": "Disable to remove the color effect on non-aggregate scores."},
        {"name": "aggregate_score_color", "enabled": true, "description": "Disable to remove the color effect on aggregate scores."},
        {"name": "comment_underline", "enabled": true, "description": "Disable to remove the comment underline effect on techniques."},
        {"name": "metadata_underline", "enabled": true, "description": "Disable to remove the metadata underline effect on techniques."},
        {"name": "link_underline", "enabled": true, "description": "Disable to remove the hyperlink underline effect on techniques."}
    ],
    "features": [
        {"name": "leave_site_dialog", "enabled": false, "description": "Disable to remove the dialog prompt when leaving site."},
        {"name": "tabs", "disabled": true, "description": "Disable to remove the ability to open new tabs."},
        {"name": "selecting_techniques", "enabled": true, "description": "Disable to remove the ability to select techniques."},
        {"name": "header", "enabled": true, "description": "Disable to remove the header containing banner."},
        {"name": "subtechniques", "enabled": true, "description": "Disable to remove all sub-technique features from the interface."},
        {"name": "selection_controls", "enabled": true, "description": "Disable to to disable all subfeatures", "subfeatures": [
            {"name": "search", "enabled": true, "description": "Disable to remove the technique search panel from the interface."},
            {"name": "multiselect", "enabled": true, "description": "Disable to remove the multiselect panel from interface."},
            {"name": "deselect_all", "enabled": true, "description": "Disable to remove the deselect all button from the interface."}
        ]},
        {"name": "layer_controls", "enabled": true, "description": "Disable to disable all subfeatures", "subfeatures": [
            {"name": "layer_info", "enabled": true, "description": "Disable to remove the layer info (name, description and layer metadata) panel from the interface. Note that the layer can still be renamed in the tab."},
            {"name": "download_layer", "enabled": true, "description": "Disable to remove the button to download the layer."},
            {"name": "export_render", "enabled": true, "description": "Disable to remove the button to render the current layer."},
            {"name": "export_excel", "enabled": true, "description": "Disable to remove the button to export the current layer to MS Excel (.xlsx) format."},
            {"name": "filters", "enabled": true, "description": "Disable to remove the filters panel from interface."},
            {"name": "sorting", "enabled": true, "description": "Disable to remove the sorting button from the interface."},
            {"name": "color_setup", "enabled": true, "description": "Disable to remove the color setup panel from interface, containing customization controls for scoring gradient and tactic row color."},
            {"name": "toggle_hide_disabled", "enabled": true, "description": "Disable to remove the hide disabled techniques button from the interface."},
            {"name": "layout_controls", "enabled": true, "description": "Disable to remove the ability to change the current matrix layout."},
            {"name": "legend", "enabled": true, "description": "Disable to remove the legend panel from the interface."}
        ]},
        {"name": "technique_controls", "enabled": true, "description": "Disable to disable all subfeatures", "subfeatures": [
            {"name": "disable_techniques", "enabled": true, "description": "Disable to remove the ability to disable techniques."},
            {"name": "manual_color", "enabled": true, "description": "Disable to remove the ability to assign manual colors to techniques."},
            {"name": "background_color", "enabled": true, "description": "Disable to remove the background color effect on manually assigned colors."},
            {"name": "non_aggregate_score_color", "enabled": true, "description": "Disable to remove the color effect on non-aggregate scores."},
            {"name": "aggregate_score_color", "enabled": true, "description": "Disable to remove the color effect on aggregate scores."},
            {"name": "scoring", "enabled": true, "description": "Disable to remove the ability to score techniques."},
            {"name": "comments", "enabled": true, "description": "Disable to remove the ability to add comments to techniques."},
            {"name": "comment_underline", "enabled": true, "description": "Disable to remove the comment underline effect on techniques."},
            {"name": "metadata_underline", "enabled": true, "description": "Disable to remove the metadata underline effect on techniques."},
            {"name": "links", "enabled": true, "description": "Disable to remove the ability to assign hyperlinks to techniques."},
            {"name": "link_underline", "enabled": true, "description": "Disable to remove the hyperlink underline effect on techniques."},
            {"name": "metadata", "enabled": true, "description": "Disable to remove the ability to add metadata to techniques."},
            {"name": "clear_annotations", "enabled": true, "description": "Disable to remove the button to clear all annotations on the selected techniques."}
        ]},
        {"name": "toolbar_controls", "enabled": true, "description": "Disable to disable all subfeatures", "subfeatures": [
            {"name": "sticky_toolbar", "enabled": true, "description": "Disable to remove the ability to enable/disable the sticky toolbar."}
        ]}
    ]
}