mirror of
https://github.com/MISP/misp-galaxy.git
synced 2024-11-26 16:57:18 +00:00
delete x_ prefix from mitre_attack_pattern
This commit is contained in:
parent
6aee8e41fd
commit
fa8c4ec839
3 changed files with 5096 additions and 3939 deletions
File diff suppressed because it is too large
Load diff
|
@ -1,8 +1,7 @@
|
||||||
{
|
{
|
||||||
"version": 3,
|
"type": "mitre-attack-pattern",
|
||||||
"uuid": "c4e851fa-775f-11e7-8163-b774922098cd",
|
"uuid": "c4e851fa-775f-11e7-8163-b774922098cd",
|
||||||
"type": "mitre-attack-pattern",
|
"name": "Attack Pattern",
|
||||||
"name": "Attack Pattern",
|
"version": 3,
|
||||||
"icon": "map",
|
"description": "ATT&CK Tactic"
|
||||||
"description": "ATT&CK Tactic"
|
}
|
||||||
}
|
|
|
@ -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:]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue