mirror of
https://github.com/MISP/misp-galaxy.git
synced 2024-11-26 00:37:18 +00:00
fix: [d3fend] sort keys to make jq_all_the_things happy
This commit is contained in:
parent
2b3d62705d
commit
0528a62d9b
2 changed files with 21 additions and 21 deletions
|
@ -2,17 +2,9 @@
|
||||||
"description": "A knowledge graph of cybersecurity countermeasures.",
|
"description": "A knowledge graph of cybersecurity countermeasures.",
|
||||||
"icon": "user-shield",
|
"icon": "user-shield",
|
||||||
"kill_chain_order": {
|
"kill_chain_order": {
|
||||||
"Model": [
|
"Deceive": [
|
||||||
"Asset-Inventory",
|
"Decoy-Environment",
|
||||||
"Network-Mapping",
|
"Decoy-Object"
|
||||||
"Operational-Activity-Mapping",
|
|
||||||
"System-Mapping"
|
|
||||||
],
|
|
||||||
"Harden": [
|
|
||||||
"Application-Hardening",
|
|
||||||
"Credential-Hardening",
|
|
||||||
"Message-Hardening",
|
|
||||||
"Platform-Hardening"
|
|
||||||
],
|
],
|
||||||
"Detect": [
|
"Detect": [
|
||||||
"File-Analysis",
|
"File-Analysis",
|
||||||
|
@ -23,19 +15,27 @@
|
||||||
"Process-Analysis",
|
"Process-Analysis",
|
||||||
"User-Behavior-Analysis"
|
"User-Behavior-Analysis"
|
||||||
],
|
],
|
||||||
"Isolate": [
|
|
||||||
"Execution-Isolation",
|
|
||||||
"Network-Isolation"
|
|
||||||
],
|
|
||||||
"Deceive": [
|
|
||||||
"Decoy-Environment",
|
|
||||||
"Decoy-Object"
|
|
||||||
],
|
|
||||||
"Evict": [
|
"Evict": [
|
||||||
"Credential-Eviction",
|
"Credential-Eviction",
|
||||||
"File-Eviction",
|
"File-Eviction",
|
||||||
"Process-Eviction"
|
"Process-Eviction"
|
||||||
],
|
],
|
||||||
|
"Harden": [
|
||||||
|
"Application-Hardening",
|
||||||
|
"Credential-Hardening",
|
||||||
|
"Message-Hardening",
|
||||||
|
"Platform-Hardening"
|
||||||
|
],
|
||||||
|
"Isolate": [
|
||||||
|
"Execution-Isolation",
|
||||||
|
"Network-Isolation"
|
||||||
|
],
|
||||||
|
"Model": [
|
||||||
|
"Asset-Inventory",
|
||||||
|
"Network-Mapping",
|
||||||
|
"Operational-Activity-Mapping",
|
||||||
|
"System-Mapping"
|
||||||
|
],
|
||||||
"Restore": [
|
"Restore": [
|
||||||
"Restore-Access",
|
"Restore-Access",
|
||||||
"Restore-Object"
|
"Restore-Object"
|
||||||
|
|
|
@ -248,8 +248,8 @@ json_cluster = {
|
||||||
|
|
||||||
# save the Galaxy and Cluster file
|
# save the Galaxy and Cluster file
|
||||||
with open(os.path.join('..', 'galaxies', galaxy_fname), 'w') as f:
|
with open(os.path.join('..', 'galaxies', galaxy_fname), 'w') as f:
|
||||||
# do not sort_keys as it would break the kill_chain_order
|
# sort_keys, even if it breaks the kill_chain_order , but jq_all_the_things requires sorted keys
|
||||||
json.dump(json_galaxy, f, indent=2, ensure_ascii=False)
|
json.dump(json_galaxy, f, indent=2, sort_keys=True, ensure_ascii=False)
|
||||||
f.write('\n') # only needed for the beauty and to be compliant with jq_all_the_things
|
f.write('\n') # only needed for the beauty and to be compliant with jq_all_the_things
|
||||||
|
|
||||||
with open(os.path.join('..', 'clusters', galaxy_fname), 'w') as f:
|
with open(os.path.join('..', 'clusters', galaxy_fname), 'w') as f:
|
||||||
|
|
Loading…
Reference in a new issue