Skip to content
This repository was archived by the owner on Dec 11, 2023. It is now read-only.

Commit 088d955

Browse files
committed
update domain format in layer scripts
1 parent 49dbd32 commit 088d955

5 files changed

Lines changed: 5 additions & 9 deletions

File tree

scripts/diff_stix.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414
'enterprise-attack': 'Enterprise',
1515
'mobile-attack': 'Mobile'
1616
}
17-
domainToLayerFileDomain = {
18-
'enterprise-attack': 'mitre-enterprise',
19-
'mobile-attack': 'mitre-mobile'
20-
}
2117
domainToTaxiiCollectionId = {
2218
"enterprise-attack": "95ecc380-afe9-11e4-9b6c-751b66dd541e",
2319
"mobile-attack": "2f669986-b40b-4423-b720-4396ca6a462b",
@@ -493,7 +489,7 @@ def get_layers_dict(self):
493489
},
494490
"name": f"{thedate} {domainToDomainLabel[domain]} Updates",
495491
"description": f"{domainToDomainLabel[domain]} updates for the {thedate} release of ATT&CK",
496-
"domain": domainToLayerFileDomain[domain],
492+
"domain": domain,
497493
"techniques": techniques,
498494
"sorting": 0,
499495
"hideDisabled": False,

scripts/layers/samples/apt3_apt29_software.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def color_lookup(usage):
122122
"navigator": "4.0"
123123
},
124124
"description": description,
125-
"domain": "mitre-enterprise",
125+
"domain": "enterprise-attack",
126126
"techniques": techniques_list,
127127
"legendItems": legend
128128
}

scripts/layers/samples/bear_APT.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def generate():
6767
"navigator": "4.0"
6868
},
6969
"description": "All techniques used by an APT group with phrase 'bear' in the group aliases",
70-
"domain": "mitre-enterprise",
70+
"domain": "enterprise-attack",
7171
"techniques": techniques_list,
7272
"legendItems": [{
7373
"label": "Used by a group the phrase 'bear' in the group aliases",

scripts/layers/samples/heatmap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def generate():
3232
},
3333
"sorting": 3, # descending order of score
3434
"description": "An example layer where all techniques have a randomized score",
35-
"domain": "mitre-enterprise",
35+
"domain": "enterprise-attack",
3636
"techniques": techniques_list,
3737
}
3838

scripts/layers/samples/software_execution.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def generate(softwaretype="software"):
7272
"layer": "4.0",
7373
"navigator": "4.0"
7474
},
75-
"domain": "mitre-enterprise",
75+
"domain": "enterprise-attack",
7676
"techniques": techniques_list,
7777
"sorting": 3, # order in descending order of score (count)
7878
"gradient": {

0 commit comments

Comments
 (0)