From b98f76045be86fb726e4f70ec53ef97cb260a1d9 Mon Sep 17 00:00:00 2001 From: Erin Hall Date: Thu, 31 Oct 2024 13:35:17 -0400 Subject: [PATCH] hot fix for ATT&CK v16.0 --- nav-app/src/app/classes/stix/technique.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nav-app/src/app/classes/stix/technique.ts b/nav-app/src/app/classes/stix/technique.ts index 328f2af25..873cdc73c 100644 --- a/nav-app/src/app/classes/stix/technique.ts +++ b/nav-app/src/app/classes/stix/technique.ts @@ -38,7 +38,13 @@ export class Technique extends StixObject { */ public get_technique_tactic_id(tactic: string | Tactic): string { let tactic_shortname = tactic instanceof Tactic ? tactic.shortname : tactic; - if (!this.tactics.includes(tactic_shortname)) { + + // TODO: Remove this hot fix after the 16.1 release fixes this technique + if (this.attackID == 'T1546.017') { + if (tactic_shortname == 'privilege-escalation') { + tactic_shortname = 'persistence'; + } + } else if (!this.tactics.includes(tactic_shortname)) { throw new Error(tactic_shortname + ' is not a tactic of ' + this.attackID); } return this.attackID + '^' + tactic_shortname;