mirror of
https://github.com/MISP/misp-galaxy.git
synced 2024-11-29 18:27:19 +00:00
script mitre - version given as an input + renaming
This commit is contained in:
parent
ee794b8ab1
commit
dd571d7cd5
5 changed files with 40 additions and 40 deletions
|
@ -4,11 +4,11 @@
|
||||||
import json
|
import json
|
||||||
import re
|
import re
|
||||||
import os
|
import os
|
||||||
|
import argparse
|
||||||
|
|
||||||
'''
|
parser = argparse.ArgumentParser(description='Create a couple galaxy/cluster with cti\'s attack-patterns\nMust be in the mitre/cti/ATTACK/attack-pattern folder')
|
||||||
Create a couple galaxy/cluster with cti's attack-patterns
|
parser.add_argument("-v", "--version", type=int, required=True, help="Version of the galaxy. Please increment the previous one")
|
||||||
Must be in the mitre/cti/ATTACK/attack-pattern folder
|
args = parser.parse_args()
|
||||||
'''
|
|
||||||
|
|
||||||
values = []
|
values = []
|
||||||
|
|
||||||
|
@ -37,16 +37,16 @@ for element in os.listdir('.'):
|
||||||
|
|
||||||
galaxy = {}
|
galaxy = {}
|
||||||
galaxy['name'] = "Attack Pattern"
|
galaxy['name'] = "Attack Pattern"
|
||||||
galaxy['type'] = "attack-pattern"
|
galaxy['type'] = "mitre-attack-pattern"
|
||||||
galaxy['description'] = "ATT&CK Tactic"
|
galaxy['description'] = "ATT&CK Tactic"
|
||||||
galaxy['uuid' ] = "c4e851fa-775f-11e7-8163-b774922098cd"
|
galaxy['uuid' ] = "c4e851fa-775f-11e7-8163-b774922098cd"
|
||||||
galaxy['version'] = 1
|
galaxy['version'] = args.version
|
||||||
|
|
||||||
cluster = {}
|
cluster = {}
|
||||||
cluster['name'] = "Attack Pattern"
|
cluster['name'] = "Attack Pattern"
|
||||||
cluster['type'] = "attack-pattern"
|
cluster['type'] = "mitre-attack-pattern"
|
||||||
cluster['description'] = "ATT&CK tactic"
|
cluster['description'] = "ATT&CK tactic"
|
||||||
cluster['version'] = 1
|
cluster['version'] = args.version
|
||||||
cluster['source'] = "https://github.com/mitre/cti"
|
cluster['source'] = "https://github.com/mitre/cti"
|
||||||
cluster['uuid' ] = "dcb864dc-775f-11e7-9fbb-1f41b4996683"
|
cluster['uuid' ] = "dcb864dc-775f-11e7-9fbb-1f41b4996683"
|
||||||
cluster['authors'] = ["MITRE"]
|
cluster['authors'] = ["MITRE"]
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
import json
|
import json
|
||||||
import re
|
import re
|
||||||
import os
|
import os
|
||||||
|
import argparse
|
||||||
|
|
||||||
'''
|
parser = argparse.ArgumentParser(description='Create a couple galaxy/cluster with cti\'s courses-of-action.\nMust be in the mitre/cti/ATTACK/course-of-action folder')
|
||||||
Create a couple galaxy/cluster with cti's courses-of-action
|
parser.add_argument("-v", "--version", type=int, required=True, help="Version of the galaxy. Please increment the previous one")
|
||||||
Must be in the mitre/cti/ATTACK/course-of-action folder
|
args = parser.parse_args()
|
||||||
'''
|
|
||||||
|
|
||||||
values = []
|
values = []
|
||||||
|
|
||||||
|
@ -29,16 +29,16 @@ for element in os.listdir('.'):
|
||||||
|
|
||||||
galaxy = {}
|
galaxy = {}
|
||||||
galaxy['name'] = "Course of Action"
|
galaxy['name'] = "Course of Action"
|
||||||
galaxy['type'] = "course-of-action"
|
galaxy['type'] = "mitre-course-of-action"
|
||||||
galaxy['description'] = "ATT&CK Mitigation"
|
galaxy['description'] = "ATT&CK Mitigation"
|
||||||
galaxy['uuid' ] = "6fcb4472-6de4-11e7-b5f7-37771619e14e"
|
galaxy['uuid' ] = "6fcb4472-6de4-11e7-b5f7-37771619e14e"
|
||||||
galaxy['version'] = 1
|
galaxy['version'] = args.version
|
||||||
|
|
||||||
cluster = {}
|
cluster = {}
|
||||||
cluster['name'] = "Course of Action"
|
cluster['name'] = "Course of Action"
|
||||||
cluster['type'] = "course-of-action"
|
cluster['type'] = "mitre-course-of-action"
|
||||||
cluster['description'] = "ATT&CK Mitigation"
|
cluster['description'] = "ATT&CK Mitigation"
|
||||||
cluster['version'] = 1
|
cluster['version'] = args.version
|
||||||
cluster['source'] = "https://github.com/mitre/cti"
|
cluster['source'] = "https://github.com/mitre/cti"
|
||||||
cluster['uuid' ] = "a8825ae8-6dea-11e7-8d57-7728f3cfe086"
|
cluster['uuid' ] = "a8825ae8-6dea-11e7-8d57-7728f3cfe086"
|
||||||
cluster['authors'] = ["MITRE"]
|
cluster['authors'] = ["MITRE"]
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
import json
|
import json
|
||||||
import re
|
import re
|
||||||
import os
|
import os
|
||||||
|
import argparse
|
||||||
|
|
||||||
'''
|
parser = argparse.ArgumentParser(description='Create a couple galaxy/cluster with cti\'s intrusion-sets\nMust be in the mitre/cti/ATTACK/intrusion-set folder')
|
||||||
Create a couple galaxy/cluster with cti's intrusion-sets
|
parser.add_argument("-v", "--version", type=int, required=True, help="Version of the galaxy. Please increment the previous one")
|
||||||
Must be in the mitre/cti/ATTACK/intrusion-set folder
|
args = parser.parse_args()
|
||||||
'''
|
|
||||||
|
|
||||||
values = []
|
values = []
|
||||||
|
|
||||||
|
@ -34,16 +34,16 @@ for element in os.listdir('.'):
|
||||||
|
|
||||||
galaxy = {}
|
galaxy = {}
|
||||||
galaxy['name'] = "Intrusion Set"
|
galaxy['name'] = "Intrusion Set"
|
||||||
galaxy['type'] = "intrusion-set"
|
galaxy['type'] = "mitre-intrusion-set"
|
||||||
galaxy['description'] = "Name of ATT&CK Group"
|
galaxy['description'] = "Name of ATT&CK Group"
|
||||||
galaxy['uuid' ] = "1023f364-7831-11e7-8318-43b5531983ab"
|
galaxy['uuid' ] = "1023f364-7831-11e7-8318-43b5531983ab"
|
||||||
galaxy['version'] = 1
|
galaxy['version'] = args.version
|
||||||
|
|
||||||
cluster = {}
|
cluster = {}
|
||||||
cluster['name'] = "intrusion Set"
|
cluster['name'] = "intrusion Set"
|
||||||
cluster['type'] = "intrusion-set"
|
cluster['type'] = "mitre-intrusion-set"
|
||||||
cluster['description'] = "Name of ATT&CK Group"
|
cluster['description'] = "Name of ATT&CK Group"
|
||||||
cluster['version'] = 1
|
cluster['version'] = args.version
|
||||||
cluster['source'] = "https://github.com/mitre/cti"
|
cluster['source'] = "https://github.com/mitre/cti"
|
||||||
cluster['uuid' ] = "10df003c-7831-11e7-bdb9-971cdd1218df"
|
cluster['uuid' ] = "10df003c-7831-11e7-bdb9-971cdd1218df"
|
||||||
cluster['authors'] = ["MITRE"]
|
cluster['authors'] = ["MITRE"]
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
import json
|
import json
|
||||||
import re
|
import re
|
||||||
import os
|
import os
|
||||||
|
import argparse
|
||||||
|
|
||||||
'''
|
parser = argparse.ArgumentParser(description='Create a couple galaxy/cluster with cti\'s malwares\nMust be in the mitre/cti/ATTACK/malware folder')
|
||||||
Create a couple galaxy/cluster with cti's malwares
|
parser.add_argument("-v", "--version", type=int, required=True, help="Version of the galaxy. Please increment the previous one")
|
||||||
Must be in the mitre/cti/ATTACK/malware folder
|
args = parser.parse_args()
|
||||||
'''
|
|
||||||
|
|
||||||
values = []
|
values = []
|
||||||
|
|
||||||
|
@ -35,16 +35,16 @@ for element in os.listdir('.'):
|
||||||
|
|
||||||
galaxy = {}
|
galaxy = {}
|
||||||
galaxy['name'] = "Malware"
|
galaxy['name'] = "Malware"
|
||||||
galaxy['type'] = "malware"
|
galaxy['type'] = "mitre-malware"
|
||||||
galaxy['description'] = "Name of ATT&CK software"
|
galaxy['description'] = "Name of ATT&CK software"
|
||||||
galaxy['uuid' ] = "d752161c-78f6-11e7-a0ea-bfa79b407ce4"
|
galaxy['uuid' ] = "d752161c-78f6-11e7-a0ea-bfa79b407ce4"
|
||||||
galaxy['version'] = 1
|
galaxy['version'] = args.version
|
||||||
|
|
||||||
cluster = {}
|
cluster = {}
|
||||||
cluster['name'] = "Malware"
|
cluster['name'] = "Malware"
|
||||||
cluster['type'] = "malware"
|
cluster['type'] = "mitre-malware"
|
||||||
cluster['description'] = "Name of ATT&CK software"
|
cluster['description'] = "Name of ATT&CK software"
|
||||||
cluster['version'] = 1
|
cluster['version'] = args.version
|
||||||
cluster['source'] = "https://github.com/mitre/cti"
|
cluster['source'] = "https://github.com/mitre/cti"
|
||||||
cluster['uuid' ] = "d752161c-78f6-11e7-a0ea-bfa79b407ce4"
|
cluster['uuid' ] = "d752161c-78f6-11e7-a0ea-bfa79b407ce4"
|
||||||
cluster['authors'] = ["MITRE"]
|
cluster['authors'] = ["MITRE"]
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
import json
|
import json
|
||||||
import re
|
import re
|
||||||
import os
|
import os
|
||||||
|
import argparse
|
||||||
|
|
||||||
'''
|
parser = argparse.ArgumentParser(description='Create a couple galaxy/cluster with cti\'s tools\nMust be in the mitre/cti/ATTACK/tool folder')
|
||||||
Create a couple galaxy/cluster with cti's tools
|
parser.add_argument("-v", "--version", type=int, required=True, help="Version of the galaxy. Please increment the previous one")
|
||||||
Must be in the mitre/cti/ATTACK/tool folder
|
args = parser.parse_args()
|
||||||
'''
|
|
||||||
|
|
||||||
values = []
|
values = []
|
||||||
|
|
||||||
|
@ -35,16 +35,16 @@ for element in os.listdir('.'):
|
||||||
|
|
||||||
galaxy = {}
|
galaxy = {}
|
||||||
galaxy['name'] = "Tool"
|
galaxy['name'] = "Tool"
|
||||||
galaxy['type'] = "tool"
|
galaxy['type'] = "mitre-tool"
|
||||||
galaxy['description'] = "Name of ATT&CK software"
|
galaxy['description'] = "Name of ATT&CK software"
|
||||||
galaxy['uuid' ] = "d5cbd1a2-78f6-11e7-a833-7b9bccca9649"
|
galaxy['uuid' ] = "d5cbd1a2-78f6-11e7-a833-7b9bccca9649"
|
||||||
galaxy['version'] = 1
|
galaxy['version'] = args.version
|
||||||
|
|
||||||
cluster = {}
|
cluster = {}
|
||||||
cluster['name'] = "Tool"
|
cluster['name'] = "Tool"
|
||||||
cluster['type'] = "tool"
|
cluster['type'] = "mitre-tool"
|
||||||
cluster['description'] = "Name of ATT&CK software"
|
cluster['description'] = "Name of ATT&CK software"
|
||||||
cluster['version'] = 1
|
cluster['version'] = args.version
|
||||||
cluster['source'] = "https://github.com/mitre/cti"
|
cluster['source'] = "https://github.com/mitre/cti"
|
||||||
cluster['uuid' ] = "d700dc5c-78f6-11e7-a476-5f748c8e4fe0"
|
cluster['uuid' ] = "d700dc5c-78f6-11e7-a476-5f748c8e4fe0"
|
||||||
cluster['authors'] = ["MITRE"]
|
cluster['authors'] = ["MITRE"]
|
||||||
|
|
Loading…
Reference in a new issue