Skip to content

Add ATT&CK ID property to objects #11

Open
@seansica

Description

@seansica
  • 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;
  }
  ...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions