Skip to main content

ForensicCatalog

Struct ForensicCatalog 

Source
pub struct ForensicCatalog { /* private fields */ }
Expand description

A queryable collection of ArtifactDescriptors with built-in decode logic.

Implementations§

Source§

impl ForensicCatalog

Source

pub const fn new(entries: &'static [ArtifactDescriptor]) -> ForensicCatalog

Create a new catalog from a static slice of descriptors.

Source

pub fn list(&self) -> &[ArtifactDescriptor]

Return all descriptors in the catalog.

Source

pub fn by_id(&self, id: &str) -> Option<&ArtifactDescriptor>

Look up a descriptor by its id field.

Source

pub fn filter(&self, query: &ArtifactQuery) -> Vec<&ArtifactDescriptor>

Return all descriptors matching the given query. Every Some field in the query must match; None fields are wildcards.

Source

pub fn by_mitre(&self, technique: &str) -> Vec<&ArtifactDescriptor>

Return all descriptors associated with the given MITRE ATT&CK technique ID.

Source

pub fn for_triage(&self) -> Vec<&ArtifactDescriptor>

Return all descriptors sorted by triage priority descending (Critical first). Within the same priority, original catalog order is preserved.

Source

pub fn unassessed(&self) -> Vec<&ArtifactDescriptor>

Return all descriptors that have not yet received an evidence/volatility assessment, sorted by triage priority descending.

Use this to drive demand-prioritised assessment sweeps: unassessed().first() is always the highest-impact unassessed artifact.

Source

pub fn assessment_coverage(&self) -> (usize, usize)

Return (assessed_count, total_count) for coverage reporting.

Source

pub fn filter_by_keyword(&self, keyword: &str) -> Vec<&ArtifactDescriptor>

Return all descriptors whose meaning or name contains keyword (case-insensitive).

Source§

impl ForensicCatalog

Source

pub fn parsing_profile( &self, id: &str, ) -> Option<&'static ArtifactParsingProfile>

Look up parsing guidance for an artifact id.

Source

pub fn container_profile(&self, id: &str) -> Option<&'static ContainerProfile>

Look up the container parsing layer for an artifact id.

Source

pub fn container_signature( &self, id: &str, ) -> Option<&'static ContainerSignature>

Look up carving/recognition guidance for an artifact’s outer container.

Source

pub fn record_signatures(&self, id: &str) -> Vec<&'static RecordSignature>

Look up carving/recognition guidance for records associated with an artifact.

Source

pub fn decode( &self, descriptor: &ArtifactDescriptor, name: &str, raw: &[u8], ) -> Result<ArtifactRecord, DecodeError>

Decode raw data using the descriptor’s embedded decoder.

§Parameters
  • descriptor – the catalog entry describing the artifact
  • name – the registry value name (or filename), used by ROT13 and PipeDelimited decoders
  • raw – the raw byte payload of the registry value or file content

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> 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, 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.