INNER CODE UNIT · Python
splitfrom
mitre-attack/attack-scripts · scripts/diff_stix.py:147
splitfrom = -3 if is_subtechnique else -2
link = '/'.join(split_url[splitfrom:])
return link
def deep_copy_stix(self, objects):
"""
Transform stix to dict and deep copy the dict.
"""
result = []
for obj in objects:
obj = dict(obj)
if 'external_references' in obj:
for i in range(len(obj['external_references'])):
obj['external_references'][i] = dict(
obj['external_references'][i])
if 'kill_chain_phases' in obj:
for i in range(len(obj['kill_chain_phases'])):