EntryWidgetCoATechniquesList

Entry widget that shows the number of techniques that were not yet handled by the CoA playbooks.

python · MITRE ATT&CK - Courses of Action

Source

import demistomock as demisto
from CommonServerPython import *

incident = demisto.incident()
count = len(incident.get("CustomFields", {}).get("techniqueslist", "").split(","))
handled = incident.get("CustomFields", {}).get("handledtechniques", [])
stats = len([h for h in handled if h])

data = {
    "Type": 17,
    "ContentsFormat": "number",
    "Contents": {
        "stats": count - stats,
        "params": {
            "layout": "horizontal",
            "name": "Techniques to Handle",
            "sign": "",
            "colors": {
                "items": {
                    "#8C9EFF": {"value": 0},
                }
            },
            "type": "above",
        },
    },
}

return_results(data)

README

Entry widget that shows the number of techniques that were not yet handled by the CoA playbooks.

Script Data


Name Description
Script Type python3
Tags dynamic-section
Cortex XSOAR Version 6.0.0

Inputs


There are no inputs for this script.

Outputs


There are no outputs for this script.