pub enum HistAnomaly {
HistoryDisabled {
command: String,
},
TimestampRegression {
at: i64,
previous: i64,
},
RemoteExecPipe {
command: String,
},
PwshEncodedCommand {
command: String,
},
}Expand description
A graded shell-history anomaly.
Variants§
HistoryDisabled
A surviving command that disables or clears history (the clearing itself was recorded). MITRE T1070.003.
TimestampRegression
A timestamped entry whose epoch precedes its predecessor’s — non-monotonic history, consistent with injected or back-dated entries.
RemoteExecPipe
A download piped straight into a shell interpreter. MITRE T1059 / T1105.
PwshEncodedCommand
A PowerShell encoded/obfuscated command line. MITRE T1059.001 / T1027.
Implementations§
Trait Implementations§
Source§impl Clone for HistAnomaly
impl Clone for HistAnomaly
Source§fn clone(&self) -> HistAnomaly
fn clone(&self) -> HistAnomaly
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HistAnomaly
impl Debug for HistAnomaly
impl Eq for HistAnomaly
Source§impl Observation for HistAnomaly
impl Observation for HistAnomaly
Source§fn severity(&self) -> Option<Severity>
fn severity(&self) -> Option<Severity>
Severity, or
None if the analyzer deliberately does not grade this kind.Source§fn category(&self) -> Category
fn category(&self) -> Category
Analytical lens; defaults to
Category::from_code of Observation::code.
Override when a code’s keyword classification is wrong.Source§fn subjects(&self) -> Vec<SubjectRef>
fn subjects(&self) -> Vec<SubjectRef>
Non-disk subjects this kind is about (default: none).
Source§fn mitre(&self) -> &'static [&'static str]
fn mitre(&self) -> &'static [&'static str]
MITRE ATT&CK technique ids this kind is consistent with (default: none).
Source§fn confidence(&self) -> Option<Confidence>
fn confidence(&self) -> Option<Confidence>
Heuristic confidence, if inferential (default: none).
Source§impl PartialEq for HistAnomaly
impl PartialEq for HistAnomaly
Source§fn eq(&self, other: &HistAnomaly) -> bool
fn eq(&self, other: &HistAnomaly) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HistAnomaly
Auto Trait Implementations§
impl Freeze for HistAnomaly
impl RefUnwindSafe for HistAnomaly
impl Send for HistAnomaly
impl Sync for HistAnomaly
impl Unpin for HistAnomaly
impl UnsafeUnpin for HistAnomaly
impl UnwindSafe for HistAnomaly
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more