Added support for Navigator v4.0

master
Marcus Bakker 2020-10-30 21:19:31 +01:00
parent 70b1a0111c
commit 52a3f77ced
1 changed files with 3 additions and 7 deletions

View File

@ -219,15 +219,11 @@ def _get_base_template(name, description, stage, platform, sorting):
"""
layer = dict()
layer['name'] = name
layer['version'] = '3.0'
layer['domain'] = 'mitre-enterprise'
layer['versions'] = {'navigator': '4.0', 'layer': '4.0'}
layer['domain'] = 'enterprise-attack'
layer['description'] = description
if stage == 'attack':
layer['filters'] = {'stages': ['act'], 'platforms': platform}
else:
layer['filters'] = {'stages': ['prepare'], 'platforms': platform}
layer['filters'] = {'platforms': platform}
layer['sorting'] = sorting
layer['layout'] = {"layout": "flat", "showName": True, "showID": False}
layer['hideDisable'] = False