@mitre-attack/attack-data-model
Version:
A TypeScript API for the MITRE ATT&CK data model
112 lines (109 loc) • 5.35 kB
text/typescript
import { z } from 'zod/v4';
import { StixIdentifier } from './stix-identifier.cjs';
import { StixType } from './stix-type.cjs';
declare const versionSchema: z.ZodDefault<z.ZodString>;
type Version = z.infer<typeof versionSchema>;
declare const nameSchema: z.ZodString;
type Name = z.infer<typeof nameSchema>;
declare const descriptionSchema: z.ZodString;
type Description = z.infer<typeof descriptionSchema>;
declare const aliasesSchema: z.ZodArray<z.ZodString>;
type Aliases = z.infer<typeof aliasesSchema>;
declare const xMitreVersionSchema: z.ZodString;
type XMitreVersion = z.infer<typeof xMitreVersionSchema>;
declare const xMitreAttackSpecVersionSchema: z.ZodString;
type XMitreAttackSpecVersion = z.infer<typeof xMitreAttackSpecVersionSchema>;
declare function createOldMitreAttackIdSchema(stixType: Extract<StixType, 'malware' | 'tool' | 'course-of-action'>): z.ZodString;
declare const xMitreOldAttackIdSchema: z.ZodString;
type XMitreOldAttackId = z.infer<typeof xMitreOldAttackIdSchema>;
declare const attackDomainSchema: z.ZodEnum<{
"enterprise-attack": "enterprise-attack";
"mobile-attack": "mobile-attack";
"ics-attack": "ics-attack";
}>;
type AttackDomain = z.infer<typeof attackDomainSchema>;
declare const xMitreDomainsSchema: z.ZodArray<z.ZodEnum<{
"enterprise-attack": "enterprise-attack";
"mobile-attack": "mobile-attack";
"ics-attack": "ics-attack";
}>>;
type XMitreDomains = z.infer<typeof xMitreDomainsSchema>;
declare const xMitreDeprecatedSchema: z.ZodBoolean;
type XMitreDeprecated = z.infer<typeof xMitreDeprecatedSchema>;
declare const xMitrePlatformSchema: z.ZodEnum<{
"Field Controller/RTU/PLC/IED": "Field Controller/RTU/PLC/IED";
"Network Devices": "Network Devices";
"Data Historian": "Data Historian";
"Google Workspace": "Google Workspace";
"Office Suite": "Office Suite";
ESXi: "ESXi";
"Identity Provider": "Identity Provider";
Containers: "Containers";
"Azure AD": "Azure AD";
"Engineering Workstation": "Engineering Workstation";
"Control Server": "Control Server";
"Human-Machine Interface": "Human-Machine Interface";
Windows: "Windows";
Linux: "Linux";
IaaS: "IaaS";
None: "None";
iOS: "iOS";
PRE: "PRE";
SaaS: "SaaS";
"Input/Output Server": "Input/Output Server";
macOS: "macOS";
Android: "Android";
"Safety Instrumented System/Protection Relay": "Safety Instrumented System/Protection Relay";
Embedded: "Embedded";
}>;
type XMitrePlatform = z.infer<typeof xMitrePlatformSchema>;
declare const xMitrePlatformsSchema: z.ZodArray<z.ZodEnum<{
"Field Controller/RTU/PLC/IED": "Field Controller/RTU/PLC/IED";
"Network Devices": "Network Devices";
"Data Historian": "Data Historian";
"Google Workspace": "Google Workspace";
"Office Suite": "Office Suite";
ESXi: "ESXi";
"Identity Provider": "Identity Provider";
Containers: "Containers";
"Azure AD": "Azure AD";
"Engineering Workstation": "Engineering Workstation";
"Control Server": "Control Server";
"Human-Machine Interface": "Human-Machine Interface";
Windows: "Windows";
Linux: "Linux";
IaaS: "IaaS";
None: "None";
iOS: "iOS";
PRE: "PRE";
SaaS: "SaaS";
"Input/Output Server": "Input/Output Server";
macOS: "macOS";
Android: "Android";
"Safety Instrumented System/Protection Relay": "Safety Instrumented System/Protection Relay";
Embedded: "Embedded";
}>>;
type XMitrePlatforms = z.infer<typeof xMitrePlatformsSchema>;
declare const objectMarkingRefsSchema: z.ZodArray<z.ZodString>;
declare const xMitreContributorsSchema: z.ZodArray<z.ZodString>;
type XMitreContributors = z.infer<typeof xMitreContributorsSchema>;
declare const xMitreIdentity: StixIdentifier;
declare const xMitreIdentitySchema: z.ZodLiteral<`identity--${string}`>;
declare const xMitreModifiedByRefSchema: z.ZodLiteral<`identity--${string}`>;
type XMitreModifiedByRef = z.infer<typeof xMitreModifiedByRefSchema>;
declare const killChainNameSchema: z.ZodEnum<{
"mitre-attack": "mitre-attack";
"mitre-mobile-attack": "mitre-mobile-attack";
"mitre-ics-attack": "mitre-ics-attack";
}>;
declare const killChainPhaseSchema: z.ZodObject<{
phase_name: z.ZodString;
kill_chain_name: z.ZodEnum<{
"mitre-attack": "mitre-attack";
"mitre-mobile-attack": "mitre-mobile-attack";
"mitre-ics-attack": "mitre-ics-attack";
}>;
}, z.core.$strict>;
type KillChainName = z.infer<typeof killChainNameSchema>;
type KillChainPhase = z.infer<typeof killChainPhaseSchema>;
export { type Aliases, type AttackDomain, type Description, type KillChainName, type KillChainPhase, type Name, type Version, type XMitreAttackSpecVersion, type XMitreContributors, type XMitreDeprecated, type XMitreDomains, type XMitreModifiedByRef, type XMitreOldAttackId, type XMitrePlatform, type XMitrePlatforms, type XMitreVersion, aliasesSchema, attackDomainSchema, createOldMitreAttackIdSchema, descriptionSchema, killChainNameSchema, killChainPhaseSchema, nameSchema, objectMarkingRefsSchema, versionSchema, xMitreAttackSpecVersionSchema, xMitreContributorsSchema, xMitreDeprecatedSchema, xMitreDomainsSchema, xMitreIdentity, xMitreIdentitySchema, xMitreModifiedByRefSchema, xMitreOldAttackIdSchema, xMitrePlatformSchema, xMitrePlatformsSchema, xMitreVersionSchema };