UNPKG

@mitre-attack/attack-data-model

Version:

A TypeScript API for the MITRE ATT&CK data model

41 lines (38 loc) 2.91 kB
import { z } from 'zod/v4'; import { Malware } from './malware.schema.cjs'; import { Asset } from './asset.schema.cjs'; import { Campaign } from './campaign.schema.cjs'; import { DataComponent } from './data-component.schema.cjs'; import { LogSource } from './log-source.schema.cjs'; import { DataSource } from './data-source.schema.cjs'; import { Identity } from './identity.schema.cjs'; import { Matrix } from './matrix.schema.cjs'; import { Tool } from './tool.schema.cjs'; import { Tactic } from './tactic.schema.cjs'; import { Technique } from './technique.schema.cjs'; import { Group } from './group.schema.cjs'; import { Mitigation } from './mitigation.schema.cjs'; import { Collection } from './collection.schema.cjs'; import { DetectionStrategy } from './detection-strategy.schema.cjs'; import { Analytic } from './analytic.schema.cjs'; import { Relationship } from '../sro/relationship.schema.cjs'; import { MarkingDefinition } from '../smo/marking-definition.schema.cjs'; import '../common/stix-identifier.cjs'; import '../common/stix-type.cjs'; type AttackObject = Malware | Asset | Campaign | Collection | DataComponent | (DataSource | LogSource) | Identity | Matrix | Tool | Tactic | Technique | Group | Mitigation | DetectionStrategy | Analytic | Relationship | MarkingDefinition; declare const attackObjectsSchema: z.ZodTypeAny; type AttackObjects = z.infer<typeof attackObjectsSchema>; declare const extensibleStixBundleSchema: z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"attack-pattern" | "bundle" | "campaign" | "course-of-action" | "extension-definition" | "identity" | "intrusion-set" | "malware" | "tool" | "marking-definition" | "x-mitre-analytic" | "x-mitre-data-component" | "x-mitre-detection-strategy" | "x-mitre-tactic" | "x-mitre-asset" | "x-mitre-data-source" | "x-mitre-log-source" | "x-mitre-matrix" | "x-mitre-collection" | "relationship" | "file" | "artifact">; spec_version: z.ZodLiteral<"2.0" | "2.1">; objects: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>; }, z.core.$strict>; declare const stixBundleSchema: z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"attack-pattern" | "bundle" | "campaign" | "course-of-action" | "extension-definition" | "identity" | "intrusion-set" | "malware" | "tool" | "marking-definition" | "x-mitre-analytic" | "x-mitre-data-component" | "x-mitre-detection-strategy" | "x-mitre-tactic" | "x-mitre-asset" | "x-mitre-data-source" | "x-mitre-log-source" | "x-mitre-matrix" | "x-mitre-collection" | "relationship" | "file" | "artifact">; spec_version: z.ZodLiteral<"2.0" | "2.1">; objects: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>; }, z.core.$strict>; type StixBundle = z.infer<typeof extensibleStixBundleSchema>; export { type AttackObject, type AttackObjects, type StixBundle, attackObjectsSchema, extensibleStixBundleSchema, stixBundleSchema };