From 2668f5f7627ff8541d1eaba9aead5ceee9af4732 Mon Sep 17 00:00:00 2001 From: Justin Ibarra <16747370+brokensound77@users.noreply.github.com> Date: Wed, 1 May 2024 15:50:54 -0600 Subject: [PATCH] [Bug] Fix missing indexes on navigator build (#3636) Co-authored-by: brokensound77 --- detection_rules/navigator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/detection_rules/navigator.py b/detection_rules/navigator.py index 228851af0..2db3a16a0 100644 --- a/detection_rules/navigator.py +++ b/detection_rules/navigator.py @@ -183,7 +183,7 @@ class NavigatorBuilder: self.add_rule_to_technique(rule, 'platforms', tactic, technique_id, value) def _update_indexes(self, rule: TOMLRule, tactic: str, technique_id: str): - for index in rule.contents.data.get('index', []): + for index in rule.contents.data.get('index') or []: value = rule.id self.add_rule_to_technique(rule, 'indexes', tactic, technique_id, value, layer_key=index.lower())