EntryWidgetCoAHandled

Entry widget that shows the number of techniques that were already 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": stats,
        "params": {
            "layout": "horizontal",
            "name": "Handled Techniques",
            "sign": "",
            "colors": {"items": {"#00CD33": {"value": count - 50}, "#FF9000": {"value": count - 150}, "#FF1744": {"value": 0}}},
            "type": "above",
        },
    },
}

return_results(data)

README

Entry widget that shows the number of techniques that were already 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.