UNPKG

@mitre-attack/attack-data-model

Version:

A TypeScript API for the MITRE ATT&CK data model

16 lines (14 loc) 773 B
// src/schemas/common/property-schemas/attack-domains.ts import { z } from "zod/v4"; var attackDomainSchema = z.enum(["enterprise-attack", "mobile-attack", "ics-attack"]).meta({ description: "ATT&CK is organized in a series of \u201Ctechnology domains\u201D - the ecosystem an adversary operates within that provides a set of constraints the adversary must circumvent or take advantage of to accomplish a set of objectives. To date MITRE has defined three technology domains." }); var xMitreDomainsSchema = z.array(attackDomainSchema).min(1, { message: "At least one MITRE ATT&CK domain must be specified." }).meta({ description: "The technology domains to which the ATT&CK object belongs." }); export { attackDomainSchema, xMitreDomainsSchema };