pub struct SigmaRule {Show 20 fields
pub title: String,
pub logsource: LogSource,
pub detection: Detections,
pub id: Option<String>,
pub name: Option<String>,
pub related: Vec<Related>,
pub taxonomy: Option<String>,
pub status: Option<Status>,
pub description: Option<String>,
pub license: Option<String>,
pub author: Option<String>,
pub references: Vec<String>,
pub date: Option<String>,
pub modified: Option<String>,
pub fields: Vec<String>,
pub falsepositives: Vec<String>,
pub level: Option<Level>,
pub tags: Vec<String>,
pub scope: Vec<String>,
pub custom_attributes: HashMap<String, String>,
}Expand description
A complete Sigma detection rule.
Reference: Sigma schema V2.0.0, pySigma rule.py SigmaRule
Fields§
§title: String§logsource: LogSource§detection: Detections§id: Option<String>§name: Option<String>§taxonomy: Option<String>§status: Option<Status>§description: Option<String>§license: Option<String>§references: Vec<String>§date: Option<String>§modified: Option<String>§fields: Vec<String>§falsepositives: Vec<String>§level: Option<Level>§scope: Vec<String>§custom_attributes: HashMap<String, String>Custom attributes set by pipeline transformations (e.g. SetCustomAttribute).
Backends / engines can read these to modify behavior per-rule.
This mirrors pySigma’s SigmaRule.custom_attributes dict.
Trait Implementations§
impl StructuralPartialEq for SigmaRule
Auto Trait Implementations§
impl Freeze for SigmaRule
impl RefUnwindSafe for SigmaRule
impl Send for SigmaRule
impl Sync for SigmaRule
impl Unpin for SigmaRule
impl UnsafeUnpin for SigmaRule
impl UnwindSafe for SigmaRule
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