Traceback (most recent call last):
File "Downloads/DISARM-STIX2/main.py", line 51, in <module>
generate_disarm_stix()
File "Downloads/DISARM-STIX2/main.py", line 31, in generate_disarm_stix
tactics = tactic.make_disarm_tactics(data, identity_id, marking_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "Downloads/DISARM-STIX2/objects/tactic.py", line 44, in make_disarm_tactics
tactic = Tactic(
^^^^^^^
File "Downloads/DISARM-STIX2/DISARM-STIX2/lib/python3.11/site-packages/stix2/custom.py", line 33, in __init__
_cls_init(cls, self, kwargs)
File "Downloads/DISARM-STIX2/DISARM-STIX2/lib/python3.11/site-packages/stix2/base.py", line 492, in _cls_init
cls.__init__(obj, **kwargs)
File "Downloads/DISARM-STIX2/objects/tactic.py", line 21, in __init__
raise ValueError("'%s' is not a recognized DISARM Tactic." % x_mitre_shortname)
ValueError: 'maximise-exposure' is not a recognized DISARM Tactic.
Have been trying to run the current code;
However gives;
The error is thrown here: https://github.com/DISARMFoundation/DISARM-STIX2/blob/main/objects/tactic.py#L18
And is because tactics are hardcoded here: https://github.com/DISARMFoundation/DISARM-STIX2/blob/main/objects/tactic.py#L6
See
maximise-exposure
is not included.I suspect the development of the XLSX has advanced ahead of the code, looking at the last commit date.
The addition of
maximise-exposure
as follows, solves the issue.