pub struct AttackPattern {
pub name: String,
pub description: String,
pub steps: Vec<PatternStep>,
pub max_time_window: Duration,
pub severity: SecuritySeverity,
pub confidence: f64,
}Expand description
Defines a known multi-step attack sequence.
Fields§
§name: StringUnique name for this pattern.
description: StringHuman-readable description.
steps: Vec<PatternStep>Ordered steps that must occur to trigger the pattern.
max_time_window: DurationAll steps must occur within this time window.
severity: SecuritySeveritySeverity level when this pattern is matched.
confidence: f64Base confidence score for a match (0.0 - 1.0).
Trait Implementations§
Source§impl Clone for AttackPattern
impl Clone for AttackPattern
Source§fn clone(&self) -> AttackPattern
fn clone(&self) -> AttackPattern
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AttackPattern
impl RefUnwindSafe for AttackPattern
impl Send for AttackPattern
impl Sync for AttackPattern
impl Unpin for AttackPattern
impl UnsafeUnpin for AttackPattern
impl UnwindSafe for AttackPattern
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