use serde::{Deserialize, Serialize};
use strum::{AsRefStr, EnumIter};
#[derive(Debug, PartialEq, Eq, Clone, AsRefStr, EnumIter)]
#[strum(serialize_all = "kebab-case")]
pub enum ArchitectureExecutionEnvs {
Alpha,
Arm,
#[strum(serialize = "ia-64")]
Ia64,
Mips,
#[strum(serialize = "powerpc")]
PowerPC,
Sparc,
X86,
X86_64,
}
#[derive(Debug, PartialEq, Eq, Clone, AsRefStr, EnumIter)]
#[strum(serialize_all = "kebab-case")]
pub enum AttackMotivation {
Accidental,
Coercion,
Dominance,
Ideology,
Notoriety,
OrganizationalGain,
PersonalGain,
PersonalSatisfaction,
Revenge,
Unpredictable,
}
#[derive(Debug, PartialEq, Eq, Clone, AsRefStr, EnumIter)]
#[strum(serialize_all = "kebab-case")]
pub enum AttackResourceLevel {
Individual,
Club,
Contest,
Team,
Organization,
Government,
}
#[derive(Debug, PartialEq, Eq, Clone, AsRefStr, EnumIter, Default)]
#[strum(serialize_all = "kebab-case")]
pub enum ContextType {
SuspiciousActivity,
MalwareAnalysis,
#[default]
Unspecified,
}
#[derive(Debug, PartialEq, Eq, Clone, AsRefStr, EnumIter)]
#[strum(serialize_all = "kebab-case")]
pub enum IdentityClass {
Individual,
Group,
System,
Organization,
Class,
Unknown,
}
#[derive(Debug, PartialEq, Eq, Clone, AsRefStr, EnumIter)]
#[strum(serialize_all = "kebab-case")]
pub enum IdentitySectors {
Agriculture,
Aerospace,
Automotive,
Communications,
Construction,
Defence,
Education,
Energy,
Entertainment,
FinancialServices,
GovernmentNational,
GovernmentRegional,
GovernmentLocal,
GovernmentPublicServices,
EmergencyServices,
Healthcare,
HospitalityLeisure,
Infrastructure,
Insurance,
Manufacturing,
Mining,
NonProfit,
Pharmaceuticals,
Retail,
Technology,
Telecommunications,
Transportation,
Utilities,
}
#[derive(Debug, PartialEq, Eq, Clone, AsRefStr, EnumIter)]
#[strum(serialize_all = "kebab-case")]
pub enum ImplementationLanguage {
#[strum(serialize = "applescript")]
AppleScript,
Bash,
C,
#[strum(serialize = "c++")]
CPlusPlus,
#[strum(serialize = "c#")]
CSharp,
Go,
Java,
#[strum(serialize = "javascript")]
JavaScript,
Lua,
ObjectiveC,
Perl,
Php,
#[strum(serialize = "powershell")]
PowerShell,
Python,
Ruby,
Scala,
Swift,
#[strum(serialize = "typescript")]
TypeScript,
VisualBasic,
X86_32,
X86_64,
}
#[derive(Debug, PartialEq, Eq, Clone, AsRefStr, EnumIter)]
#[strum(serialize_all = "kebab-case")]
pub enum IndicatorPatternType {
Pcre,
Sigma,
Snort,
Suricata,
Stix,
Yara,
}
#[derive(Debug, PartialEq, Eq, Clone, AsRefStr, EnumIter)]
#[strum(serialize_all = "kebab-case")]
pub enum IndicatorType {
AnomalousActivity,
Anonymization,
Benign,
Compromised,
MaliciousActivity,
Attribution,
Unknown,
}
#[derive(Debug, PartialEq, Eq, Clone, AsRefStr, EnumIter)]
#[strum(serialize_all = "kebab-case")]
pub enum InfrastructureType {
Amplification,
Anonymization,
Botnet,
CommandAndControl,
Exfiltration,
HostingMalware,
HostingTargetLists,
Phishing,
Reconnaissance,
Staging,
Undefined,
}
#[derive(Debug, PartialEq, Eq, Clone, AsRefStr, EnumIter)]
#[strum(serialize_all = "kebab-case")]
pub enum MalwareCapability {
AccessesRemoteMachines,
AntiDebugging,
AntiDisassembly,
AntiEmulation,
AntiMemoryForensics,
AntiSandbox,
AntiVm,
CapturesInputPeripherals,
CapturesOutputPeripherals,
CapturesSystemStateData,
CleansTracesOfInfection,
CommitsFraud,
CommunicatesWithC2,
CompromisesDataAvailability,
CompromisesDataIntegrity,
CompromisesSystemAvailability,
ControlsLocalMachine,
DegradesSecuritySoftware,
DegradesSystemUpdates,
DeterminesC2Server,
EmailsSpam,
EscalatesPrivileges,
EvadesAv,
ExfiltratesData,
FingerprintsHost,
HidesArtifacts,
HidesExecutingCode,
InfectsFiles,
InfectsRemoteMachines,
InstallsOtherComponents,
PersistsAfterSystemReboot,
PreventsArtifactAccess,
PreventsArtifactDeletion,
ProbesNetworkEnvironment,
SelfModifies,
StealsAuthenticationCredentials,
ViolatesSystemOperationalIntegrity,
}
#[derive(Debug, PartialEq, Eq, Clone, AsRefStr, EnumIter)]
#[strum(serialize_all = "kebab-case")]
pub enum MalwareResult {
Benign,
Malicious,
Suspicious,
Unknown,
}
#[derive(Debug, PartialEq, Eq, Clone, AsRefStr, EnumIter)]
#[strum(serialize_all = "kebab-case")]
pub enum MalwareType {
Adware,
Backdoor,
Bot,
Bootkit,
Ddos,
Downloader,
Dropper,
ExploitKit,
Keylogger,
Ransomware,
RemoteAccessTrojan,
ResourceExploitation,
RogueSecuritySoftware,
Rootkit,
ScreenCapture,
Spyware,
Trojan,
Unknown,
Virus,
Webshell,
Wiper,
Worm,
}
#[derive(Debug, PartialEq, Eq, Clone, AsRefStr, EnumIter, Serialize, Deserialize, Default)]
#[serde(rename_all = "kebab-case")]
#[strum(serialize_all = "kebab-case")]
pub enum OpinionType {
StronglyAgree,
Agree,
#[default]
Neutral,
Disagree,
StronglyDisagree,
}
#[derive(Debug, PartialEq, Eq, Clone, AsRefStr, EnumIter)]
#[strum(serialize_all = "kebab-case")]
pub enum Region {
Africa,
EasternAfrica,
MiddleAfrica,
NorthernAfrica,
SouthernAfrica,
WesternAfrica,
Americas,
LatinAmericaCaribbean,
SouthAmerica,
Caribbean,
CentralAmerica,
NorthernAmerica,
Asia,
CentralAsia,
EasternAsia,
SouthernAsia,
SouthEasternAsia,
WesternAsia,
Europe,
EasternEurope,
NorthernEurope,
SouthernEurope,
WesternEurope,
Oceania,
Antarctica,
AustraliaNewZealand,
Melanesia,
Micronesia,
Polynesia,
}
#[derive(Debug, PartialEq, Eq, Clone, AsRefStr, EnumIter)]
#[strum(serialize_all = "kebab-case")]
pub enum ReportType {
AttackPattern,
Campaign,
Identity,
Indicator,
IntrusionSet,
Malware,
ObservedData,
ThreatActor,
ThreatReport,
Tool,
Vulnerability,
}
#[derive(Debug, PartialEq, Eq, Clone, AsRefStr, EnumIter)]
#[strum(serialize_all = "kebab-case")]
pub enum ThreatActorRole {
Agent,
Director,
Independent,
InfrastructureArchitect,
InfrastructureOperator,
MalwareAuthor,
Sponsor,
}
#[derive(Debug, PartialEq, Eq, Clone, AsRefStr, EnumIter)]
#[strum(serialize_all = "kebab-case")]
pub enum ThreatActorSophistication {
Advanced,
Expert,
Innovator,
Intermediate,
None,
Minimal,
Strategic,
}
#[derive(Debug, PartialEq, Eq, Clone, AsRefStr, EnumIter)]
#[strum(serialize_all = "kebab-case")]
pub enum ThreatActorType {
Activist,
Competitor,
CrimeSyndicate,
Criminal,
Hacker,
InsiderAccidental,
InsiderDisgruntled,
NationState,
Sensationalist,
Spy,
Terrorist,
Unknown,
}
#[derive(Debug, PartialEq, Eq, Clone, AsRefStr, EnumIter, Default)]
#[strum(serialize_all = "kebab-case")]
pub enum ToolType {
CredentialExploitation,
DenialOfService,
Exploitation,
InformationGathering,
NetworkCapture,
RemoteAccess,
VulnerabilityScanning,
#[default]
Unknown,
}