MITREIndicatorsByOpenIncidents Deprecated
Deprecated. Use FeedMitreAttackv2 instead.
python · MITRE IDs (Deprecated)
Source
import demistomock as demisto from CommonServerPython import * import traceback def main(): try: from_date = demisto.args().get('from', '') to_date = demisto.args().get('to', '') query = 'type:"MITRE ATT&CK" and investigationsCount:>0 and -incident.type:"MITRE ATT&CK CoA"' search_indicators = IndicatorsSearcher() res = search_indicators.search_indicators_by_version(query=query, from_date=from_date, to_date=to_date) indicators = [] for ind in res.get('iocs', []): indicators.append({ 'Value': dict_safe_get(ind, ['value']), 'Name': dict_safe_get(ind, ['CustomFields', 'mitrename']), 'Phase Name': dict_safe_get(ind, ['CustomFields', 'mitrekillchainphases', 0, 'phase_name']), 'Description': dict_safe_get(ind, ['CustomFields', 'mitredescription']), }) incidents_table = tableToMarkdown('MITRE ATT&CK techniques by related Incidents', indicators, headers=['Value', 'Name', 'Phase Name', 'Description']) return_outputs(incidents_table) except Exception: demisto.error(traceback.format_exc()) # print the traceback return_error(f'Failed to execute MITREIndicatorsByOpenIncidents script. Error: {traceback.format_exc()}') if __name__ in ('__main__', '__builtin__', 'builtins'): main()
README
This is a widget script returning MITRE indicators information for top indicators shown in incidents.
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
| Tags | widget |
| Cortex XSOAR Version | 5.5.0 |
Inputs
There are no inputs for this script.
Outputs
There are no outputs for this script.