Skip to content

Commit

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

0 comments on commit b98f760

Please sign in to comment.