Skip to content

Commit

Permalink
Remove hot fix for ATT&CK v16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
erinehall committed Nov 12, 2024
1 parent b98f760 commit 5f3c6ad
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions nav-app/src/app/classes/stix/technique.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5f3c6ad

Please sign in to comment.