mitre-attack/attack-data-model

Add ATT&CK ID property to objects

Opened this issue · 0 comments

  • Add Zod schema + types for ATT&CK IDs
    • Technique: T####
    • Subtechnique: T####.###
    • Groups: G####
    • Software: S####
    • Mitigation: M####
  • Add class property + getter/setter for ATT&CK ID to all classes that extend AttackBaseImpl.

Example:


// type casting for mitigation IDs
const M1042: MitigationAttackId = "M1042";

// attackId directly retrievable from the class instance
export class TechniqueImpl extends AttackBaseImpl {

  private _attackId: TechniqueAttackId = '';
  
  getAttackId(): TechniqueAttackId {
    return this._attackId;
  }
  ...
}