From d6cfeecc50cf9426bc30f452591806a92c13f799 Mon Sep 17 00:00:00 2001 From: pyth0n1c <87383215+pyth0n1c@users.noreply.github.com> Date: Thu, 7 Apr 2022 13:15:54 -0700 Subject: [PATCH] Forcing use of offline mitre enrichment data... FOR SPEEEEEED --- .../contentctl_infrastructure/builder/attack_enrichment.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/contentctl_project/contentctl_infrastructure/builder/attack_enrichment.py b/bin/contentctl_project/contentctl_infrastructure/builder/attack_enrichment.py index b74f9cbde1..25aaf81e99 100644 --- a/bin/contentctl_project/contentctl_infrastructure/builder/attack_enrichment.py +++ b/bin/contentctl_project/contentctl_infrastructure/builder/attack_enrichment.py @@ -18,6 +18,7 @@ class AttackEnrichment(): file_path = os.path.join(os.path.dirname(__file__), '../../../../lookups/mitre_enrichment.csv') try: + raise(Exception("INTENTIONAL EXCEPTION TO FORCE USE OF OFFLINE MITRE ATTACK ENRICHMENT")) lift = attack_client() all_enterprise = lift.get_enterprise(stix_format=False) enterprise_relationships = lift.get_enterprise_relationships() @@ -67,4 +68,4 @@ class AttackEnrichment(): attack_lookup = {rows[0]:{'technique': rows[1], 'tactics': rows[2].split('|'), 'groups': rows[3].split('|')} for rows in reader} attack_lookup.pop('mitre_id') - return attack_lookup \ No newline at end of file + return attack_lookup