pub struct FilterRule {Show 21 fields
pub title: String,
pub id: Option<String>,
pub name: Option<String>,
pub taxonomy: Option<String>,
pub status: Option<Status>,
pub description: Option<String>,
pub author: Option<String>,
pub date: Option<String>,
pub modified: Option<String>,
pub related: Vec<Related>,
pub license: Option<String>,
pub references: Vec<String>,
pub tags: Vec<String>,
pub fields: Vec<String>,
pub falsepositives: Vec<String>,
pub level: Option<Level>,
pub scope: Vec<String>,
pub logsource: Option<LogSource>,
pub rules: FilterRuleTarget,
pub detection: Detections,
pub custom_attributes: HashMap<String, Value>,
}Expand description
A Sigma filter rule that modifies the detection logic of referenced rules.
Filters add additional conditions (typically exclusions) to existing rules without modifying the original rule files.
Fields§
§title: String§id: Option<String>§name: Option<String>§taxonomy: Option<String>§status: Option<Status>§description: Option<String>§date: Option<String>§modified: Option<String>§license: Option<String>§references: Vec<String>§fields: Vec<String>§falsepositives: Vec<String>§level: Option<Level>§scope: Vec<String>§logsource: Option<LogSource>§rules: FilterRuleTargetRules this filter applies to (by ID or name), or all rules.
detection: DetectionsThe filter detection section.
custom_attributes: HashMap<String, Value>Custom attributes attached to the filter rule.
Trait Implementations§
Source§impl Clone for FilterRule
impl Clone for FilterRule
Source§fn clone(&self) -> FilterRule
fn clone(&self) -> FilterRule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FilterRule
impl Debug for FilterRule
Source§impl PartialEq for FilterRule
impl PartialEq for FilterRule
Source§fn eq(&self, other: &FilterRule) -> bool
fn eq(&self, other: &FilterRule) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FilterRule
impl Serialize for FilterRule
impl StructuralPartialEq for FilterRule
Auto Trait Implementations§
impl Freeze for FilterRule
impl RefUnwindSafe for FilterRule
impl Send for FilterRule
impl Sync for FilterRule
impl Unpin for FilterRule
impl UnsafeUnpin for FilterRule
impl UnwindSafe for FilterRule
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