From 604e951e08dd895d8427230dc05855203b7860ac Mon Sep 17 00:00:00 2001 From: Christophe Vandeplas Date: Mon, 24 Jun 2024 11:05:13 +0200 Subject: [PATCH] fix: [fight] readme --- README.md | 2 +- tools/gen_mitre_fight.py | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 064ae71..cf81159 100644 --- a/README.md +++ b/README.md @@ -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)] diff --git a/tools/gen_mitre_fight.py b/tools/gen_mitre_fight.py index 351fdf1..19ba136 100755 --- a/tools/gen_mitre_fight.py +++ b/tools/gen_mitre_fight.py @@ -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",