chg: [att&ck] no tag for subtechnique

pull/590/head
Christophe Vandeplas 2020-10-18 20:14:05 +02:00
parent d58dd1fca2
commit 2334676e64
2 changed files with 5 additions and 820 deletions

File diff suppressed because it is too large Load Diff

View File

@ -143,11 +143,12 @@ for domain in domains:
# add the relation in the defined way
rel_source = {
"dest-uuid": dest_uuid,
"tags": [
"estimative-language:likelihood-probability=\"almost-certain\""
],
"type": rel_type
}
if rel_type != 'subtechnique-of':
rel_source['tags'] = [
"estimative-language:likelihood-probability=\"almost-certain\""
]
if 'related' not in all_data_uuid[source_uuid]:
all_data_uuid[source_uuid]['related'] = []
if rel_source not in all_data_uuid[source_uuid]['related']: