Skip to main content

Finding

Struct Finding 

Source
pub struct Finding {
Show 13 fields pub line: usize, pub source: String, pub rule_id: String, pub description: String, pub techniques: Vec<Technique>, pub telemetry: Vec<String>, pub detections: Vec<Detection>, pub edr: Vec<EdrMapping>, pub observed_side_effects: Vec<SideEffect>, pub noise: u8, pub severity: Severity, pub matched_command: Option<Command>, pub observed_event: Option<Arc<HashMap<String, String>>>,
}
Expand description

A single detection-coverage finding tied to a source line.

Fields§

§line: usize

1-based line of the input this finding came from. For ingested telemetry, the 1-based record number instead.

§source: String

The source text that produced the finding — the command line as written.

§rule_id: String

The KbEntry::id that matched.

§description: String

What a defender would observe, from the matched entry.

§techniques: Vec<Technique>

The ATT&CK technique(s) this action implements.

§telemetry: Vec<String>

The concrete host events this action produces.

§detections: Vec<Detection>

Detections that would fire. Authored claims from the knowledge base unless the report was enriched from a real ruleset, in which case each carries a verdict.

§edr: Vec<EdrMapping>

EDR sensor-event mappings, populated only when --edr is requested.

§observed_side_effects: Vec<SideEffect>

Non-execution events (network / file / registry) correlated by process id to the execution this finding came from — confirmed secondary telemetry. Populated only for ingested telemetry; empty for predictive analysis.

§noise: u8

Detectability on a 0-100 scale: how strongly this action surfaces in defensive telemetry. Higher = louder. Not a severity or a risk score — a quiet action is not a safe one.

§severity: Severity

The bucket noise falls in.

§matched_command: Option<Command>

The command this finding was matched from, kept for rule-logic evaluation (coverage gaps). Not serialized.

§observed_event: Option<Arc<HashMap<String, String>>>

The real recorded event fields when this finding came from ingested telemetry, so Sigma evaluation can consult fields a command line cannot supply (ParentImage, User, IntegrityLevel, …). None for predictive (text) analysis. Shared (Arc) so the several findings a single record produces point at one event map rather than each deep-cloning it. Not serialized.

Trait Implementations§

Source§

impl Clone for Finding

Source§

fn clone(&self) -> Finding

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Finding

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Finding

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for Finding

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.