fix: [fight] readme

This commit is contained in:
Christophe Vandeplas 2024-06-24 11:05:13 +02:00
parent fe103f0077
commit 604e951e08
No known key found for this signature in database
GPG key ID: BDC48619FFDC5A5B
2 changed files with 4 additions and 5 deletions

View file

@ -335,7 +335,7 @@ Category: *mitigation* - source: *https://fight.mitre.org/* - total: *88* elemen
[MITRE FiGHT Techniques](https://www.misp-galaxy.org/mitre-fight-techniques) - MITRE Five-G Hierarchy of Threats (FiGHT™) is a globally accessible knowledge base of adversary tactics and techniques that are used or could be used against 5G networks.
Category: *attack-pattern* - source: *https://fight.mitre.org/* - total: *137* elements
Category: *attack-pattern* - source: *https://fight.mitre.org/* - total: *136* elements
[[HTML](https://www.misp-galaxy.org/mitre-fight-techniques)] - [[JSON](https://github.com/MISP/misp-galaxy/blob/main/clusters/mitre-fight-techniques.json)]

View file

@ -188,7 +188,7 @@ try:
if key not in technique_galaxy.kill_chain_order:
print(f"New kill_chain_tactic found: {key}:{value}")
technique_galaxy.kill_chain_order.append(tactic)
except KeyError:
except (KeyError, FileNotFoundError):
technique_galaxy = Galaxy({
'description': galaxy_description,
'icon': "map",
@ -203,7 +203,6 @@ except KeyError:
technique_galaxy.save('mitre-fight-techniques')
#
# mitigations
#
@ -246,7 +245,7 @@ for cluster, duplicate in mitigation_cluster.duplicates:
try:
mitigation_galaxy = Galaxy('mitre-fight-mitigations')
except KeyError:
except (KeyError, FileNotFoundError):
mitigation_galaxy = Galaxy({
'description': galaxy_description,
'icon': "shield-alt",
@ -301,7 +300,7 @@ for cluster, duplicate in detection_cluster.duplicates:
try:
detection_galaxy = Galaxy('mitre-fight-datasources')
except KeyError:
except (KeyError, FileNotFoundError):
detection_galaxy = Galaxy({
'description': galaxy_description,
'icon': "bell",