#[non_exhaustive]pub enum DetectionClass {
Passive,
ActiveBenign,
ActiveMutating,
Exploit,
Dos,
}Expand description
The intrusiveness a detection ran under, recorded on the finding it produced.
How the finding was learned, not part of its claim: a weakness seen passively and
then confirmed by an exploit is one finding. The class a detection declares is
exactly the set of capabilities the operator’s envelope serves it, so it is
enforced: Passive is given no way to touch the network.
Ordered least to most intrusive, so a policy can compare against a ceiling.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Passive
Reads only what the scan already gathered. No new traffic.
ActiveBenign
Exchanges bytes with the scanned socket, within a byte budget. Reads; changes nothing.
ActiveMutating
Causes a state change on the target: a write, a login that is logged, a test record left behind.
Exploit
Attempts to trigger the weakness, not merely to detect it.
Dos
May degrade the target’s service.
Implementations§
Source§impl DetectionClass
impl DetectionClass
Sourcepub const fn label(self) -> &'static str
pub const fn label(self) -> &'static str
How a class is written for a person to read.
Lowercase except acronyms, by the rule
NetworkRole::label describes: so
exploit and DoS. Severity::label is Title Case, so a report showing both
axes shows Critical and active-benign.
Trait Implementations§
Source§impl Clone for DetectionClass
impl Clone for DetectionClass
impl Copy for DetectionClass
Source§impl Debug for DetectionClass
impl Debug for DetectionClass
impl Eq for DetectionClass
Source§impl Hash for DetectionClass
impl Hash for DetectionClass
Source§impl Ord for DetectionClass
impl Ord for DetectionClass
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for DetectionClass
impl PartialEq for DetectionClass
Source§impl PartialOrd for DetectionClass
impl PartialOrd for DetectionClass
impl StructuralPartialEq for DetectionClass
Auto Trait Implementations§
impl Freeze for DetectionClass
impl RefUnwindSafe for DetectionClass
impl Send for DetectionClass
impl Sync for DetectionClass
impl Unpin for DetectionClass
impl UnsafeUnpin for DetectionClass
impl UnwindSafe for DetectionClass
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more