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", "type": "mitre-attack-pattern",
"uuid": "c4e851fa-775f-11e7-8163-b774922098cd",
"name": "Attack Pattern", "name": "Attack Pattern",
"icon": "map", "version": 3,
"description": "ATT&CK Tactic" "description": "ATT&CK Tactic"
} }

View file

@ -29,9 +29,9 @@ for element in os.listdir('.'):
if 'url' in reference: if 'url' in reference:
value['meta']['refs'].append(reference['url']) value['meta']['refs'].append(reference['url'])
if 'x_mitre_data_sources' in temp: 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: 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) values.append(value)
value['meta']['uuid'] = re.search('--(.*)$', temp['id']).group(0)[2:] value['meta']['uuid'] = re.search('--(.*)$', temp['id']).group(0)[2:]