From 5f3c6ad136927b43cb15af330aa2858ababafebb Mon Sep 17 00:00:00 2001 From: Erin Hall Date: Tue, 12 Nov 2024 09:23:56 -0500 Subject: [PATCH] Remove hot fix for ATT&CK v16.0 --- nav-app/src/app/classes/stix/technique.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/nav-app/src/app/classes/stix/technique.ts b/nav-app/src/app/classes/stix/technique.ts index 873cdc73..897a2e86 100644 --- a/nav-app/src/app/classes/stix/technique.ts +++ b/nav-app/src/app/classes/stix/technique.ts @@ -39,12 +39,7 @@ export class Technique extends StixObject { public get_technique_tactic_id(tactic: string | Tactic): string { let tactic_shortname = tactic instanceof Tactic ? tactic.shortname : tactic; - // 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)) { + if (!this.tactics.includes(tactic_shortname)) { throw new Error(tactic_shortname + ' is not a tactic of ' + this.attackID); } return this.attackID + '^' + tactic_shortname;