pub struct Exploitation { /* private fields */ }Expand description
Which of a finding’s vulnerabilities are known to be exploited in the wild, and whose list says so.
Separate from the verdict: exploitation in the wild says nothing about whether this
host is affected (Confidence) or how bad it would be (Severity). It tells a
reader which claims to work through first, so it raises neither axis; a front end
marks and orders by it.
Stamped with the list that said so (CISA’s by default), since that is someone else’s data on someone else’s schedule.
Implementations§
Source§impl Exploitation
impl Exploitation
Sourcepub fn new(
by: DetectionId,
cves: impl IntoIterator<Item = impl Into<String>>,
) -> Result<Self, FindingError>
pub fn new( by: DetectionId, cves: impl IntoIterator<Item = impl Into<String>>, ) -> Result<Self, FindingError>
The CVE identifiers among cves that by lists as exploited, in the
order given and without repeats, or FindingError::NoExploitedCve
where none of them is one.
Anything not shaped like a CVE identifier is left out, as with
Reference::cve.
Sourcepub fn by(&self) -> &DetectionId
pub fn by(&self) -> &DetectionId
The list that names them exploited: its identity, version and content hash. Untrusted; escape before display.
Trait Implementations§
Source§impl Clone for Exploitation
impl Clone for Exploitation
Source§impl Debug for Exploitation
impl Debug for Exploitation
impl Eq for Exploitation
Source§impl From<&Exploitation> for ExploitationRecord
impl From<&Exploitation> for ExploitationRecord
Source§fn from(exploitation: &Exploitation) -> Self
fn from(exploitation: &Exploitation) -> Self
Source§impl Hash for Exploitation
impl Hash for Exploitation
Source§impl PartialEq for Exploitation
impl PartialEq for Exploitation
impl StructuralPartialEq for Exploitation
Auto Trait Implementations§
impl Freeze for Exploitation
impl RefUnwindSafe for Exploitation
impl Send for Exploitation
impl Sync for Exploitation
impl Unpin for Exploitation
impl UnsafeUnpin for Exploitation
impl UnwindSafe for Exploitation
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> 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