fix: [mitre-atlas] value without ID

This commit is contained in:
Christophe Vandeplas 2023-12-19 15:36:44 +01:00
parent 52ec21a818
commit ae3202be02
No known key found for this signature in database
GPG key ID: BDC48619FFDC5A5B
3 changed files with 1259 additions and 1259 deletions

View file

@ -95,7 +95,7 @@ for item in attack_data['objects']:
if 'description' in item:
value['description'] = item['description']
value['value'] = item['name'] + ' - ' + item['external_references'][0]['external_id']
value['value'] = item['name']
value['meta'] = {}
value['meta']['refs'] = []
value['uuid'] = re.search('--(.*)$', item['id']).group(0)[2:]