delete x_ prefix from mitre_attack_pattern

This commit is contained in:
Deborah Servili 2017-10-26 09:44:23 +02:00
parent 6aee8e41fd
commit fa8c4ec839
3 changed files with 5096 additions and 3939 deletions

File diff suppressed because it is too large Load diff

View file

@ -1,8 +1,7 @@
{
"version": 3,
"uuid": "c4e851fa-775f-11e7-8163-b774922098cd",
"type": "mitre-attack-pattern",
"name": "Attack Pattern",
"icon": "map",
"description": "ATT&CK Tactic"
}
"type": "mitre-attack-pattern",
"uuid": "c4e851fa-775f-11e7-8163-b774922098cd",
"name": "Attack Pattern",
"version": 3,
"description": "ATT&CK Tactic"
}

View file

@ -29,9 +29,9 @@ for element in os.listdir('.'):
if 'url' in reference:
value['meta']['refs'].append(reference['url'])
if 'x_mitre_data_sources' in temp:
value['meta']['x_mitre_data_sources'] = temp['x_mitre_data_sources']
value['meta']['mitre_data_sources'] = temp['x_mitre_data_sources']
if 'x_mitre_platforms' in temp:
value['meta']['x_mitre_platforms'] = temp['x_mitre_platforms']
value['meta']['mitre_platforms'] = temp['x_mitre_platforms']
values.append(value)
value['meta']['uuid'] = re.search('--(.*)$', temp['id']).group(0)[2:]